Package org.eclipse.dltk.ui.util

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


     * 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

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.