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

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

Introduction

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

Prototype

public void setPreferenceName(String name) 

Source Link

Document

Sets the name of the preference this field editor operates on.

Usage

From source file:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage.java

License:Open Source License

/**
 * TODO: better use unqualified names in preference store. Left this workaround not to break API.
 *///from w w w. ja  v a2  s  .co m
@Override
protected void addField(FieldEditor editor) {
    editor.setPreferenceName(qualifiedName() + "." + editor.getPreferenceName());
    super.addField(editor);
}