Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Composite.pack()


                messageLabel.setBackground(parent.getDisplay().
                        getSystemColor(SWT.COLOR_LIST_BACKGROUND));
            }
        }

        messagePage.pack();

        return messagePage;
    }

    /**
 
View Full Code Here


   */
  public void dispose(){
    Composite parentComposite = baseComposite.getParent();
    baseComposite.dispose();
    Composite c = parentComposite;
    c.pack();
    c.layout();
    while (!(c.getParent() instanceof Shell)){
      c = c.getParent();
       c.pack();
       c.layout();
View Full Code Here

    Composite c = parentComposite;
    c.pack();
    c.layout();
    while (!(c.getParent() instanceof Shell)){
      c = c.getParent();
       c.pack();
       c.layout();
     }
  }
 
  /**
 
View Full Code Here

  /**
   * packs all parent composites to set the correct ScrollBar Position
   */
  public void pack(){
    Composite c = baseComposite;
    c.pack();
    c.layout();
    while (!(c.getParent() instanceof Shell)){
       c = c.getParent();
       c.pack();
       c.layout();
View Full Code Here

    Composite c = baseComposite;
    c.pack();
    c.layout();
    while (!(c.getParent() instanceof Shell)){
       c = c.getParent();
       c.pack();
       c.layout();
     };
  }
 
}
View Full Code Here

                    refreshOk();
                }
            }
        });

        composite.pack();
        getShell().setText(Messages.getString("EditorSelectionDialog.title"));
        return composite;
    }

    @Override
View Full Code Here

                        comboBoxes[j][1].setEnabled(enabled);
                        comboBoxes[j][2].setEnabled(enabled);
                    }
                }
            });
            bottomComposite.pack();
        }
    }

    private void initConstructorView() {
        for (int i = 0; i < transitionNames.size(); i++) {
View Full Code Here

            "Click to remove selected binding or External Resource");
    bindButton = newPushButton(buttonContainer, "Bind",
            "Click to bind selected dependency with selected Resource");
    exportButton = newPushButton(buttonContainer, S_EXPORT, S_EXPORT_TIP);

    buttonContainer.pack();
    getSection().getParent().getParent().pack();
    getSection().getParent().getParent().layout();
    initialFormWidth = getSection().getSize().x;
    ((GridData) tree.getLayoutData()).widthHint = initialFormWidth - buttonContainer.getSize().x;
View Full Code Here

        // the contents won't show
        Composite c = window.getContents();
        c.setLayout(new FillLayout());
        Label l = new Label(c, SWT.NONE);
        l.setText(text);
        c.pack(true);

        // Locate the balloon to the widget location
        if (control != null) {
            Point widgetLocation = control.toDisplay(new Point(0, 0));
            window.setLocation(widgetLocation);
View Full Code Here

        public void handleEvent(Event e) {
          sashData.top = new FormAttachment(0, e.y);
          annotationsComposite.layout();
        }
      });
      annotationsComposite.pack(true);
    }

    /*
     * (non-Javadoc)
     *
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.