Example usage for org.eclipse.jface.preference PathEditor getButtonBoxControl

List of usage examples for org.eclipse.jface.preference PathEditor getButtonBoxControl

Introduction

In this page you can find the example usage for org.eclipse.jface.preference PathEditor getButtonBoxControl.

Prototype

public Composite getButtonBoxControl(Composite parent) 

Source Link

Document

Returns this field editor's button box containing the Add, Remove, Up, and Down button.

Usage

From source file:net.sourceforge.texlipse.properties.BibDirectoriesPreferencePage.java

License:Open Source License

/**
 * Creates the property editing UI components of this page.
 *//*from  www .j a va2 s  .co  m*/
protected void createFieldEditors() {
    Composite parent = getFieldEditorParent();
    PathEditor dir = new PathEditor(TexlipseProperties.BIB_DIR,
            TexlipsePlugin.getResourceString("preferenceBibDirLabel"), "", parent);
    addField(dir);
    dir.getButtonBoxControl(parent).setToolTipText(TexlipsePlugin.getResourceString("preferenceBibDirTooltip"));
    dir.getLabelControl(parent).setToolTipText(TexlipsePlugin.getResourceString("preferenceBibDirTooltip"));
    dir.getListControl(parent).setToolTipText(TexlipsePlugin.getResourceString("preferenceBibDirTooltip"));
}