Java Code Examples for org.eclipse.swt.widgets.Group#getLayout()
The following examples show how to use
org.eclipse.swt.widgets.Group#getLayout() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TypeScriptMainPreferencePage.java From typescript.java with MIT License | 5 votes |
/** * Refreshes the specified group to re-set the default spacings that have * been trashed by the field editors * * @param group */ void initGroup(Group group) { GridData gd = (GridData) group.getLayoutData(); gd.grabExcessHorizontalSpace = true; GridLayout lo = (GridLayout) group.getLayout(); lo.marginWidth = 5; lo.marginHeight = 5; }
Example 2
Source File: GwtCompilerSettingsTab.java From gwt-eclipse-plugin with Eclipse Public License 1.0 | 5 votes |
protected void createStartupModuleComponent(Composite parent) { Group group = SWTFactory.createGroup(parent, "Available Modules:", 3, 1, GridData.FILL_BOTH); GridLayout groupLayout = (GridLayout) group.getLayout(); groupLayout.marginBottom = 8; group.setLayout(groupLayout); IModulesChangeListener listener = new IModulesChangeListener() { @Override public void onModulesChanged() { updateLaunchConfigurationDialog(); } }; entryPointModulesBlock = new EntryPointModulesSelectionBlock(listener); entryPointModulesBlock.doFillIntoGrid(group, 3); }
Example 3
Source File: GWTSettingsTab.java From gwt-eclipse-plugin with Eclipse Public License 1.0 | 5 votes |
protected void createStartupModuleComponent(Composite parent) { Group group = SWTFactory.createGroup(parent, "Available Modules:", 3, 1, GridData.FILL_BOTH); GridLayout groupLayout = (GridLayout) group.getLayout(); groupLayout.marginBottom = 8; group.setLayout(groupLayout); IModulesChangeListener listener = new IModulesChangeListener() { @Override public void onModulesChanged() { updateLaunchConfigurationDialog(); } }; entryPointModulesSelectionBlock = new EntryPointModulesSelectionBlock(listener); entryPointModulesSelectionBlock.doFillIntoGrid(group, 3); }
Example 4
Source File: GwtSuperDevModeCodeServerSettingsTab.java From gwt-eclipse-plugin with Eclipse Public License 1.0 | 5 votes |
protected void createStartupModuleComponent(Composite parent) { Group group = SWTFactory.createGroup(parent, "Available Modules:", 3, 1, GridData.FILL_BOTH); GridLayout groupLayout = (GridLayout) group.getLayout(); groupLayout.marginBottom = 8; group.setLayout(groupLayout); IModulesChangeListener listener = new IModulesChangeListener() { @Override public void onModulesChanged() { updateLaunchConfigurationDialog(); } }; entryPointModulesBlock = new EntryPointModulesSelectionBlock(listener); entryPointModulesBlock.doFillIntoGrid(group, 3); }
Example 5
Source File: GWTCompileDialog.java From gwt-eclipse-plugin with Eclipse Public License 1.0 | 5 votes |
private void createEntryPointModulesComponent(Composite parent) { Group group = SWTFactory.createGroup(parent, "Entry Point Modules", 3, 3, GridData.FILL_BOTH); GridLayout groupLayout = (GridLayout) group.getLayout(); groupLayout.marginBottom = 8; group.setLayout(groupLayout); entryPointModulesBlock = new EntryPointModulesSelectionBlock(null, listener); entryPointModulesBlock.doFillIntoGrid(group, 3); }
Example 6
Source File: GWTProjectPropertyPage.java From gwt-eclipse-plugin with Eclipse Public License 1.0 | 5 votes |
private void createEntryPointModuleComponent(Composite parent) { Group group = SWTFactory.createGroup(parent, "Entry Point Modules", 3, 1, GridData.FILL_BOTH); GridLayout groupLayout = (GridLayout) group.getLayout(); groupLayout.marginBottom = 8; group.setLayout(groupLayout); entryPointModulesBlock = new EntryPointModulesSelectionBlock(null); entryPointModulesBlock.doFillIntoGrid(group, 3); }
Example 7
Source File: SwaggerValidationPreferences.java From KaiZen-OpenAPI-Editor with Eclipse Public License 1.0 | 5 votes |
@Override protected void createFieldEditors() { Composite composite = new Composite(getFieldEditorParent(), SWT.NONE); GridLayoutFactory.fillDefaults() // .numColumns(2) // .margins(5, 8) // .spacing(5, 20) // .applyTo(composite); Group group = new Group(composite, SWT.SHADOW_ETCHED_IN); GridDataFactory.fillDefaults().span(2, 1).applyTo(group); group.setText("Allow JSON references in additional contexts"); addField(new BooleanFieldEditor(VALIDATION_REF_SECURITY_DEFINITIONS_OBJECT, "Security Definitions Object", group)); addField(new BooleanFieldEditor(VALIDATION_REF_SECURITY_SCHEME_OBJECT, "Security Scheme Object", group)); addField(new BooleanFieldEditor(VALIDATION_REF_SECURITY_REQUIREMENTS_ARRAY, "Security Requirements Array", group)); addField(new BooleanFieldEditor(VALIDATION_REF_SECURITY_REQUIREMENT_OBJECT, "Security Requirement Object", group)); // FieldEditor set parent layout to GridLayout with margin = 0 ((GridLayout) group.getLayout()).marginTop = 8; ((GridLayout) group.getLayout()).marginBottom = 8; ((GridLayout) group.getLayout()).marginLeft = 8; ((GridLayout) group.getLayout()).marginRight = 8; // Validation Set<PreferenceProvider> providers = ExtensionUtils.getPreferenceProviders(VALIDATION_PREFERENCE_PAGE); providers.forEach(provider -> { for (FieldEditor field : provider.createFields(Version.SWAGGER, composite)) { addField(field); } }); }