com.sabre.tn.redapp.example.workflow/src/com/sabre/tn/redapp/example/showcase/preferences/AppPreferencePage.java
/**
	 * Creates the field editors. Field editors are abstractions of
	 * the common GUI blocks needed to manipulate various types
	 * of preferences. Each field editor knows how to save and
	 * restore itself.
	 */
Creates the field editors. Field editors are abstractions of
the common GUI blocks needed to manipulate various types
of preferences. Each field editor knows how to save and
restore itself.
Creates the field editors . Field editors are abstractions of the common GUI blocks needed to manipulate various types of preferences . Each field editor knows how to save and restore itself .
public void createFieldEditors() {
		Composite composite = new Composite(getFieldEditorParent(), SWT.NONE);
		composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
		composite.setLayout(new GridLayout(1, true));
		Group grListen = new Group(composite, SWT.WRAP);
		grListen.setText("Manual command listening");
		grListen.setLayout(new GridLayout(1, true));
		addField(
				new BooleanFieldEditor(
					PreferenceConstants.P_LISTEN_AVAIL,
					"Listen for availability commands (1...)",
					SWT.WRAP,
					grListen));
		addField(
				new BooleanFieldEditor(
					PreferenceConstants.P_LISTEN_SELL,
					"Listen for Sell commands (0...)",
					SWT.WRAP,
					grListen));
		addField(
				new BooleanFieldEditor(
					PreferenceConstants.P_MODIFY_RCVDFROM,
					"Command MODIFICATION pattern, on Received From format (6...)",
					0,
					grListen));
		addField(
				new BooleanFieldEditor(
					PreferenceConstants.P_BLOCK_ER,
					"Command BLOCK pattern, on End & Redisplay formats (E/ER).",
					SWT.WRAP,
					grListen));
		Group gr = new Group(composite, SWT.WRAP);
		gr.setText("Workflow Extension points");
		gr.setLayout(new GridLayout(1, true));
		Group gr1 = new Group(gr, NONE);
		gr1.setText("Back-end Air Shopping request filter");
		addField(
				new BooleanFieldEditor(
					PreferenceConstants.P_BEF_SHOP_FLOW_EXT,
					"Enable Air Shopping filter (silent)",
					SWT.WRAP,
					gr1));
		addField(
				new StringFieldEditor(
					PreferenceConstants.P_DESTFILTER_SHOP_FLOW_EXT,
					"Destination IATA to activate Shop handler",
					SWT.WRAP,
					gr1));
		addField(
				new StringFieldEditor(
					PreferenceConstants.P_AIRLINEFILTER_SHOP_FLOW_EXT,
					"Airline Filter to add to Shopping request",
					SWT.WRAP,
					gr1));
		Group gr2 = new Group(gr, NONE);
		gr2.setText("Front-end Before Air Shopping Modal");
		addField(
				new BooleanFieldEditor(
					PreferenceConstants.P_BEF_SHOP_FLOW_EXT_1,
					"Enable Manual Workflow Extension to set-up Corporate ID and Account Code",
					SWT.WRAP,
					gr2));
		Group gr3 = new Group(gr, SWT.WRAP);
		gr3.setText("Before END PNR");
		gr3.setLayout(new GridLayout(1, true));				
		addField(
				new BooleanFieldEditor(
					PreferenceConstants.P_BEF_END_FLOW_EXT,
					"Check for Record Locator presence",
					SWT.WRAP,
					gr3));
		addField(
				new BooleanFieldEditor(
					PreferenceConstants.P_BEF_END_FLOW_EXT_1,
					"Check for QC Pattern",
					SWT.WRAP,
					gr3));
	}
public void createFieldEditors ( ) { Composite composite = new Composite ( getFieldEditorParent ( ) , SWT . NONE ) ; composite . setLayoutData ( new GridData ( SWT . FILL , SWT . FILL , true , true ) ) ; composite . setLayout ( new GridLayout ( 1 , true ) ) ; Group grListen = new Group ( composite , SWT . WRAP ) ; grListen . setText ( "Manual command listening" ) ; grListen . setLayout ( new GridLayout ( 1 , true ) ) ; addField ( new BooleanFieldEditor ( PreferenceConstants . P_LISTEN_AVAIL , "Listen for availability commands (1...)" , SWT . WRAP , grListen ) ) ; addField ( new BooleanFieldEditor ( PreferenceConstants . P_LISTEN_SELL , "Listen for Sell commands (0...)" , SWT . WRAP , grListen ) ) ; addField ( new BooleanFieldEditor ( PreferenceConstants . P_MODIFY_RCVDFROM , "Command MODIFICATION pattern, on Received From format (6...)" , 0 , grListen ) ) ; addField ( new BooleanFieldEditor ( PreferenceConstants . P_BLOCK_ER , "Command BLOCK pattern, on End & Redisplay formats (E/ER)." , SWT . WRAP , grListen ) ) ; Group gr = new Group ( composite , SWT . WRAP ) ; gr . setText ( "Workflow Extension points" ) ; gr . setLayout ( new GridLayout ( 1 , true ) ) ; Group gr1 = new Group ( gr , NONE ) ; gr1 . setText ( "Back-end Air Shopping request filter" ) ; addField ( new BooleanFieldEditor ( PreferenceConstants . P_BEF_SHOP_FLOW_EXT , "Enable Air Shopping filter (silent)" , SWT . WRAP , gr1 ) ) ; addField ( new StringFieldEditor ( PreferenceConstants . P_DESTFILTER_SHOP_FLOW_EXT , "Destination IATA to activate Shop handler" , SWT . WRAP , gr1 ) ) ; addField ( new StringFieldEditor ( PreferenceConstants . P_AIRLINEFILTER_SHOP_FLOW_EXT , "Airline Filter to add to Shopping request" , SWT . WRAP , gr1 ) ) ; Group gr2 = new Group ( gr , NONE ) ; gr2 . setText ( "Front-end Before Air Shopping Modal" ) ; addField ( new BooleanFieldEditor ( PreferenceConstants . P_BEF_SHOP_FLOW_EXT_1 , "Enable Manual Workflow Extension to set-up Corporate ID and Account Code" , SWT . WRAP , gr2 ) ) ; Group gr3 = new Group ( gr , SWT . WRAP ) ; gr3 . setText ( "Before END PNR" ) ; gr3 . setLayout ( new GridLayout ( 1 , true ) ) ; addField ( new BooleanFieldEditor ( PreferenceConstants . P_BEF_END_FLOW_EXT , "Check for Record Locator presence" , SWT . WRAP , gr3 ) ) ; addField ( new BooleanFieldEditor ( PreferenceConstants . P_BEF_END_FLOW_EXT_1 , "Check for QC Pattern" , SWT . WRAP , gr3 ) ) ; }
Creates the field editors.
Creates the field editors .