Package org.eclipse.jface.action

Examples of org.eclipse.jface.action.StatusLineLayoutData


    imageLabel.setToolTipText("Halo 3 Status");
  }
 
  private static StatusLineLayoutData createStatusLineLayoutData(int widthHint, int heightHint)
  {
    StatusLineLayoutData data = new StatusLineLayoutData();
   
    data.widthHint = widthHint;
    data.heightHint = heightHint;
   
    return data;
View Full Code Here


    public void fill( Composite parent ) {
        Label separator = new Label(parent, SWT.SEPARATOR);
       
        group = new Composite(parent, SWT.NO_SCROLL|SWT.NO_TRIM );
        // group.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_BLUE));
        StatusLineLayoutData statusLineLayoutData = new StatusLineLayoutData();
        statusLineLayoutData.widthHint = SWT.DEFAULT;
        statusLineLayoutData.heightHint = ScaleRatioLabel.STATUS_LINE_HEIGHT;
        group.setLayoutData(statusLineLayoutData);

        GridLayout gridLayout = new GridLayout(2,false);
View Full Code Here

         * @see org.eclipse.jface.action.ContributionItem#fill(org.eclipse.swt.widgets.Composite)
         */
        @Override
        public void fill( Composite c ) {
            Label separator = new Label(c, SWT.SEPARATOR);
            StatusLineLayoutData data = new StatusLineLayoutData();
            separator.setLayoutData(data);
            data.widthHint = 1;
            data.heightHint = ScaleRatioLabel.STATUS_LINE_HEIGHT;
            button = new Button(c, SWT.PUSH | SWT.FLAT);
            setFont(button);
            data = new StatusLineLayoutData();
            button.setLayoutData(data);
            button.setText(value);
            button.addListener(SWT.Selection, new Listener(){

                public void handleEvent( Event event ) {
View Full Code Here

     * @see org.eclipse.jface.action.ContributionItem#fill(org.eclipse.swt.widgets.Composite)
     */
    @Override
    public void fill( Composite c ) {
        Label separator = new Label(c, SWT.SEPARATOR);
        StatusLineLayoutData data = new StatusLineLayoutData();
        separator.setLayoutData(data);
        data.widthHint = 1;
        data.heightHint = STATUS_LINE_HEIGHT;
       
        combo = new Combo(c, SWT.BORDER|SWT.CENTER);
       
        combo.addKeyListener(this);
        combo.addFocusListener(this);
        combo.addListener(SWT.MouseDown, new Listener(){
           public void handleEvent(Event e){
               if( combo.getText().contains(":") ) //$NON-NLS-1$
                   formatForEditing();
           }
        });
        combo.addSelectionListener( new SelectionListener(){           
            public void widgetSelected( SelectionEvent e ) {
                if( combo.getText().contains(":") ) //$NON-NLS-1$
                    formatForEditing();
                go();
            }
            public void widgetDefaultSelected( SelectionEvent e ) {
            }
        });
        data = new StatusLineLayoutData();
        combo.setLayoutData(data);
        updateScale();
        data.widthHint = 80;
        data.heightHint = STATUS_LINE_HEIGHT;
        this.mapPart.setFont(combo);
View Full Code Here

        }

    @Override
    public void fill(Composite parent) {
      Label separator = new Label(parent, SWT.SEPARATOR);
      StatusLineLayoutData data = new StatusLineLayoutData();
      data.widthHint = 1;
      data.heightHint = 15;
      separator.setLayoutData(data);
      textArea = new Text(parent, SWT.BORDER|SWT.CENTER);
      textArea.addKeyListener(this);
      textArea.addFocusListener(this);
      if( position!=null )
        textArea.setText(getString(position));
      textArea.setToolTipText(Messages.CursorPosition_tooltip);
            setFont(textArea);
      data=new StatusLineLayoutData();
     
      data.widthHint = 200;
      data.heightHint = 15;
      textArea.setLayoutData(data);
    }
View Full Code Here

         * @see org.eclipse.jface.action.ContributionItem#fill(org.eclipse.swt.widgets.Composite)
         */
        @Override
        public void fill( Composite c ) {
            Label separator = new Label(c, SWT.SEPARATOR);
            StatusLineLayoutData data = new StatusLineLayoutData();
            separator.setLayoutData(data);
            data.widthHint = 1;
            data.heightHint = ScaleRatioLabel.STATUS_LINE_HEIGHT;
            button = new Button(c, SWT.PUSH | SWT.FLAT);
            setFont(button);
            data = new StatusLineLayoutData();
            button.setLayoutData(data);
            button.setText(value);
            button.addListener(SWT.Selection, new Listener(){

                public void handleEvent( Event event ) {
View Full Code Here

    @Override
    protected IPreferenceStore fillFields( Composite parent ) {

        combo = new Combo(parent,  SWT.READ_ONLY);
        combo.setItems(lables);
        StatusLineLayoutData data = new StatusLineLayoutData();
        data.heightHint=SWT.DEFAULT;
        data.widthHint=100;
        combo.setLayoutData(data);
       
        addField( PreferenceConstants.P_SNAP_BEHAVIOUR, combo , behaviour);
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

        // sep.setLayoutData(ld);
        // }

        Composite comp = new Composite(parent, SWT.NONE);
        {
            StatusLineLayoutData ld = new StatusLineLayoutData();
            ld.widthHint = widthHint * 4;
            ld.heightHint = heightHint;
            comp.setLayoutData(ld);
        }
        comp.setLayout(new GridLayout(4, false));
View Full Code Here

            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

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.