IPreferenceStore store= EditorsUI.getPreferenceStore(); store.setValue(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_LINE_NUMBER_RULER,true);