@Override public Composite createComposite(Composite parent) { Composite c = createComposite(parent, SWT.NONE); return c; }
public ExtensionDetailsViewer(Composite parent, TabbedPropertySheetWidgetFactory widgetFactory) { this.widgetFactory = widgetFactory; control = widgetFactory.createComposite(parent); internalControlListener = new InternalControlListener(); control.setLayout(new GridLayout()); } public Control getControl()
/** * Creates a flat form composite as a part of the form. * * @param parent * the composite parent. * @return the composite. */ public Composite createFlatFormComposite(Composite parent) { Composite composite = createComposite(parent); FormLayout layout = new FormLayout(); layout.marginWidth = ITabbedPropertyConstants.HSPACE + 2; layout.marginHeight = ITabbedPropertyConstants.VSPACE; layout.spacing = ITabbedPropertyConstants.VMARGIN + 1; composite.setLayout(layout); return composite; }
Composite pageComposite = page.getWidgetFactory().createComposite( parent, SWT.NO_FOCUS); GridLayout layout = new GridLayout(); .createComposite(pageComposite, SWT.NO_FOCUS); sectionComposite.setLayout(new FillLayout()); int style = (section.shouldUseExtraSpace()) ? GridData.FILL_BOTH
/** * Create the main composite. */ protected void createMainComposite() { mainComposite = factory.createComposite(this, SWT.NO_FOCUS); mainComposite.setLayout(new FormLayout()); FormData formData = new FormData(); formData.left = new FormAttachment(0, 0); formData.right = new FormAttachment(100, 0); formData.top = new FormAttachment(0, 0); formData.bottom = new FormAttachment(100, 0); mainComposite.setLayoutData(formData); createMainContents(); }
table.addListener(SWT.Resize, this); Composite buttonComposite = getWidgetFactory().createComposite(composite, SWT.FLAT); GridLayout buttonCompositeLayout = new GridLayout(); buttonCompositeLayout.marginTop = 0;
composite = widgetFactory.createComposite(control); composite.setBackground(ColorConstants.white); GridLayout gridLayout = new GridLayout();
/** * Helper method for creating property tab composites. * * @return the property tab composite. */ private Composite createTabComposite() { Composite result = widgetFactory.createComposite( tabbedPropertyComposite.getTabComposite(), SWT.NO_FOCUS); result.setVisible(false); result.setLayout(new FillLayout()); FormData data = new FormData(); if (hasTitleBar) { data.top = new FormAttachment(tabbedPropertyComposite.getTitle(), 0); } else { data.top = new FormAttachment(0, 0); } data.bottom = new FormAttachment(100, 0); data.left = new FormAttachment(0, 0); data.right = new FormAttachment(100, 0); result.setLayoutData(data); return result; }
page = getWidgetFactory().createComposite(composite); gridLayout = new GridLayout(); gridLayout.marginTop = 0; Composite leftContent = getWidgetFactory().createComposite(sashForm, SWT.FLAT); gridLayout = new GridLayout(); gridLayout.numColumns = 1; section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); Composite tableAndButtonComposite = getWidgetFactory().createComposite(leftContent, SWT.FLAT); tableAndButtonComposite.setLayoutData(new GridData(GridData.FILL_BOTH)); gridLayout = new GridLayout(); XSDEditorCSHelpIds.EXTENSIONS_TAB__EXTENSIONS); Composite buttonComposite = getWidgetFactory().createComposite(tableAndButtonComposite, SWT.FLAT); Composite rightContent = getWidgetFactory().createComposite(sashForm, SWT.FLAT); Section section2 = getWidgetFactory().createSection(rightContent, SWT.FLAT | ExpandableComposite.TITLE_BAR); section2.setText(Messages._UI_LABEL_EXTENSION_DETAILS); Composite testComp = getWidgetFactory().createComposite(rightContent, SWT.FLAT);
title.setText(titleString + (isReadOnly ? " - " + Messages._UI_LABEL_READONLY : "")); //$NON-NLS-1$ //$NON-NLS-2$ Composite facetComposite = factory.createComposite(composite, SWT.FLAT);
leftComposite = factory.createComposite(mainComposite, SWT.NO_FOCUS); leftComposite.setLayout(new FormLayout()); leftComposite.setLayoutData(formData); tabComposite = factory.createComposite(scrolledComposite, SWT.NO_FOCUS); tabComposite.setLayout(new FormLayout());