Package org.eclipse.jface.action

Examples of org.eclipse.jface.action.StatusLineLayoutData


            widthHint = fm.getAverageCharWidth() * charWidth;
            heightHint = fm.getHeight();
            gc.dispose();
        }

        StatusLineLayoutData data = new StatusLineLayoutData();
        data.widthHint = widthHint;
        label.setLayoutData(data);
        label.setText(text);

        data = new StatusLineLayoutData();
        data.heightHint = heightHint;
        sep.setLayoutData(data);

    }
View Full Code Here


    if (fActionHandler != null) {
      fMouseListener= new Listener();
      fLabel.addMouseListener(fMouseListener);
    }

    StatusLineLayoutData data= new StatusLineLayoutData();
    data.widthHint= getWidthHint(parent);
    fLabel.setLayoutData(data);

    data= new StatusLineLayoutData();
    data.heightHint= getHeightHint(parent);
    sep.setLayoutData(data);

    updateMessageLabel();
  }
View Full Code Here

  @Override
  public void fill(Composite parent) {   
    new Label(parent, SWT.SEPARATOR);
    label = new CLabel(parent, SWT.SHADOW_NONE);
    setProxyStopped();
    StatusLineLayoutData layoutData = new StatusLineLayoutData();
    layoutData.widthHint = 220;
    label.setLayoutData(layoutData);
    label.addMouseListener(new MouseAdapter() {
      @Override
      public void mouseDown(MouseEvent e) {
View Full Code Here

        StatusLineManager statusLineManager = getStatusLineManager();
        if (statusLineManager != null) {
            IContributionItem filler = new ControlContribution("org.geotools.swt.SwtMapFrame.ID"){
                protected Control createControl( Composite parent ) {
                    Label almostParent = new Label(parent, SWT.NONE);
                    StatusLineLayoutData statusLineLayoutData = new StatusLineLayoutData();
                    statusLineLayoutData.widthHint = 1;
                    statusLineLayoutData.heightHint = 45;
                    almostParent.setLayoutData(statusLineLayoutData);
                    return almostParent;
                }
View Full Code Here

        mapPane.getMapContent().addMapBoundsListener(this);

        Composite mainComposite = new Composite(parent, SWT.NONE);
        GridLayout gridLayout = new GridLayout(1, false);
        mainComposite.setLayout(gridLayout);
        StatusLineLayoutData statusLineLayoutData = new StatusLineLayoutData();
        // statusLineLayoutData.widthHint = 500;
        mainComposite.setLayoutData(statusLineLayoutData);

        crsButton = new Button(mainComposite, SWT.PUSH);
        GridData crsButtonGD = new GridData(SWT.BEGINNING, SWT.CENTER, false, false);
View Full Code Here

TOP

Related Classes of org.eclipse.jface.action.StatusLineLayoutData

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.