Example usage for org.eclipse.jface.preference FieldEditor setLabelText

List of usage examples for org.eclipse.jface.preference FieldEditor setLabelText

Introduction

In this page you can find the example usage for org.eclipse.jface.preference FieldEditor setLabelText.

Prototype

public void setLabelText(String text) 

Source Link

Document

Sets this field editor's label text.

Usage

From source file:org.embl.cca.utils.ui.view.filenavigator.preference.FileNavigatorPreferencePage.java

License:Apache License

/**
 * Adds the given field editor to this page.
 *
 * @param editor the field editor/* ww  w.j  a va2 s .  c  o  m*/
 */
protected void addField(final FieldEditor editor) {
    if (editor.getPreferenceName().equals(FileNavigatorPreferenceConstants.SHOW_INDEXRANGE_COLUMN))
        editor.setLabelText("Show index range column");
    super.addField(editor);
}