Reputation: 1299
There is a property "show line number" in (windows->preferences->editor->text editor) eclipse which i want to tick by java code. so how i fetch the key of that property and set the value in preference page.
Note: I need to set the "show line number" option by default true.
Upvotes: 1
Views: 306
Reputation: 1299
this will be correct solution for requirement:
String lineNumbers = AbstractDecoratedTextEditorPreferenceConstants.EDITOR_LINE_NUMBER_RULER; EditorsUI.getPreferenceStore().setValue(lineNumbers, true);
Upvotes: 0