/** * Creates the example layout. */ @Override void createLayout() { stackLayout = new StackLayout(); layoutComposite.setLayout(stackLayout); }
/** * Returns a string containing a concise, human-readable * description of the receiver. * * @return a string representation of the layout */ @Override public String toString () { String string = getName ()+" {"; if (marginWidth != 0) string += "marginWidth="+marginWidth+" "; if (marginHeight != 0) string += "marginHeight="+marginHeight+" "; if (topControl != null) string += "topControl="+topControl+" "; string = string.trim(); string += "}"; return string; } }
protected Composite createStackLayoutComposite(Composite parent) { Composite composite = new Composite(parent, SWT.NULL); stackLayout = new StackLayout(); composite.setLayout(stackLayout); composite.setLayoutData(new GridData(GridData.FILL_BOTH)); return composite; }
/** * Returns a string containing a concise, human-readable * description of the receiver. * * @return a string representation of the layout */ @Override public String toString () { String string = getName ()+" {"; if (marginWidth != 0) string += "marginWidth="+marginWidth+" "; if (marginHeight != 0) string += "marginHeight="+marginHeight+" "; if (topControl != null) string += "topControl="+topControl+" "; string = string.trim(); string += "}"; return string; } }
public void createControl(Composite parent, int span, int indent) { Composite blockComposite = SWTFactory.createComposite(parent, 1, 1, GridData.FILL_BOTH); fSpan = span; fIndent = indent; fLayout = new StackLayout(); blockComposite.setLayout(fLayout); fLayout.topControl = fPluginBlockComposite; fParent = blockComposite; }
/** * Returns a string containing a concise, human-readable * description of the receiver. * * @return a string representation of the layout */ public String toString () { String string = getName ()+" {"; if (marginWidth != 0) string += "marginWidth="+marginWidth+" "; if (marginHeight != 0) string += "marginHeight="+marginHeight+" "; if (topControl != null) string += "topControl="+topControl+" "; string = string.trim(); string += "}"; return string; } }
public PageBook(Composite parent, int style) { super(parent, style); fLayout= new StackLayout(); setLayout(fLayout); fLayout.marginWidth= 5; fLayout.marginHeight= 5; } public void showPage(Control page) {
/** * Returns a string containing a concise, human-readable description of the * receiver. * * @return a string representation of the layout */ public String toString() { String string = getName() + " {"; if( marginWidth != 0 ) string += "marginWidth=" + marginWidth + " "; if( marginHeight != 0 ) string += "marginHeight=" + marginHeight + " "; if( topControl != null ) string += "topControl=" + topControl + " "; string = string.trim(); string += "}"; return string; } }
@Override protected ISourceViewer createSourceViewer(Composite parent, IVerticalRuler ruler, int styles) { Composite composite = new Composite(parent, SWT.NONE); GridLayout compositeLayout = new GridLayout(1, false); compositeLayout.marginHeight = 0; compositeLayout.marginWidth = 0; compositeLayout.horizontalSpacing = 0; compositeLayout.verticalSpacing = 0; composite.setLayout(compositeLayout); topPanel = new Composite(composite, SWT.NONE); topPanel.setLayout(new StackLayout()); topPanel.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false)); Composite editorComposite = new Composite(composite, SWT.NONE); editorComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); FillLayout fillLayout = new FillLayout(SWT.VERTICAL); fillLayout.marginHeight = 0; fillLayout.marginWidth = 0; fillLayout.spacing = 0; editorComposite.setLayout(fillLayout); ISourceViewer result = doCreateSourceViewer(editorComposite, ruler, styles); return result; }
/** * Returns a string containing a concise, human-readable * description of the receiver. * * @return a string representation of the layout */ @Override public String toString () { String string = getName ()+" {"; if (marginWidth != 0) string += "marginWidth="+marginWidth+" "; if (marginHeight != 0) string += "marginHeight="+marginHeight+" "; if (topControl != null) string += "topControl="+topControl+" "; string = string.trim(); string += "}"; return string; } }
public void createPartControl(Composite parent) { fParent= new Composite(parent, SWT.NONE); fStackLayout= new StackLayout(); fParent.setLayout(fStackLayout); fDefaultComposite= new Composite(fParent, SWT.NONE); fDefaultComposite.setLayout(new FillLayout()); super.createPartControl(fDefaultComposite); updatePartControl(getEditorInput()); }
/** * Returns a string containing a concise, human-readable * description of the receiver. * * @return a string representation of the layout */ @Override public String toString () { String string = getName ()+" {"; if (marginWidth != 0) string += "marginWidth="+marginWidth+" "; if (marginHeight != 0) string += "marginHeight="+marginHeight+" "; if (topControl != null) string += "topControl="+topControl+" "; string = string.trim(); string += "}"; return string; } }
@Override public Object createWidget(MUIElement element, Object parent) { if (!(element instanceof MPerspectiveStack) || !(parent instanceof Composite)) return null; Composite perspStack = new Composite((Composite) parent, SWT.NONE); IStylingEngine stylingEngine = getContext(element).get(IStylingEngine.class); stylingEngine.setClassname(perspStack, "perspectiveLayout"); //$NON-NLS-1$ perspStack.setLayout(new StackLayout()); return perspStack; }
@Override public Object createWidget(MUIElement element, Object parent) { if (!(element instanceof MPerspectiveStack) || !(parent instanceof Composite)) return null; Composite perspStack = new Composite((Composite) parent, SWT.NONE); IStylingEngine stylingEngine = (IStylingEngine) getContext(element) .get(IStylingEngine.SERVICE_NAME); stylingEngine.setClassname(perspStack, "perspectiveLayout"); //$NON-NLS-1$ perspStack.setLayout(new StackLayout()); return perspStack; }
@Override public void createPartControl(Composite parent) { fParent= new Composite(parent, SWT.NONE); fStackLayout= new StackLayout(); fParent.setLayout(fStackLayout); fDefaultComposite= new Composite(fParent, SWT.NONE); fDefaultComposite.setLayout(new FillLayout()); super.createPartControl(fDefaultComposite); updatePartControl(getEditorInput()); }
@Override public void createPartControl(Composite parent) { fParent= new Composite(parent, SWT.NONE); fStackLayout= new StackLayout(); fParent.setLayout(fStackLayout); fDefaultComposite= new Composite(fParent, SWT.NONE); fDefaultComposite.setLayout(new FillLayout()); super.createPartControl(fDefaultComposite); updatePartControl(getEditorInput()); }
private Composite createMainPanel(final Composite parent) { topControl = new Composite(parent, SWT.NONE); StackLayout layout = new StackLayout(); topControl.setLayout(layout); final Composite c = new Composite(topControl, SWT.NULL); layout.topControl = c; // shown instead of the splitter if an error message was set errorText = new StyledText(topControl, SWT.NONE); // use the same font as in message viewer errorText.setFont(UIUtils .getFont(UIPreferences.THEME_CommitMessageFont)); final GridLayout parentLayout = new GridLayout(); parentLayout.marginHeight = 0; parentLayout.marginWidth = 0; parentLayout.verticalSpacing = 0; c.setLayout(parentLayout); return c; }
private void createParentPluginGroup(Composite container) { Group parentGroup = new Group(container, SWT.NONE); parentGroup.setLayout(new GridLayout(2, false)); parentGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); parentGroup.setText(PDEUIMessages.ContentPage_parentPluginGroup); fNotebook = new Composite(parentGroup, SWT.NONE); GridData gd = new GridData(GridData.FILL_BOTH); gd.horizontalSpan = 2; fNotebook.setLayoutData(gd); fNotebookLayout = new StackLayout(); fNotebook.setLayout(fNotebookLayout); fNewComp = createNewVersionComp(fNotebook); fOldComp = createOldVersionComp(fNotebook); fNotebookLayout.topControl = fNewVersion ? fNewComp : fOldComp; }
gd= new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.VERTICAL_ALIGN_BEGINNING); fGroup.setLayoutData(gd); fStackLayout= new StackLayout(); fGroup.setLayout(fStackLayout);
gd.horizontalIndent= 10; fGroup.setLayoutData(gd); fStackLayout= new StackLayout(); fGroup.setLayout(fStackLayout);