Package org.eclipse.ui.internal

Examples of org.eclipse.ui.internal.WindowTrimProxy


   * Create and format the IWindowTrim for the handle, ensuring that the
   * handle will be 'wide' enough to display the drag affordance.
   */
  private void createWindowTrimProxy() {
    // Create a window trim proxy for the handle
    WindowTrimProxy proxy = new WindowTrimProxy(this, "NONE", "NONE", //$NON-NLS-1$ //$NON-NLS-2$
        SWT.TOP | SWT.BOTTOM | SWT.LEFT | SWT.RIGHT, false);

    // Set up the handle's hints based on the computed size that
    // the handle has to be (i.e. if it's HORIZONTAL then the
    // 'width' is determined by the space required to show the
    // CB's drag affordance).
    if (orientation == SWT.HORIZONTAL) {
      proxy.setWidthHint(getHandleSize());
      proxy.setHeightHint(0);
    }
    else {
      proxy.setWidthHint(0);
      proxy.setHeightHint(getHandleSize());
    }
   
    setLayoutData(proxy);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.WindowTrimProxy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.