/** * Set whether this is the last item in the breadcrumb item chain or not. * * @param isLast <code>true</code> if this is the last item, <code>false</code> otherwise */ void setIsLastItem(boolean isLast) { fIsLast= isLast; GridData data= (GridData) fContainer.getLayoutData(); data.grabExcessHorizontalSpace= isLast; }
/** * Set whether this is the last item in the breadcrumb item chain or not. * * @param isLast <code>true</code> if this is the last item, <code>false</code> otherwise */ void setIsLastItem(boolean isLast) { fIsLast= isLast; GridData data= (GridData) fContainer.getLayoutData(); data.grabExcessHorizontalSpace= isLast; }
@Override public Object getLayoutData() { return( browser.getLayoutData()); }
/** * Set whether this is the last item in the breadcrumb item chain or not. * * @param isLast <code>true</code> if this is the last item, <code>false</code> otherwise */ void setIsLastItem(boolean isLast) { fIsLast= isLast; GridData data= (GridData) fContainer.getLayoutData(); data.grabExcessHorizontalSpace= isLast; }
/** * Sets whether details should be shown. * * @param visible <code>true</code> if details should be shown */ public void setVisible(boolean visible) { fDetailComposite.setVisible(visible); GridData data= (GridData) fDetailComposite.getLayoutData(); data.exclude= !visible; }
@Override public void handleEvent(Event event) { float col1CurrentWidth = leftPanel.getSize().x; float col2CurrentWidth = rightPanel.getSize().x; final int minLeftPanelWidth = 250; // in pels final int minRightPanelWidth = (int) (col2CurrentWidth * minLeftPanelWidth / col1CurrentWidth); ((GridData) leftPanel.getLayoutData()).widthHint = minLeftPanelWidth; ((GridData) rightPanel.getLayoutData()).widthHint = minRightPanelWidth; sform.removeListener(SWT.Resize, this); // only do this one time } });
@Override protected void adjustForNumColumns(int numColumns) { Control control = getLabelControl(); if (control != null) { ((GridData) control.getLayoutData()).horizontalSpan = numColumns; } ((GridData) radioBox.getLayoutData()).horizontalSpan = numColumns; }
@Override protected void adjustForNumColumns(int numColumns) { Control control = getLabelControl(); if (control != null) { ((GridData) control.getLayoutData()).horizontalSpan = numColumns; } ((GridData) checkBoxBox.getLayoutData()).horizontalSpan = numColumns; }
protected void adjustForNumColumns(int numColumns) { Control control = getLabelControl(); if (control != null) { ((GridData) control.getLayoutData()).horizontalSpan = numColumns; } ((GridData) radioBox.getLayoutData()).horizontalSpan = numColumns; }
@Override protected void adjustForNumColumns(int numColumns) { Control control = getLabelControl(); if (control != null) { ((GridData) control.getLayoutData()).horizontalSpan = numColumns; } ((GridData) radioBox.getLayoutData()).horizontalSpan = numColumns; }
/** * Hides the breadcrumb * * @since 3.4 */ private void hideBreadcrumb() { if (fBreadcrumb == null) return; ((GridData) fBreadcrumbComposite.getLayoutData()).exclude= true; fBreadcrumbComposite.setVisible(false); fBreadcrumbComposite.getParent().layout(true, true); }
public void hide() { ((GridData)composite.getLayoutData()).exclude = true; // ignore by layout composite.setVisible(false); composite.layout(); parent.layout(); }
public void show() { ((GridData)composite.getLayoutData()).exclude = false; // ignore by layout composite.setVisible(true); composite.layout(); parent.layout(); } }
@Override protected Control createTreeControl(Composite parent, int style) { progressComposite = createProgressComposite(parent); // progressComposite.setVisible(false); // ((GridData) progressComposite.getLayoutData()).exclude = true; searchComposite = createSearchComposite(parent); if (searchComposite != null) { searchComposite.setVisible(false); ((GridData) searchComposite.getLayoutData()).exclude = true; } return super.createTreeControl(parent, style); }
public void setShowProgress(boolean showProgress) { this.showProgress = showProgress; progressComposite.setVisible(showProgress); ((GridData) progressComposite.getLayoutData()).exclude = !showProgress; getParent().getParent().layout(true, true); }
public void setShowSearch(boolean showSearch) { if (searchComposite != null) { searchComposite.setVisible(showSearch); ((GridData) searchComposite.getLayoutData()).exclude = !showSearch; getParent().getParent().layout(true, true); } } }
@Override public void createControl(Composite parent) { super.createControl(parent); Composite comp = (Composite) fJREBlock.getControl(); ((GridData) comp.getLayoutData()).grabExcessVerticalSpace = true; ((GridData) comp.getLayoutData()).verticalAlignment = SWT.FILL; fVMArgumentsBlock.createControl(comp); ((GridData) fVMArgumentsBlock.getControl().getLayoutData()).horizontalSpan = 2; fWorkingDirectoryBlock.createControl(comp); ((GridData) fWorkingDirectoryBlock.getControl().getLayoutData()).horizontalSpan = 2; }
@Override public void handleEvent(Event arg0) { COConfigurationManager.setParameter("subscriptions.view.showhelp", false); composite.setVisible(false); FormData data = (FormData) view.getComposite().getLayoutData(); data.bottom = new FormAttachment(100,0); viewComposite.layout(true); } });
protected Control createContents(Composite parent) { Composite pageComponent = createComposite(parent, 1); ((GridData) pageComponent.getLayoutData()).horizontalAlignment = GridData.HORIZONTAL_ALIGN_FILL; super.createContents(pageComponent); PlatformUI.getWorkbench().getHelpSystem().setHelp(pageComponent, IHelpContextIds.XML_PREFWEBX_STYLES_HELPID); return pageComponent; }
private void setWarningText(String warning) { if (warningComposite == null || warningComposite.isDisposed()) return; GridData gd = (GridData) warningComposite.getLayoutData(); gd.exclude = warning == null; warningComposite.setVisible(!gd.exclude); if (warning != null) warningLabel.setText(warning); else warningLabel.setText(""); //$NON-NLS-1$ warningComposite.getParent().layout(true); }