Examples of convertHorizontalDLUsToPixels()


Examples of org.eclipse.dltk.ui.util.PixelConverter.convertHorizontalDLUsToPixels()

     * Returns a width hint for a button control.
     */
    public int getButtonWidthHint(Button button) {
      button.setFont(JFaceResources.getDialogFont());
      PixelConverter converter = new PixelConverter(button);
      int widthHint = converter.convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
      return Math.max(widthHint, button.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
    }

    private String[] getEntries() {
      return fList.getList().getItems();
View Full Code Here

Examples of org.eclipse.dltk.ui.util.PixelConverter.convertHorizontalDLUsToPixels()

     * Returns a width hint for a button control.
     */
    public int getButtonWidthHint(Button button) {
      button.setFont(JFaceResources.getDialogFont());
      PixelConverter converter = new PixelConverter(button);
      int widthHint = converter.convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
      return Math.max(widthHint, button.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
    }

    private String[] getEntries() {
      return fList.getList().getItems();
View Full Code Here

Examples of org.eclipse.jface.layout.PixelConverter.convertHorizontalDLUsToPixels()

   * @return the width hint
   */
  public static int getButtonWidthHint(Button button) {
    button.setFont(JFaceResources.getDialogFont());
    PixelConverter converter= new PixelConverter(button);
    int widthHint= converter.convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
    return Math.max(widthHint, button.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
  }

  /**
   * Sets width and height hint for the button control.
View Full Code Here

Examples of org.eclipse.jface.layout.PixelConverter.convertHorizontalDLUsToPixels()

   * @return the width hint
   */
  public static int getButtonWidthHint(Button button) {
    button.setFont(JFaceResources.getDialogFont());
    PixelConverter converter= new PixelConverter(button);
    int widthHint= converter.convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
    return Math.max(widthHint, button.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
  }

  /**
   * Sets width and height hint for the button control.
View Full Code Here

Examples of org.eclipse.jface.layout.PixelConverter.convertHorizontalDLUsToPixels()

  }
 
  private static int getButtonWidthHint(Button button) {
    /*button.setFont(JFaceResources.getDialogFont());*/
    PixelConverter converter= new PixelConverter(button);
    int widthHint= converter.convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
    return Math.max(widthHint, button.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
  }

  public void setType(String type) {
    this.fType = type;
View Full Code Here

Examples of org.eclipse.jface.layout.PixelConverter.convertHorizontalDLUsToPixels()

  private static int getButtonWidthHint(Button button)
  {
    /* button.setFont(JFaceResources.getDialogFont()); */
    PixelConverter converter = new PixelConverter(button);
    int widthHint = converter.convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
    return Math.max(widthHint, button.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
  }

  public void setType(String type)
  {
View Full Code Here

Examples of org.eclipse.jface.layout.PixelConverter.convertHorizontalDLUsToPixels()

   * Returns a width hint for a button control.
   */
  public static int getButtonWidthHint(Button button) {
    /* button.setFont(JFaceResources.getDialogFont()); */
    PixelConverter converter = new PixelConverter(button);
    int widthHint = converter
        .convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
    return Math.max(widthHint,
        button.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
  }

View Full Code Here

Examples of org.eclipse.jface.layout.PixelConverter.convertHorizontalDLUsToPixels()

    button.setData(new Integer(index));

    // Set the default button size
    button.setFont(JFaceResources.getDialogFont());
    PixelConverter converter = new PixelConverter(button);
    int widthHint = converter.convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
    gd.widthHint = Math.max(widthHint, button.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);

    return button;
  }
View Full Code Here

Examples of org.eclipse.jface.layout.PixelConverter.convertHorizontalDLUsToPixels()

   * @return the width hint for the button
   */
  public static int getButtonWidthHint(Button button) {
    button.setFont(JFaceResources.getDialogFont());
    PixelConverter converter= new PixelConverter(button);
    int widthHint= converter.convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
    return Math.max(widthHint, button.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
  }

  /**
   * Sets width and height hint for the button control.
View Full Code Here

Examples of org.eclipse.jface.layout.PixelConverter.convertHorizontalDLUsToPixels()

    }

    public static int getButtonWidthHint(Button button) {
        button.setFont(JFaceResources.getDialogFont());
        PixelConverter converter = new PixelConverter(button);
        int widthHint = converter
                .convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
        return Math.max(widthHint,
                button.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
    }
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.