- addField(new BooleanFieldEditor(
- IPreferenceKeys.OVERRIDE_NOMENCLATURAL_CODE_KEY,
- "Use local nomenclatural code",
- getFieldEditorParent()));
+
+ addField(new BooleanFieldEditor(
+ IPreferenceKeys.OVERRIDE_NOMENCLATURAL_CODE_KEY,
+ "Use local nomenclatural code",
+ getFieldEditorParent()));
+ } else {
+ setDescription("The CDM settings don't allow to set the nomenclatural code locally. If you need to make local settings, please ask an administrator.");
+ }