Examples of convertHeightInCharsToPixels()


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

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

        list.setLayoutData(gd);

        Composite buttons = getButtonBox(parent);
        gd = new GridData();
View Full Code Here

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

  public void createContents(Composite topControl) {
    PixelConverter pc = new PixelConverter(topControl);
   
    GridData gd;
    gd = GridDataFactory.swtDefaults().align(SWT.FILL, SWT.CENTER).span(2, 1).create();
    gd.heightHint = pc.convertHeightInCharsToPixels(1) / 2;
    SWTFactoryUtil.createLabel(topControl, SWT.LEFT, "", gd);
   
    SWTFactoryUtil.createLabel(topControl, SWT.LEFT, PreferencesMessages.EditorPreferencePage_title1,
      GridDataFactory.swtDefaults().align(SWT.FILL, SWT.CENTER).span(2, 1).create());
   
View Full Code Here

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

    editorComposite.setLayout(GridLayoutFactory.swtDefaults().numColumns(2).margins(0, 0).create());
    editorComposite.setLayoutData(GridDataFactory.fillDefaults().grab(false, true).span(2, 1).create());
   
    colorList = new List(editorComposite, SWT.SINGLE | SWT.V_SCROLL | SWT.BORDER);
    gd = new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL);
    gd.heightHint = pc.convertHeightInCharsToPixels(12);
    colorList.setLayoutData(gd);
    for(int i = 0; i < editorColorItems.length; i++) {
      colorList.add(editorColorItems[i].label);
    }
    colorList.addSelectionListener(new SelectionAdapter() {
View Full Code Here

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

   
    treeViewer = new TreeViewerExt(editorComposite, SWT.SINGLE | SWT.BORDER);
    treeViewer.setContentProvider(new ElementContentProvider2());
    treeViewer.setLabelProvider(new LabeledTreeElementLabelProvider());
    treeViewer.getTree().setLayoutData(
      gdFillDefaults().hint(pc.convertWidthInCharsToPixels(40), pc.convertHeightInCharsToPixels(10)).create());
    treeViewer.addSelectionChangedListener(new ISelectionChangedListener() {
      @Override
      public void selectionChanged(SelectionChangedEvent event) {
        handleAppearanceColorListSelectionChanged();
      }
View Full Code Here

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

      gdFillDefaults().create());
   
   
    Control previewViewerControl = createPreviewViewer(topControl);
    previewViewerControl.setLayoutData(
      gdFillDefaults().hint(pc.convertWidthInCharsToPixels(50), pc.convertHeightInCharsToPixels(15)).
      grab(true, true).
      create());
  }
 
  @Override
View Full Code Here

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

    pharLabel.setLayoutData(labelData);

    GridData listData = new GridData(GridData.FILL_HORIZONTAL
        | GridData.VERTICAL_ALIGN_BEGINNING);
    listData.widthHint = conv.convertWidthInCharsToPixels(50);
    listData.heightHint = conv.convertHeightInCharsToPixels(12);
    Control listControl = pharField.getListControl(pharContent);
    listControl.setLayoutData(listData);

    Control buttonsControl = pharField.getButtonBox(pharContent);
    buttonsControl.setLayoutData(new GridData(
View Full Code Here

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

        | GridData.VERTICAL_ALIGN_FILL);
    composite.setLayoutData(gd);
    GridLayout layout = new GridLayout();
    layout.numColumns = 2;
    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
View Full Code Here

Examples of org.eclipse.php.internal.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);

    Composite buttons = getButtonBox(parent);
    gd = new GridData();
View Full Code Here

Examples of org.eclipse.php.internal.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);

    Composite buttons = getButtonBox(parent);
    gd = new GridData();
View Full Code Here

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

  private void addFiller(Composite composite) {
    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);
  }

  protected void sideButtonPressed(int index) {
    if (index == IDX_ADD) {
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.