protected void createSpeedFiltersEntry( Composite parent, FormToolkit toolkit, IActionBars actionBars) { SWTUtil.createLabel(parent, StringPool.EMPTY, 1); GridData td = new GridData(); td.horizontalSpan = 5; speedFilters = toolkit.createButton(parent, Msgs.speedFilters, SWT.CHECK); speedFilters.setLayoutData(td); speedFilters.setEnabled(isEditable()); speedFilters.addSelectionListener( new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { if (!speedFilterEnabledModifying) { getModel().setSpeedFiltersEnabled(speedFilters.getSelection()); } } }); }
protected void createContentFolderGroup(Composite topComposite) { Composite composite = SWTUtil.createTopComposite(topComposite, 3); GridLayout gl = new GridLayout(3, false); gl.marginLeft = 5; composite.setLayout(gl); composite.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 3, 1)); SWTUtil.createLabel(composite, SWT.LEAD, Msgs.contentFolder, 1); contentFolder = SWTUtil.createText(composite, 1); this.synchHelper.synchText(contentFolder, CONTENT_FOLDER, null); Button iconFileBrowse = SWTUtil.createPushButton(composite, Msgs.browse, null); iconFileBrowse.addSelectionListener( new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { handleFileBrowseButton(NewLanguagePropertiesHookWizardPage.this.contentFolder); } }); }