How to grey out dependent preferences in Eclipse RCP?
Can preferences be somehow defined as dependent from another preferency, so that they are greyed-out, if the preference which it depends from - is disabled?
Asked
Active
Viewed 258 times
0

Skip
- 6,240
- 11
- 67
- 117
1 Answers
1
As preferences are just an SWT controls you can call
setEnabled(false)
method on them to disable (grey-out) them. In case of FieldEditorPreferencePage you should probably call
***FieldEditor.setEnabled(false, getFieldEditorParent());

execc
- 1,083
- 12
- 25