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

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

Introduction

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

Prototype

public Label getLabelControl(Composite parent) 

Source Link

Document

Returns this field editor's label component.

Usage

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

License:Open Source License

/**
 * Creates the property editing UI components of this page.
 *//*from   w  w  w  .j  a  v a 2  s . c  om*/
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"));
}