protected void createStandaloneSection(Composite parent) { List<StartCommandType> commandTypes = startCommand.getStartCommandTypes(); StartCommandPartFactory partFactory = new StartCommandPartFactory(startCommand, project); boolean createdControls = false; Label label = new Label(parent, SWT.NONE); label.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, false, false)); label.setText("Start Command:"); // $NON-NLS-1$ Composite startCommandArea = new Composite(parent, SWT.NONE); GridLayoutFactory.fillDefaults().numColumns(1).spacing(0, 0).applyTo(startCommandArea); GridDataFactory.fillDefaults().grab(true, false).applyTo(startCommandArea); if (!commandTypes.isEmpty()) { createdControls = createStartCommandArea(commandTypes, partFactory, startCommandArea); } // If no controls have been created, create a default start command // control. if (!createdControls) { partFactory.createStartCommandTypePart(StartCommandType.Other, startCommandArea); } }