Package org.eclipse.ui.internal.presentations.util

Examples of org.eclipse.ui.internal.presentations.util.EnhancedFillLayout


    private Control childControl;
    private Color borderColor;
   
    public EmptyTabFolder(Composite parent, boolean showborder) {
        control = new Composite(parent, SWT.NONE);
        EnhancedFillLayout layout = new EnhancedFillLayout();
        control.setLayout(layout);
        borderColor = parent.getDisplay().getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW);
        if (showborder) {
            layout.xmargin = 1;
            layout.ymargin = 1;
View Full Code Here


          // Instead, use the sizes of the margins.  This is equivalent to calling control.computeSize(...)
          // if the childControl returned 0@0 for its preferred size.
          if (childControl instanceof Composite) {
            Composite composite = (Composite) childControl;
            if (composite.getChildren().length == 0) {
              EnhancedFillLayout layout = (EnhancedFillLayout) control.getLayout();
              int w = widthHint == SWT.DEFAULT ? layout.xmargin * 2 : widthHint;
              int h = heightHint == SWT.DEFAULT ? layout.ymargin * 2 : heightHint;
              return new Point(w, h);
            }
          }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.presentations.util.EnhancedFillLayout

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.