Examples of convertWidthInCharsToPixels()


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

    LayoutUtil.doDefaultLayout(composite,
        new DialogField[] { fFoldersList }, true, SWT.DEFAULT,
        SWT.DEFAULT);
    LayoutUtil.setHorizontalGrabbing(fFoldersList.getTreeControl(null));

    int buttonBarWidth = converter.convertWidthInCharsToPixels(24);
    fFoldersList.setButtonsMinWidth(buttonBarWidth);

    fSWTControl = composite;

    // expand
View Full Code Here

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

    Composite composite = new Composite(parent, SWT.NONE);
    LayoutUtil.doDefaultLayout(composite,
        new DialogField[] { fLibrariesList }, true, SWT.DEFAULT,
        SWT.DEFAULT);
    LayoutUtil.setHorizontalGrabbing(fLibrariesList.getTreeControl(null));
    int buttonBarWidth = converter.convertWidthInCharsToPixels(24);
    fLibrariesList.setButtonsMinWidth(buttonBarWidth);
    fLibrariesList.getTreeViewer().setSorter(new BPListElementSorter());
    fSWTControl = composite;
    return composite;
  }
View Full Code Here

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

    LayoutUtil.doDefaultLayout(composite,
        new DialogField[] { fProjectsList }, true, SWT.DEFAULT,
        SWT.DEFAULT);
    LayoutUtil.setHorizontalGrabbing(fProjectsList.getTreeControl(null));

    int buttonBarWidth = converter.convertWidthInCharsToPixels(24);
    fProjectsList.setButtonsMinWidth(buttonBarWidth);

    fSWTControl = composite;

    return composite;
View Full Code Here

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

    LayoutUtil.doDefaultLayout(composite,
        new DialogField[] { fBuildpathList }, true, SWT.DEFAULT,
        SWT.DEFAULT);
    LayoutUtil.setHorizontalGrabbing(fBuildpathList.getListControl(null));

    int buttonBarWidth = converter.convertWidthInCharsToPixels(24);
    fBuildpathList.setButtonsMinWidth(buttonBarWidth);

    return composite;
  }
View Full Code Here

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

        webappDirField.doFillIntoGrid(topComp, 3);

        PixelConverter converter = new PixelConverter(topComp);
        LayoutUtil.setWidthHint(
            outputField.getTextControl(null),
            converter.convertWidthInCharsToPixels(NB_VISIBLE_CHARS));
        LayoutUtil.setHorizontalGrabbing(outputField.getTextControl(null));

        Control libraryPageControl = libraryPage.getControl(topComp);
        GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
        gd.horizontalSpan = 3;
View Full Code Here

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

        if (modelTextLimit != 0) {
            textBox.setTextLimit(modelTextLimit);
        }

        if (fieldTextLimit != 0) {
            data.widthHint = pixelConverter
                    .convertWidthInCharsToPixels(fieldTextLimit + 1);
        }

        data.horizontalIndent = indent;
        data.horizontalSpan = 2;
View Full Code Here

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

    if (key == null) {
      key= SSEUIMessages.CodeAssistAdvancedConfigurationBlock_no_shortcut;
    }

    PixelConverter pixelConverter= new PixelConverter(composite);
    int width= pixelConverter.convertWidthInCharsToPixels(40);

    Label label= new Label(composite, SWT.NONE | SWT.WRAP);
    label.setText(NLS.bind(SSEUIMessages.CodeAssistAdvancedConfigurationBlock_page_description, new Object[] { key }));
    GridData gd= new GridData(GridData.FILL, GridData.FILL, true, false, h_span, 1);
    gd.widthHint= width;
View Full Code Here

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

    filler.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, h_span, 1));
    }

  private void createOwnPageLabel(Composite composite, int h_span) {
    PixelConverter pixelConverter= new PixelConverter(composite);
    int width= pixelConverter.convertWidthInCharsToPixels(40);

    Label label= new Label(composite, SWT.NONE | SWT.WRAP);
    label.setText(SSEUIMessages.CodeAssistAdvancedConfigurationBlock_separate_table_description);
    GridData gd= new GridData(GridData.FILL, GridData.FILL, false, false, h_span, 1);
    gd.widthHint= width;
View Full Code Here

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

    TreeColumn columnName= new TreeColumn(fTemplatesTree, SWT.NONE);
    columnName.setText(TemplatesMessages.TemplatesPage_column_name);
    int minWidth= fPreferenceStore.getInt(COLUMN_NAME_WIDTH_PREF_ID);
    if (minWidth == 0) {
      minWidth= pixelConverter.convertWidthInCharsToPixels(30);
    }
    columnLayout.setColumnData(columnName, new ColumnPixelData(minWidth, true));
    columnName.addControlListener(new ControlListener() {
      public void controlMoved(ControlEvent e) {
      }
View Full Code Here

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

    TreeColumn columnDescription= new TreeColumn(fTemplatesTree, SWT.NONE);
    columnDescription.setText(TemplatesMessages.TemplatesPage_column_description);
    minWidth= fPreferenceStore.getInt(COLUMN_DESCRIPTION_WIDTH_PREF_ID);
    if (minWidth == 0) {
      minWidth= pixelConverter.convertWidthInCharsToPixels(45);
    }
    columnLayout.setColumnData(columnDescription, new ColumnPixelData(minWidth, false));
    columnDescription.addControlListener(new ControlListener() {
      public void controlMoved(ControlEvent e) {
      }
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.