Example usage for org.eclipse.jface.dialogs IDialogConstants HORIZONTAL_SPACING

List of usage examples for org.eclipse.jface.dialogs IDialogConstants HORIZONTAL_SPACING

Introduction

In this page you can find the example usage for org.eclipse.jface.dialogs IDialogConstants HORIZONTAL_SPACING.

Prototype

int HORIZONTAL_SPACING

To view the source code for org.eclipse.jface.dialogs IDialogConstants HORIZONTAL_SPACING.

Click Source Link

Document

Horizontal spacing in dialog units (value 4).

Usage

From source file:au.com.cybersearch2.controls.DialogPixels.java

License:Open Source License

public DialogPixels(FontMetrics fontMetrics) {
    marginWidth = Dialog.convertHorizontalDLUsToPixels(fontMetrics, IDialogConstants.HORIZONTAL_MARGIN);
    marginHeight = Dialog.convertVerticalDLUsToPixels(fontMetrics, IDialogConstants.VERTICAL_MARGIN);
    horizontalSpacing = Dialog.convertHorizontalDLUsToPixels(fontMetrics, IDialogConstants.HORIZONTAL_SPACING);
    verticalSpacing = Dialog.convertVerticalDLUsToPixels(fontMetrics, IDialogConstants.VERTICAL_SPACING);
    buttonWidth = Dialog.convertHorizontalDLUsToPixels(fontMetrics, IDialogConstants.BUTTON_WIDTH);
}

From source file:au.gov.ansto.bragg.quokka.ui.workflow.AddConfigDialog.java

License:Open Source License

protected Control createButtonBar(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.numColumns = 1; // this is incremented by createButton
    layout.makeColumnsEqualWidth = false;
    layout.marginWidth = 0; //convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN);
    layout.marginHeight = 0; //convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
    layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
    layout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING);
    composite.setLayout(layout);/*from www  .  ja  v  a 2 s . c  o m*/

    GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER);
    composite.setLayoutData(data);
    composite.setFont(parent.getFont());

    // Add the buttons to the button bar.
    createButtonsForButtonBar(composite);
    return composite;
}

From source file:au.gov.ga.earthsci.discovery.ui.preferences.DiscoveryServicesPreferencePage.java

License:Apache License

@Override
protected Control createContents(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true);
    composite.setLayoutData(gd);//  w w w. j a va  2s . com

    GridLayout layout = new GridLayout();
    layout.numColumns = 2;
    layout.marginWidth = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN);
    layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
    layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
    layout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING);
    composite.setLayout(layout);

    table = new Table(composite,
            SWT.CHECK | SWT.MULTI | SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
    GridData data = new GridData(SWT.FILL, SWT.FILL, true, true);
    data.widthHint = convertWidthInCharsToPixels(ILayoutConstants.DEFAULT_TABLE_WIDTH);
    data.heightHint = convertHeightInCharsToPixels(ILayoutConstants.DEFAULT_TABLE_HEIGHT);
    table.setLayoutData(data);

    viewer = new CheckboxTableViewer(table);

    // Key listener for delete
    table.addKeyListener(new KeyAdapter() {
        @Override
        public void keyPressed(KeyEvent e) {
            if (e.keyCode == SWT.DEL) {
                removeSelected();
            }
        }
    });
    setTableColumns();

    viewer.setComparator(comparator);
    viewer.setContentProvider(new ArrayContentProvider());
    viewer.setLabelProvider(new DiscoveryServiceLabelProvider());

    stagingSet.clear();
    stagingSet.addAll(DiscoveryServiceManager.getServices());
    viewer.setInput(stagingSet);

    viewer.setCellModifier(new ICellModifier() {
        @Override
        public boolean canModify(Object element, String property) {
            return element instanceof IDiscoveryService;
        }

        @Override
        public Object getValue(Object element, String property) {
            String name = ((IDiscoveryService) element).getName();
            return name != null ? name : ""; //$NON-NLS-1$
        }

        @Override
        public void modify(Object element, String prop, Object value) {
            if (value != null && value.toString().length() >= 0) {
                IDiscoveryService service;
                if (element instanceof Item) {
                    service = (IDiscoveryService) ((Item) element).getData();
                } else if (element instanceof IDiscoveryService) {
                    service = (IDiscoveryService) element;
                } else {
                    return;
                }
                if (!value.toString().equals(service.getName())) {
                    Map<IDiscoveryServiceProperty<?>, Object> propertyValues = new HashMap<IDiscoveryServiceProperty<?>, Object>();
                    IDiscoveryServiceProperty<?>[] properties = service.getProvider().getProperties();
                    if (properties != null) {
                        for (IDiscoveryServiceProperty<?> property : properties) {
                            propertyValues.put(property, property.getValue(service));
                        }
                    }

                    IDiscoveryService replacement = service.getProvider().createService(value.toString(),
                            service.getServiceURL(), propertyValues);
                    replacement.setEnabled(service.isEnabled());
                    stagingSet.remove(service);
                    stagingSet.add(replacement);
                    viewer.refresh();
                }
            }
        }
    });
    viewer.setColumnProperties(new String[] { "name" }); //$NON-NLS-1$
    viewer.setCellEditors(new CellEditor[] { new TextCellEditor(table) });

    viewer.setCheckStateProvider(new ICheckStateProvider() {
        @Override
        public boolean isChecked(Object element) {
            return ((IDiscoveryService) element).isEnabled();
        }

        @Override
        public boolean isGrayed(Object element) {
            return false;
        }
    });

    viewer.addCheckStateListener(new ICheckStateListener() {
        @Override
        public void checkStateChanged(CheckStateChangedEvent event) {
            IDiscoveryService service = (IDiscoveryService) event.getElement();
            if (!originalEnablement.containsKey(service)) {
                originalEnablement.put(service, service.isEnabled());
            }
            service.setEnabled(event.getChecked());
            viewer.refresh();
            validateButtons();
        }
    });

    viewer.addSelectionChangedListener(new ISelectionChangedListener() {
        @Override
        public void selectionChanged(SelectionChangedEvent event) {
            validateButtons();
        }
    });

    Composite verticalButtonBar = createVerticalButtonBar(composite);
    data = new GridData(SWT.FILL, SWT.FILL, false, false);
    data.verticalAlignment = SWT.TOP;
    data.verticalIndent = 0;
    verticalButtonBar.setLayoutData(data);
    validateButtons();

    return composite;
}

From source file:au.gov.ga.earthsci.discovery.ui.preferences.DiscoveryServicesPreferencePage.java

License:Apache License

private Composite createVerticalButtonBar(Composite parent) {
    // Create composite.
    Composite composite = new Composite(parent, SWT.NONE);
    initializeDialogUnits(composite);/*from   w w  w. j a v  a2s.  c o  m*/

    // create a layout with spacing and margins appropriate for the font
    // size.
    GridLayout layout = new GridLayout();
    layout.numColumns = 1;
    layout.marginWidth = 5;
    layout.marginHeight = 0;
    layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
    layout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING);
    composite.setLayout(layout);

    createVerticalButtons(composite);
    return composite;
}

From source file:au.gov.ga.earthsci.eclipse.extras.ide.ChooseWorkspaceDialog.java

License:Open Source License

/**
 * The main area of the dialog is just a row with the current selection
 * information and a drop-down of the most recently used workspaces.
 *//*from w  ww .  j  av a2  s  .c o m*/
private void createWorkspaceBrowseRow(Composite parent) {
    Composite panel = new Composite(parent, SWT.NONE);

    GridLayout layout = new GridLayout(3, false);
    layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
    layout.marginWidth = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN);
    layout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING);
    layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
    panel.setLayout(layout);
    panel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    panel.setFont(parent.getFont());

    Label label = new Label(panel, SWT.NONE);
    label.setText(IDEWorkbenchMessages.ChooseWorkspaceDialog_workspaceEntryLabel);

    text = new Combo(panel, SWT.BORDER | SWT.LEAD | SWT.DROP_DOWN);
    text.setFocus();
    text.setLayoutData(new GridData(400, SWT.DEFAULT));
    text.addModifyListener(new ModifyListener() {
        public void modifyText(ModifyEvent e) {
            Button okButton = getButton(Window.OK);
            if (okButton != null && !okButton.isDisposed()) {
                boolean nonWhitespaceFound = false;
                String characters = getWorkspaceLocation();
                for (int i = 0; !nonWhitespaceFound && i < characters.length(); i++) {
                    if (!Character.isWhitespace(characters.charAt(i))) {
                        nonWhitespaceFound = true;
                    }
                }
                okButton.setEnabled(nonWhitespaceFound);
            }
        }
    });
    setInitialTextValues(text);

    Button browseButton = new Button(panel, SWT.PUSH);
    browseButton.setText(IDEWorkbenchMessages.ChooseWorkspaceDialog_browseLabel);
    setButtonLayoutData(browseButton);
    GridData data = (GridData) browseButton.getLayoutData();
    data.horizontalAlignment = GridData.HORIZONTAL_ALIGN_END;
    browseButton.setLayoutData(data);
    browseButton.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(SelectionEvent e) {
            DirectoryDialog dialog = new DirectoryDialog(getShell(), SWT.SHEET);
            dialog.setText(IDEWorkbenchMessages.ChooseWorkspaceDialog_directoryBrowserTitle);
            dialog.setMessage(IDEWorkbenchMessages.ChooseWorkspaceDialog_directoryBrowserMessage);
            dialog.setFilterPath(getInitialBrowsePath());
            String dir = dialog.open();
            if (dir != null) {
                text.setText(TextProcessor.process(dir));
            }
        }
    });
}

From source file:aurora.ide.helpers.StatusDialog.java

License:Open Source License

/**
 * This implementation of the <code>Dialog</code> framework method creates
 * and lays out a composite. Subclasses that require a different dialog area
 * may either override this method, or call the <code>super</code>
 * implementation and add controls to the created composite.
 * //from ww w  .j ava  2 s.co m
 * Note: Since 3.4, the created composite no longer grabs excess vertical
 * space. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=72489. If the
 * old behavior is desired by subclasses, get the returned composite's
 * layout data and set grabExcessVerticalSpace to true.
 */
protected Control createDialogArea(Composite parent) {
    // Create a composite with standard margins and spacing
    // Add the messageArea to this composite so that as subclasses add
    // widgets to the messageArea
    // and dialogArea, the number of children of parent remains fixed and
    // with consistent layout.
    // Fixes bug #240135
    Composite composite = new Composite(parent, SWT.NONE);
    createMessageArea(composite);
    createSupportArea(parent);
    GridLayout layout = new GridLayout();
    layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
    layout.marginWidth = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN);
    layout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING);
    layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
    layout.numColumns = 2;
    composite.setLayout(layout);
    GridData childData = new GridData(GridData.FILL_BOTH);
    childData.horizontalSpan = 2;
    childData.grabExcessVerticalSpace = false;
    composite.setLayoutData(childData);
    composite.setFont(parent.getFont());

    return composite;
}

From source file:carisma.ui.eclipse.editors.AdfEditorCheckSelectionDialog.java

License:Open Source License

/**
 * Add the selection and deselection buttons to the dialog.
 * // ww  w  .  ja  v  a 2  s . com
 * @param composite org.eclipse.swt.widgets.Composite
 */
private void addSelectionButtons(final Composite composite) {
    Composite buttonComposite = new Composite(composite, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.numColumns = 3;
    layout.marginWidth = 0;
    layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
    buttonComposite.setLayout(layout);
    buttonComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));

    this.recommendedChecksButton = new Button(buttonComposite, SWT.CHECK);
    this.recommendedChecksButton.setLayoutData(new GridData(SWT.LEFT));
    this.recommendedChecksButton.setText("Select recommended checks");
    //setRecommendedChecks(recommendedChecks, true);   // remove comment to initially add the checked Checks to the recommendChecks-List
    this.recommendedChecksButton.setSelection(false); // set this on true to initially check the recommendedChecks

    this.recommendedChecksButton.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(final SelectionEvent e) {
            if (AdfEditorCheckSelectionDialog.this.recommendedChecks != null) {
                if (AdfEditorCheckSelectionDialog.this.recommendedChecksButton.getSelection()) {
                    setRecommendedChecks(AdfEditorCheckSelectionDialog.this.recommendedChecks, true);
                } else {
                    setRecommendedChecks(AdfEditorCheckSelectionDialog.this.recommendedChecks, false);
                }
            }
        }
    });

    Button selectButton = createButton(buttonComposite, IDialogConstants.SELECT_ALL_ID, SELECT_ALL, false);

    SelectionListener listener = new SelectionAdapter() {
        @Override
        public void widgetSelected(final SelectionEvent e) {
            AdfEditorCheckSelectionDialog.this.listViewer.setAllChecked(true);
        }
    };
    selectButton.setLayoutData(
            new GridData(GridData.HORIZONTAL_ALIGN_FILL, GridData.VERTICAL_ALIGN_FILL, false, false));
    selectButton.addSelectionListener(listener);

    Button deselectButton = createButton(buttonComposite, IDialogConstants.DESELECT_ALL_ID, DESELECT_ALL,
            false);
    deselectButton.setLayoutData(
            new GridData(GridData.HORIZONTAL_ALIGN_FILL, GridData.VERTICAL_ALIGN_FILL, false, false));

    listener = new SelectionAdapter() {
        @Override
        public void widgetSelected(final SelectionEvent e) {
            AdfEditorCheckSelectionDialog.this.listViewer.setAllChecked(false);
        }
    };
    deselectButton.addSelectionListener(listener);
}

From source file:ch.hilbri.assist.application.parts.AboutDialog.java

License:Open Source License

@Override
protected Control createButtonBar(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    // create a layout with spacing and margins appropriate for the font
    // size.//from   w  w w .  j av a  2 s .c o m
    GridLayout layout = new GridLayout();
    layout.numColumns = 0; // this is incremented by createButton
    layout.makeColumnsEqualWidth = true;
    layout.marginWidth = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN);
    layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
    layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
    layout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING);
    composite.setLayout(layout);
    GridData data = new GridData(GridData.HORIZONTAL_ALIGN_END | GridData.VERTICAL_ALIGN_CENTER);
    composite.setLayoutData(data);
    composite.setFont(parent.getFont());

    createButton(composite, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);

    return composite;
}

From source file:com.amalto.workbench.dialogs.DOMViewDialog.java

License:Open Source License

@Override
protected Control createDialogArea(Composite parent) {

    try {//from  w  w  w .j  a v  a  2  s  .  com
        // Should not really be here but well,....
        if (editable) {
            parent.getShell().setText(Messages.DOMViewDialog_EditorViewer);
        } else {
            parent.getShell().setText(Messages.DOMViewDialog_Viewer);
        }

        Composite composite = new Composite(parent, SWT.NULL);
        GridLayout layout = new GridLayout();
        layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
        layout.marginWidth = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN);
        layout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING);
        layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
        composite.setLayout(layout);
        composite.setLayoutData(new GridData(GridData.FILL_BOTH));
        applyDialogFont(composite);

        if (desc != null && desc.length() > 0) {
            new Label(composite, SWT.NONE).setText(desc);
        }

        tabFolder = new TabFolder(composite, SWT.TOP | SWT.H_SCROLL | SWT.V_SCROLL);
        tabFolder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
        ((GridData) tabFolder.getLayoutData()).heightHint = 600;
        ((GridData) tabFolder.getLayoutData()).widthHint = 600;

        tabFolder.addSelectionListener(new SelectionListener() {

            public void widgetDefaultSelected(SelectionEvent e) {
            }

            public void widgetSelected(SelectionEvent e) {
                if (tabFolder.getSelectionIndex() == 0) {
                    if (node == null) {
                        try {

                            if (sourceViewer == null || sourceViewer.getDocument() == null) {
                                return;
                            }
                            node = Util.parse(sourceViewer.getText());

                        } catch (Exception ex) {

                            log.error(ex.getMessage(), ex);
                            tabFolder.setSelection(1);
                            MessageDialog.openError(DOMViewDialog.this.getShell(),
                                    Messages.DOMViewDialog_XMLInvalid, Messages.bind(
                                            Messages.DOMViewDialog_XMLInvalidInfo, ex.getLocalizedMessage()));
                            return;
                        }
                        domViewer.setInput(node);
                        domViewer.expandAll();
                    }
                } else if (tabFolder.getSelectionIndex() == 1) {
                    try {
                        sourceViewer.setText(Util.nodeToString(node));
                        node = null; // this should be better implemented in a change listener on the text
                    } catch (Exception ex) {
                        MessageDialog.openError(DOMViewDialog.this.getShell(),
                                Messages.DOMViewDialog_ErrorTitle,
                                Messages.bind(Messages.DOMViewDialog_ErrorMsg, ex.getLocalizedMessage()));
                        sourceViewer.setText(""); //$NON-NLS-1$
                    }
                }
            }// widget Selected
        });

        TabItem tiDOM = new TabItem(tabFolder, SWT.NULL);
        tiDOM.setText(Messages.DOMViewDialog_Tree);
        tiDOM.setToolTipText(Messages.DOMViewDialog_DisplayAsDomTree);

        domViewer = new TreeViewer(tabFolder, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
        domViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
        // ((GridData)domViewer.getControl().getLayoutData()).heightHint=300;
        // ((GridData)domViewer.getControl().getLayoutData()).widthHint=300;
        domViewer.setSorter(null);
        domViewer.setLabelProvider(new DOMTreeLabelProvider());
        domViewer.setContentProvider(new DOMTreeContentProvider());
        domViewer.setInput(node);
        domViewer.expandAll();
        domViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

        tiDOM.setControl(domViewer.getControl());

        TabItem tiSource = new TabItem(tabFolder, SWT.NULL);
        tiSource.setText(Messages.DOMViewDialog_TiSourceText);
        tiSource.setToolTipText(Messages.DOMViewDialog_TiSourceTip);

        XMLSourceViewerHelper sourceViewerHelper = XMLSourceViewerHelper.getInstance();
        sourceViewer = new XMLSourceViewer(tabFolder, sourceViewerHelper.createVerticalRuler(),
                sourceViewerHelper.createOverviewRuler(), true, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
        XMLConfiguration sourceViewerConfiguration = new XMLConfiguration(this);
        sourceViewer.configure(sourceViewerConfiguration);
        sourceViewer.initilize();
        sourceViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
        sourceViewer.setText(Util.nodeToString(node));
        sourceViewer.setEditable(this.editable);
        /*
         * sourceViewer.addTextListener( new ITextListener() { public void
         * textChanged(org.eclipse.jface.text.TextEvent event) { if ((event.getText()==null) ||
         * ("".equals(event.getText()))) return; node = null; elementChanged = true; } } );
         */
        tiSource.setControl(sourceViewer.getControl());

        tabFolder.setSelection(firstTab);
        if (firstTab == SOURCE_VIEWER) {
            node = null; // force refresh of tree
        }

        return composite;
    } catch (Exception e) {
        log.error(e.getMessage(), e);
        MessageDialog.openError(this.getShell(), Messages._Error,
                Messages.bind(Messages.DOMViewDialog_ErrorMsg1, e.getLocalizedMessage()));
        return null;
    }

}

From source file:com.amalto.workbench.dialogs.PluginDetailsDialog.java

License:Open Source License

protected Control createDialogArea(Composite parent) {

    try {/*from ww w .j  a  va 2  s  . c  o  m*/
        // Should not really be here but well,....
        parent.getShell().setText(Messages.PluginDetailsDialog_PluginDetails);

        Composite composite = new Composite(parent, SWT.NULL);
        GridLayout layout = new GridLayout();
        layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
        layout.marginWidth = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN);
        layout.verticalSpacing = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING);
        layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
        composite.setLayout(layout);
        composite.setLayoutData(new GridData(GridData.FILL_BOTH));
        applyDialogFont(composite);

        tabFolder = new TabFolder(composite, SWT.TOP);
        tabFolder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
        tabFolder.setLayout(new GridLayout(1, true));
        ((GridData) tabFolder.getLayoutData()).heightHint = 600;
        ((GridData) tabFolder.getLayoutData()).widthHint = 600;

        TabItem descriptionTI = new TabItem(tabFolder, SWT.NULL);
        descriptionTI.setText(Messages.PluginDetailsDialog_Description);
        descriptionTI.setToolTipText(Messages.PluginDetailsDialog_DescriptionTip);

        Composite descriptionC = new Composite(tabFolder, SWT.NULL);
        descriptionC.setLayout(new GridLayout(1, true));
        descriptionC.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

        /*
         * Label descriptionLabel = new Label(descriptionC, SWT.LEFT); descriptionLabel.setLayoutData( new
         * GridData(SWT.LEFT,SWT.CENTER,false,false,1,1) ); FontData fd =
         * descriptionLabel.getFont().getFontData()[0]; fd.setStyle(SWT.BOLD); descriptionLabel.setFont(new
         * Font(Display.getDefault(),fd)); descriptionLabel.setText("Description");
         */

        Label descValue = new Label(descriptionC, SWT.WRAP);
        descValue.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
        descValue.setText(description + "\n");//$NON-NLS-1$

        Label documentationLabel = new Label(descriptionC, SWT.LEFT);
        documentationLabel.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1));
        documentationLabel.setFont(FontUtils.getBoldFont(documentationLabel.getFont()));
        documentationLabel.setText(templetName);

        Text docValue = new Text(descriptionC, SWT.WRAP | SWT.READ_ONLY | SWT.V_SCROLL);
        docValue.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
        docValue.setBackground(documentationLabel.getBackground());
        docValue.setText(documentation);

        descriptionTI.setControl(descriptionC);

        /*
         * TabItem parametersTI = new TabItem(tabFolder,SWT.NULL); parametersTI.setText("Parameters");
         * parametersTI.setToolTipText("Display the plugin description and documentation");
         * 
         * Composite parametersC = new Composite(tabFolder,SWT.NULL); parametersC.setLayout(new GridLayout(1,true));
         * 
         * Label paramsValue = new Label(parametersC, SWT.WRAP); paramsValue.setLayoutData( new
         * GridData(SWT.FILL,SWT.CENTER,true,false,1,1) ); paramsValue.setText(parametersSchema);
         * 
         * parametersTI.setControl(parametersC);
         */

        tabFolder.setSelection(0);

        return composite;
    } catch (Exception e) {
        log.error(e.getMessage(), e);
        MessageDialog.openError(this.getShell(), Messages._Error,
                Messages.bind(Messages.PluginDetailsDialog_ErrorMsg, e.getLocalizedMessage()));
        return null;
    }

}