Codota Logo
Composite.getLayoutData
Code IndexAdd Codota to your IDE (free)

How to use
getLayoutData
method
in
org.eclipse.swt.widgets.Composite

Best Java code snippets using org.eclipse.swt.widgets.Composite.getLayoutData (Showing top 20 results out of 315)

  • Common ways to obtain Composite
private void myMethod () {
Composite c =
  • Codota IconControl control;control.getParent()
  • Codota IconStatusDialog zuper;(Composite) zuper.createDialogArea(parent)
  • Codota IconTitleAreaDialog zuper;(Composite) zuper.createDialogArea(parent)
  • Smart code suggestions by Codota
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

/**
 * 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;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

/**
 * 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;
}
origin: BiglySoftware/BiglyBT

@Override
public Object
getLayoutData()
{
  return( browser.getLayoutData());
}
origin: org.eclipse.platform/org.eclipse.debug.ui

/**
 * 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;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

/**
 * 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;
}
origin: org.apache.uima/uimaj-ep-configurator

 @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
 }
});
origin: org.eclipse.platform/org.eclipse.jface

@Override
protected void adjustForNumColumns(int numColumns) {
  Control control = getLabelControl();
  if (control != null) {
    ((GridData) control.getLayoutData()).horizontalSpan = numColumns;
  }
  ((GridData) radioBox.getLayoutData()).horizontalSpan = numColumns;
}
origin: org.eclipse.xtext/ui

@Override
protected void adjustForNumColumns(int numColumns) {
  Control control = getLabelControl();
  if (control != null) {
    ((GridData) control.getLayoutData()).horizontalSpan = numColumns;
  }
  ((GridData) checkBoxBox.getLayoutData()).horizontalSpan = numColumns;
}
origin: org.eclipse.rap/org.eclipse.rap.jface

protected void adjustForNumColumns(int numColumns) {
  Control control = getLabelControl();
  if (control != null) {
    ((GridData) control.getLayoutData()).horizontalSpan = numColumns;
  }
  ((GridData) radioBox.getLayoutData()).horizontalSpan = numColumns;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

@Override
protected void adjustForNumColumns(int numColumns) {
  Control control = getLabelControl();
  if (control != null) {
    ((GridData) control.getLayoutData()).horizontalSpan = numColumns;
  }
  ((GridData) radioBox.getLayoutData()).horizontalSpan = numColumns;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

/**
 * 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);
}
origin: org.eclipse.egit/ui

public void hide() {
  ((GridData)composite.getLayoutData()).exclude = true;	// ignore by layout
  composite.setVisible(false);
  composite.layout();
  parent.layout();
}
origin: org.eclipse.egit/ui

  public void show() {
    ((GridData)composite.getLayoutData()).exclude = false;	// ignore by layout
    composite.setVisible(true);
    composite.layout();
    parent.layout();
  }
}
origin: org.eclipse.mylyn.commons/workbench

public void setShowProgress(boolean showProgress) {
  this.showProgress = showProgress;
  progressComposite.setVisible(showProgress);
  ((GridData) progressComposite.getLayoutData()).exclude = !showProgress;
  getParent().getParent().layout(true, true);
}
origin: org.eclipse.mylyn.commons/workbench

  @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);
  }

origin: org.eclipse.mylyn.commons/workbench

  public void setShowSearch(boolean showSearch) {
    if (searchComposite != null) {
      searchComposite.setVisible(showSearch);
      ((GridData) searchComposite.getLayoutData()).exclude = !showSearch;
      getParent().getParent().layout(true, true);
    }
  }
}
origin: org.eclipse.platform/org.eclipse.ant.ui

@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;
}
origin: BiglySoftware/BiglyBT

  @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);
  }
});
origin: org.eclipse/org.eclipse.wst.xml.ui

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;
}
origin: org.eclipse.egit/ui

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);
}
org.eclipse.swt.widgetsCompositegetLayoutData

Popular methods of Composite

  • setLayout
    Sets the layout which is associated with the receiver to be the argument which may be null.
  • <init>
    Constructs a new instance of this class given its parent and a style value describing its behavior a
  • setLayoutData
  • layout
    Forces a lay out (that is, sets the size and location) of all widgets that are in the parent hierarc
  • getDisplay
  • getChildren
    Returns a (possibly empty) array containing the receiver's children. Children are returned in the or
  • getShell
  • getFont
  • getLayout
    Returns layout which is associated with the receiver, or null if one has not been set.
  • setFont
  • getParent
  • computeSize
  • getParent,
  • computeSize,
  • dispose,
  • setBackground,
  • getClientArea,
  • isDisposed,
  • getBackground,
  • setVisible,
  • setSize,
  • setData

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • setContentView (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now