List of usage examples for org.eclipse.jface.dialogs IDialogConstants VERTICAL_SPACING
int VERTICAL_SPACING
To view the source code for org.eclipse.jface.dialogs IDialogConstants VERTICAL_SPACING.
Click Source Link
From source file:org.eclipse.ui.activities.ActivitiesPreferencePage.java
License:Open Source License
protected Control createContents(Composite parent) { initializeDialogUnits(parent);/* w w w . ja v a 2s . c o m*/ Composite composite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING); layout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING); composite.setLayout(layout); createActivityPromptPref(composite); GridData data = new GridData(GridData.FILL_HORIZONTAL); activityPromptButton.setLayoutData(data); data = new GridData(GridData.FILL_BOTH); workingCopy = workbench.getActivitySupport().createWorkingCopy(); enabler = new ActivityEnabler(workingCopy, strings); enabler.createControl(composite).setLayoutData(data); Dialog.applyDialogFont(composite); return composite; }
From source file:org.eclipse.ui.activities.ActivityCategoryPreferencePage.java
License:Open Source License
protected Control createContents(Composite parent) { initializeDialogUnits(parent);/*from ww w .j a v a 2 s .c om*/ Composite composite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(2, false); layout.marginHeight = layout.marginWidth = 0; layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING); layout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING); composite.setLayout(layout); Label label = new Label(composite, SWT.WRAP); label.setText( strings.getProperty(CAPTION_MESSAGE, ActivityMessages.ActivitiesPreferencePage_captionMessage)); GridData data = new GridData(GridData.FILL_HORIZONTAL); data.widthHint = 400; data.horizontalSpan = 2; label.setLayoutData(data); label = new Label(composite, SWT.NONE); //spacer data = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); data.horizontalSpan = 2; label.setLayoutData(data); createPromptButton(composite); createCategoryArea(composite); createDetailsArea(composite); createButtons(composite); workbench.getHelpSystem().setHelp(parent, IWorkbenchHelpContextIds.CAPABILITY_PREFERENCE_PAGE); Dialog.applyDialogFont(composite); return composite; }
From source file:org.eclipse.ui.activities.ActivityCategoryPreferencePage.java
License:Open Source License
private void createButtons(final Composite parent) { Composite composite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(4, false); layout.marginHeight = layout.marginWidth = 0; layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING); layout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING); composite.setLayout(layout);//from www. j ava 2 s .c o m GridData data = new GridData(GridData.FILL_HORIZONTAL); data.horizontalSpan = 2; composite.setLayoutData(data); Button enableAll = new Button(composite, SWT.PUSH); enableAll.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ public void widgetSelected(SelectionEvent e) { workingCopy.setEnabledActivityIds(workingCopy.getDefinedActivityIds()); } }); enableAll.setText(ActivityMessages.ActivityEnabler_selectAll); setButtonLayoutData(enableAll); Button disableAll = new Button(composite, SWT.PUSH); disableAll.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) * * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ public void widgetSelected(SelectionEvent e) { workingCopy.setEnabledActivityIds(Collections.EMPTY_SET); } }); disableAll.setText(ActivityMessages.ActivityEnabler_deselectAll); setButtonLayoutData(disableAll); if (allowAdvanced) { Label spacer = new Label(composite, SWT.NONE); data = new GridData(GridData.GRAB_HORIZONTAL); spacer.setLayoutData(data); advancedButton = new Button(composite, SWT.PUSH); advancedButton.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) * * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ public void widgetSelected(SelectionEvent e) { AdvancedDialog dialog = new AdvancedDialog(parent.getShell()); dialog.open(); // logic for updating the working copy is in the dialog class. } }); advancedButton.setText(ActivityMessages.ActivitiesPreferencePage_advancedButton); setButtonLayoutData(advancedButton); } }
From source file:org.eclipse.ui.activities.ActivityCategoryPreferencePage.java
License:Open Source License
/** * @param parent//from w w w. j a v a 2 s . c om */ private void createDetailsArea(Composite parent) { Composite composite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.marginHeight = layout.marginWidth = 0; layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING); layout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING); composite.setLayout(layout); composite.setLayoutData(new GridData(GridData.FILL_BOTH)); new Label(composite, SWT.NONE).setText(ActivityMessages.ActivityEnabler_description); descriptionText = new Text(composite, SWT.WRAP | SWT.READ_ONLY | SWT.BORDER); GridData data = new GridData(GridData.FILL_BOTH); data.heightHint = 100; data.widthHint = 200; descriptionText.setLayoutData(data); new Label(composite, SWT.NONE).setText(ActivityMessages.ActivitiesPreferencePage_requirements); dependantViewer = new TableViewer(composite, SWT.BORDER); dependantViewer.getControl().setLayoutData(new GridData(GridData.FILL_BOTH)); dependantViewer.setContentProvider(new CategoryContentProvider()); dependantViewer.addFilter(new EmptyCategoryFilter()); dependantViewer.setLabelProvider(new CategoryLabelProvider(false)); dependantViewer.setInput(Collections.EMPTY_SET); }
From source file:org.eclipse.ui.activities.ActivityCategoryPreferencePage.java
License:Open Source License
/** * @param parent//from ww w.j a v a 2s. c o m */ private void createCategoryArea(Composite parent) { Composite composite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.marginHeight = layout.marginWidth = 0; layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING); layout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING); composite.setLayout(layout); GridData data = new GridData(GridData.FILL_BOTH); data.widthHint = 200; composite.setLayoutData(data); Label label = new Label(composite, SWT.NONE); label.setText(strings.getProperty(CATEGORY_NAME, ActivityMessages.ActivityEnabler_categories) + ':'); Table table = new Table(composite, SWT.CHECK | SWT.BORDER | SWT.SINGLE); table.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ public void widgetSelected(SelectionEvent e) { if (e.detail == SWT.CHECK) { TableItem tableItem = (TableItem) e.item; ICategory category = (ICategory) tableItem.getData(); if (isLocked(category)) { tableItem.setChecked(true); e.doit = false; // veto the check return; } Set activitySet = WorkbenchActivityHelper.getActivityIdsForCategory(category); if (tableItem.getChecked()) { activitySet.addAll(workingCopy.getEnabledActivityIds()); } else { HashSet newSet = new HashSet(workingCopy.getEnabledActivityIds()); newSet.removeAll(activitySet); activitySet = newSet; } workingCopy.setEnabledActivityIds(activitySet); updateCategoryCheckState(); // even though we're reacting to // a check change we may need to // refresh a greying change. // Just process the whole thing. } } }); categoryViewer = new CheckboxTableViewer(table); categoryViewer.getControl().setLayoutData(new GridData(GridData.FILL_BOTH)); categoryViewer.setContentProvider(new CategoryContentProvider()); CategoryLabelProvider categoryLabelProvider = new CategoryLabelProvider(true); workingCopy.addActivityManagerListener(categoryLabelProvider); categoryViewer.setLabelProvider(categoryLabelProvider); categoryViewer.setComparator(new ViewerComparator()); categoryViewer.addFilter(new EmptyCategoryFilter()); categoryViewer.addSelectionChangedListener(new ISelectionChangedListener() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent) */ public void selectionChanged(SelectionChangedEvent event) { ICategory element = (ICategory) ((IStructuredSelection) event.getSelection()).getFirstElement(); setDetails(element); } }); categoryViewer.setInput(workingCopy.getDefinedCategoryIds()); updateCategoryCheckState(); }
From source file:org.eclipse.ui.examples.fieldassist.FieldAssistTestDialog.java
License:Open Source License
protected Control createDialogArea(Composite parent) { Composite outer = (Composite) super.createDialogArea(parent); initializeDialogUnits(outer);/* w w w .j ava2 s .c o m*/ createSecurityGroup(outer); // Create a simple field to show how field assist can be used for // autocomplete. Group autoComplete = new Group(outer, SWT.NONE); autoComplete.setLayoutData(new GridData(GridData.FILL_BOTH)); GridLayout layout = new GridLayout(); layout.numColumns = 2; layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN); layout.marginWidth = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN); layout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING); layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING); autoComplete.setLayout(layout); autoComplete.setText(TaskAssistExampleMessages.ExampleDialog_AutoCompleteGroup); Label label = new Label(autoComplete, SWT.LEFT); label.setText(TaskAssistExampleMessages.ExampleDialog_UserName); // Create an auto-complete field representing a user name Text text = new Text(autoComplete, SWT.BORDER); text.setLayoutData(getFieldGridData()); new AutoCompleteField(text, new TextContentAdapter(), validUsers); // Another one to test combos label = new Label(autoComplete, SWT.LEFT); label.setText(TaskAssistExampleMessages.ExampleDialog_ComboUserName); Combo combo = new Combo(autoComplete, SWT.BORDER | SWT.DROP_DOWN); combo.setText(username); combo.setItems(validUsers); combo.setLayoutData(getFieldGridData()); new AutoCompleteField(combo, new ComboContentAdapter(), validUsers); Dialog.applyDialogFont(outer); return outer; }
From source file:org.eclipse.ui.examples.fieldassist.FieldAssistTestDialog.java
License:Open Source License
void createSecurityGroup(Composite parent) { Group main = new Group(parent, SWT.NONE); main.setLayoutData(new GridData(GridData.FILL_BOTH)); main.setText(TaskAssistExampleMessages.ExampleDialog_SecurityGroup); GridLayout layout = new GridLayout(); layout.numColumns = 2;/*from w w w. ja v a 2s.c om*/ layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN); layout.marginWidth = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN); layout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING); layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING); main.setLayout(layout); Label label = new Label(main, SWT.LEFT); label.setText(TaskAssistExampleMessages.ExampleDialog_UserName); // Create a field representing a user name Text text = new Text(main, SWT.BORDER); ControlDecoration dec = new ControlDecoration(text, getDecorationLocationBits()); dec.setMarginWidth(marginWidth); dec.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent event) { MessageDialog.openInformation(getShell(), TaskAssistExampleMessages.ExampleDialog_SelectionTitle, TaskAssistExampleMessages.ExampleDialog_SelectionMessage); } public void widgetDefaultSelected(SelectionEvent e) { // Nothing on default select } }); textField = new UserField(dec, text, new TextContentAdapter()); dec.addMenuDetectListener(new MenuDetectListener() { public void menuDetected(MenuDetectEvent event) { // no quick fix if we aren't in error state. if (textField.isValid()) { return; } if (textField.quickFixMenu == null) { textField.quickFixMenu = createQuickFixMenu(textField); } textField.quickFixMenu.setLocation(event.x, event.y); textField.quickFixMenu.setVisible(true); } }); if (showRequiredFieldLabelIndicator && textField.isRequiredField()) { addRequiredFieldIndicator(label); } text.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent event) { handleModify(textField); } }); text.setText(username); installContentProposalAdapter(text, new TextContentAdapter()); text.setLayoutData(getFieldGridData()); label = new Label(main, SWT.LEFT); label.setText(TaskAssistExampleMessages.ExampleDialog_ComboUserName); // Create a combo field representing a user name Combo combo = new Combo(main, SWT.BORDER | SWT.DROP_DOWN); dec = new ControlDecoration(combo, getDecorationLocationBits()); dec.setMarginWidth(marginWidth); comboField = new UserField(dec, combo, new ComboContentAdapter()); dec.addMenuDetectListener(new MenuDetectListener() { public void menuDetected(MenuDetectEvent event) { // no quick fix if we aren't in error state. if (comboField.isValid()) { return; } if (comboField.quickFixMenu == null) { comboField.quickFixMenu = createQuickFixMenu(comboField); } comboField.quickFixMenu.setLocation(event.x, event.y); comboField.quickFixMenu.setVisible(true); } }); dec.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent event) { MessageDialog.openInformation(getShell(), TaskAssistExampleMessages.ExampleDialog_DefaultSelectionTitle, TaskAssistExampleMessages.ExampleDialog_DefaultSelectionMessage); } public void widgetSelected(SelectionEvent e) { // Do nothing on selection } }); if (showRequiredFieldLabelIndicator) { addRequiredFieldIndicator(label); } combo.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent event) { handleModify(comboField); } }); combo.setText(username); combo.setItems(validUsers); combo.setLayoutData(getFieldGridData()); installContentProposalAdapter(combo, new ComboContentAdapter()); // Create a spinner representing a user age label = new Label(main, SWT.LEFT); label.setText(TaskAssistExampleMessages.ExampleDialog_Age); Spinner spinner = new Spinner(main, SWT.BORDER); dec = new ControlDecoration(spinner, getDecorationLocationBits()); dec.setMarginWidth(marginWidth); if (showRequiredFieldLabelIndicator) { addRequiredFieldIndicator(label); } final SmartField spinnerField = new AgeField(dec, spinner, new SpinnerContentAdapter()); spinner.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent event) { handleModify(spinnerField); } }); spinner.setSelection(40); spinner.setLayoutData(getFieldGridData()); // This field has no decorator label = new Label(main, SWT.LEFT); label.setText(TaskAssistExampleMessages.ExampleDialog_Password); text = new Text(main, SWT.BORDER | SWT.PASSWORD); text.setText("******"); //$NON-NLS-1$ text.setLayoutData(getFieldGridData()); if (showRequiredFieldLabelIndicator) { addRequiredFieldIndicator(label); } // This tests multi-line text popup placement label = new Label(main, SWT.LEFT); label.setText(TaskAssistExampleMessages.FieldAssistTestDialog_Comments); text = new Text(main, SWT.BORDER | SWT.MULTI | SWT.WRAP); text.setText(TaskAssistExampleMessages.FieldAssistTestDialog_CommentsDefaultContent); text.setLayoutData(getMultiLineTextFieldGridData()); if (showRequiredFieldLabelIndicator) { addRequiredFieldIndicator(label); } installContentProposalAdapter(text, new TextContentAdapter()); }
From source file:org.eclipse.ui.ide.dialogs.ImportTypeDialog.java
License:Open Source License
protected Control createDialogArea(Composite parent) { boolean linkIsOnlyChoice = hasFlag(IMPORT_LINK) && !(hasFlag(IMPORT_COPY | IMPORT_MOVE) || (hasFlag(IMPORT_VIRTUAL_FOLDERS_AND_LINKS) && !hasFlag(IMPORT_FILES_ONLY))); if (!linkIsOnlyChoice) createMessageArea(parent);//w w w .j a va2 s . c o m Composite composite = new Composite(parent, 0); GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true); composite.setLayoutData(gridData); composite.setFont(parent.getFont()); GridLayout layout = new GridLayout(); layout.numColumns = 1; layout.marginWidth = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN); layout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING); layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING); int indent = linkIsOnlyChoice ? 0 : convertWidthInCharsToPixels(3); layout.marginWidth += indent; composite.setLayout(layout); SelectionListener listener = new SelectionListener() { public void widgetDefaultSelected(SelectionEvent e) { currentSelection = ((Integer) e.widget.getData()).intValue(); refreshSelection(); } public void widgetSelected(SelectionEvent e) { currentSelection = ((Integer) e.widget.getData()).intValue(); refreshSelection(); } }; if (hasFlag(IMPORT_COPY)) { copyButton = new Button(composite, SWT.RADIO); copyButton.setText(hasFlag(IMPORT_FILES_ONLY) ? IDEWorkbenchMessages.ImportTypeDialog_copyFiles : IDEWorkbenchMessages.ImportTypeDialog_copyFilesAndDirectories); gridData = new GridData(GridData.FILL_HORIZONTAL); copyButton.setLayoutData(gridData); copyButton.setData(new Integer(IMPORT_COPY)); copyButton.addSelectionListener(listener); copyButton.setFont(parent.getFont()); } if (hasFlag(IMPORT_MOVE)) { moveButton = new Button(composite, SWT.RADIO); moveButton.setText(hasFlag(IMPORT_FILES_ONLY) ? IDEWorkbenchMessages.ImportTypeDialog_moveFiles : IDEWorkbenchMessages.ImportTypeDialog_moveFilesAndDirectories); gridData = new GridData(GridData.FILL_HORIZONTAL); moveButton.setLayoutData(gridData); moveButton.setData(new Integer(IMPORT_MOVE)); moveButton.addSelectionListener(listener); moveButton.setFont(parent.getFont()); } if (hasFlag(IMPORT_LINK) && !linkIsOnlyChoice) { linkButton = new Button(composite, SWT.RADIO); linkButton.setText(hasFlag(IMPORT_FILES_ONLY) ? IDEWorkbenchMessages.ImportTypeDialog_linkFiles : IDEWorkbenchMessages.ImportTypeDialog_createLinks); gridData = new GridData(GridData.FILL_HORIZONTAL); linkButton.setLayoutData(gridData); linkButton.setData(new Integer(IMPORT_LINK)); linkButton.addSelectionListener(listener); linkButton.setFont(parent.getFont()); } if (hasFlag(IMPORT_VIRTUAL_FOLDERS_AND_LINKS) && !hasFlag(IMPORT_FILES_ONLY)) { shadowCopyButton = new Button(composite, SWT.RADIO); shadowCopyButton.setText(IDEWorkbenchMessages.ImportTypeDialog_recreateFilesAndDirectories); gridData = new GridData(GridData.FILL_HORIZONTAL); shadowCopyButton.setLayoutData(gridData); shadowCopyButton.setData(new Integer(IMPORT_VIRTUAL_FOLDERS_AND_LINKS)); shadowCopyButton.addSelectionListener(listener); shadowCopyButton.setFont(parent.getFont()); } if (hasFlag(IMPORT_VIRTUAL_FOLDERS_AND_LINKS | IMPORT_LINK)) { relativePathVariableGroup = new RelativePathVariableGroup(new RelativePathVariableGroup.IModel() { public IResource getResource() { return receivingResource; } public void setVariable(String string) { variable = string; } public String getVariable() { return variable; } }); int groupIndent = 0; if (!linkIsOnlyChoice) { Button tmp = new Button(composite, SWT.CHECK); tmp.setText("."); //$NON-NLS-1$ groupIndent = tmp.computeSize(SWT.DEFAULT, SWT.DEFAULT).x; tmp.dispose(); Label tmpLabel = new Label(composite, SWT.NONE); tmpLabel.setText("."); //$NON-NLS-1$ groupIndent -= tmpLabel.computeSize(SWT.DEFAULT, SWT.DEFAULT).x; tmpLabel.dispose(); } Composite variableGroup = new Composite(composite, 0); gridData = new GridData(SWT.FILL, SWT.FILL, true, true); gridData.horizontalIndent = groupIndent; variableGroup.setLayoutData(gridData); variableGroup.setFont(parent.getFont()); layout = new GridLayout(); layout.numColumns = 2; layout.marginWidth = 0; variableGroup.setLayout(layout); relativePathVariableGroup.createContents(variableGroup); relativePathVariableGroup.setSelection(variable != null); if (variable != null) relativePathVariableGroup.selectVariable(variable); else relativePathVariableGroup.selectVariable(preferredVariable); } if (linkIsOnlyChoice) { currentSelection = IMPORT_LINK; parent.getShell().setText(IDEWorkbenchMessages.ImportTypeDialog_titleFilesLinking); } createLinkControl(parent); refreshSelection(); return composite; }
From source file:org.eclipse.ui.ide.markers.compatibility.internal.QuickFixPage.java
License:Open Source License
/** * Create the table buttons for the receiver. * /* w ww . j a v a2 s.co m*/ * @param control * @return {@link Composite} */ private Composite createTableButtons(Composite control) { Composite buttonComposite = new Composite(control, SWT.NONE); GridLayout layout = new GridLayout(); layout.marginWidth = 0; layout.marginHeight = 0; layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING); layout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING); buttonComposite.setLayout(layout); Button selectAll = new Button(buttonComposite, SWT.PUSH); selectAll.setText(MarkerMessages.selectAllAction_title); selectAll.setLayoutData(new GridData(SWT.FILL, SWT.NONE, false, false)); selectAll.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) * * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ public void widgetSelected(SelectionEvent arg0) { markersTable.setAllChecked(true); setPageComplete(!resolutionsList.getSelection().isEmpty()); } }); Button deselectAll = new Button(buttonComposite, SWT.PUSH); deselectAll.setText(MarkerMessages.filtersDialog_deselectAll); deselectAll.setLayoutData(new GridData(SWT.FILL, SWT.NONE, false, false)); deselectAll.addSelectionListener(new SelectionAdapter() { /* * (non-Javadoc) * * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ public void widgetSelected(SelectionEvent arg0) { markersTable.setAllChecked(false); setPageComplete(false); } }); return buttonComposite; }
From source file:org.eclipse.ui.internal.activities.ws.ActivityEnabler.java
License:Open Source License
private GridLayout createGridLayoutWithoutMargins(int nColumns, FontMetrics fontMetrics) { GridLayout layout = new GridLayout(nColumns, false); layout.marginHeight = 0;// w ww .j a va2 s . c om layout.marginWidth = 0; layout.horizontalSpacing = Dialog.convertHorizontalDLUsToPixels(fontMetrics, IDialogConstants.HORIZONTAL_SPACING); layout.verticalSpacing = Dialog.convertVerticalDLUsToPixels(fontMetrics, IDialogConstants.VERTICAL_SPACING); return layout; }