Examples of convertHeightInCharsToPixels()


Examples of org.eclipse.php.internal.ui.util.PixelConverter.convertHeightInCharsToPixels()

      fViewer = new TreeViewer(parent, SWT.SINGLE | SWT.H_SCROLL
          | SWT.V_SCROLL | SWT.BORDER);
      GridData layoutData = new GridData(GridData.FILL_BOTH);
      layoutData.widthHint = pixelConverter
          .convertWidthInCharsToPixels(70);
      layoutData.heightHint = pixelConverter
          .convertHeightInCharsToPixels(20);
      fViewer.getControl().setLayoutData(layoutData);

      fViewer.setContentProvider(new ContentProvider());
      fViewer.setLabelProvider(new LabelProvider());
View Full Code Here

Examples of org.eclipse.php.internal.ui.util.PixelConverter.convertHeightInCharsToPixels()

    PixelConverter pixelConverter = new PixelConverter(composite);

    Label filler = new Label(composite, SWT.LEFT);
    GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
    gd.horizontalSpan = 2;
    gd.heightHint = pixelConverter.convertHeightInCharsToPixels(1) / 2;
    filler.setLayoutData(gd);
  }

  private Button addCheckBox(Composite parent, String label, String key,
      int indentation) {
View Full Code Here

Examples of org.erlide.ui.util.PixelConverter.convertHeightInCharsToPixels()

    private void addFiller(final Composite composite, final int horizontalSpan) {
        final PixelConverter pixelConverter = new PixelConverter(composite);
        final Label filler = new Label(composite, SWT.LEFT);
        final GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
        gd.horizontalSpan = horizontalSpan;
        gd.heightHint = pixelConverter.convertHeightInCharsToPixels(1) / 2;
        filler.setLayoutData(gd);
    }

    public static String loadPreviewContentFromFile(final Class<?> clazz,
            final String filename) {
View Full Code Here

Examples of org.erlide.ui.util.PixelConverter.convertHeightInCharsToPixels()

                | GridData.VERTICAL_ALIGN_FILL);
        composite.setLayoutData(gd);
        final GridLayout layout = new GridLayout();
        layout.numColumns = 2;
        final PixelConverter pc = new PixelConverter(composite);
        layout.verticalSpacing = pc.convertHeightInCharsToPixels(1) / 2;
        composite.setLayout(layout);

        /* check box for new editors */
        fFoldingCheckbox = new Button(composite, SWT.CHECK);
        fFoldingCheckbox.setText(PreferencesMessages.FoldingConfigurationBlock_enable);
View Full Code Here

Examples of org.erlide.ui.util.PixelConverter.convertHeightInCharsToPixels()

        gd.grabExcessHorizontalSpace = false;
        gd.verticalAlignment = GridData.FILL;
        gd.grabExcessVerticalSpace = true;
        gd.horizontalSpan = nColumns - 2;
        gd.widthHint = converter.convertWidthInCharsToPixels(50);
        gd.heightHint = converter.convertHeightInCharsToPixels(6);

        list.setLayoutData(gd);

        final Composite buttons = getButtonBox(parent);
        gd = new GridData();
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.