this.model = model;
this.editor = editor;
setTitleAndFont( form );
ColumnLayout colLayout = new ColumnLayout();
colLayout.minNumColumns = 1;
colLayout.maxNumColumns = 1;
form.getBody().setLayout( colLayout );
// addToolBar(toolkit, form);
Shell shell = new Shell( Display.getCurrent() );
Window conditionPopup = new AddNewConditionDialog( shell,
this );
Window actionPopup = new AddNewActionDialog( shell,
this );
Window optionsPopup = new RuleAttributesDialog( shell,
this );
Section ifSection = createMainSection( form,
toolkit,
"WHEN",
conditionPopup );
Section thenSection = createMainSection( form,
toolkit,
"THEN",
actionPopup );
Section optionsSection = createMainSection( form,
toolkit,
"(options)",
optionsPopup );
ColumnLayout layout = new ColumnLayout();
layout.minNumColumns = 1;
layout.maxNumColumns = 1;
// layout.verticalSpacing = 0;
((Composite) (ifSection.getClient())).setLayout( layout );