setDescription("Manage the description predicates here. These URIs are used for retrieving hover text information for the subject.");
}
@Override
protected void createFieldEditors() {
ListEditor listeditor = new ListEditor(TurtlePreferenceConstants.DESCRIPTION_PREFERENCE_KEY,"", getFieldEditorParent()) {
@Override
protected String[] parseString(String stringList) {
String[] list = stringList.split("\n");
Arrays.sort(list);
return list;
}
@Override
protected String getNewInputObject() {
InputDialog input=new InputDialog(getShell(), "URI", "Enter the URI", "http://", null);
input.open();
return input.getValue();
}
@Override
protected String createList(String[] items) {
return Joiner.on("\n").join(items);
}
@Override
protected void createControl(Composite parent) {
super.createControl(parent);
getUpButton().setVisible(false);
getDownButton().setVisible(false);
}
};
addField(listeditor);
addField(new BooleanFieldEditor(TurtlePreferenceConstants.USE_DEFAULT_LANGUAGE_PREFERENCE_KEY, "Use description with default locale "+Platform.getNL(), getFieldEditorParent()));
addField(new BooleanFieldEditor(TurtlePreferenceConstants.USE_NOLANGUAGE_PREFERENCE_KEY, "Use description with no locale", getFieldEditorParent()));
listeditor = new ListEditor(TurtlePreferenceConstants.LANGUAGES_PREFERENCE_KEY,"Use the following locales", getFieldEditorParent()) {
@Override
protected String[] parseString(String stringList) {
return stringList.split(",,");
}
@Override