Examples of convertWidthInCharsToPixels()


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

        gd.horizontalAlignment = GridData.FILL;
        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);
View Full Code Here

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

  @Override
  protected void createContents_layout() {
    GridData textGD = layout2Controls(label, text, false);
   
    PixelConverter pixelConverter = new PixelConverter(text.getParent());
    textGD.widthHint = pixelConverter.convertWidthInCharsToPixels(textLimit + 1);
  }
 
}
View Full Code Here

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

    componentComposite.setLayout(GridLayoutFactory.swtDefaults().numColumns(2).margins(0, 0).create());
   
    Composite tableComposite = createTable(componentComposite);
    PixelConverter conv = new PixelConverter(componentComposite);
    tableComposite.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).
      hint(conv.convertWidthInCharsToPixels(80), SWT.DEFAULT).create());
   
    elementsTableViewer = new CheckboxTableViewerExt<E>(table);
    elementsTableViewer.setContentProvider0(new TableContentProvider());
    elementsTableViewer.setLabelProvider0(createLabelProvider());
   
View Full Code Here

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

    PixelConverter pc = new PixelConverter(topControl);
   
    Link openPrefsLink = createOpenPreferencesDialogLink(topControl,
      PreferencesMessages.DLTKEditorColoringConfigurationBlock_link);
    openPrefsLink.setLayoutData(
      gdFillDefaults().hint(pc.convertWidthInCharsToPixels(50), SWT.DEFAULT).create());
   
    createHorizontalSpacer(topControl, 1, pc);
   
    SWTFactoryUtil.createLabel(topControl, SWT.LEFT,
      PreferencesMessages.DLTKEditorPreferencePage_coloring_element,
View Full Code Here

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

   
    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.convertWidthInCharsToPixels()

      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.convertWidthInCharsToPixels()

    labelData.horizontalSpan = 3;
    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);
View Full Code Here

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

    gd.horizontalAlignment = GridData.FILL;
    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);
View Full Code Here

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

    gd.horizontalAlignment = GridData.FILL;
    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);
View Full Code Here

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

    scrolledCompositeImpl.setLayout(layout);
    scrolledCompositeImpl.setFont(parent.getFont());

    GridData data = new GridData(GridData.FILL_BOTH);
    data.widthHint = conv.convertWidthInCharsToPixels(50);
    Control listControl = fPHPManualButtonsList.getListControl(composite);
    listControl.setLayoutData(data);

    Control buttonsControl = fPHPManualButtonsList.getButtonBox(composite);
    buttonsControl.setLayoutData(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.