Community
Participate
Working Groups
Hi, I'm trying to make an overview ruler work in a different preference store (in pydev). I've added a page for all the optios and they all seem to work fine with the new preference store (show line numbers, show print margin, colors, etc), but when it comes down to the overview ruler, it appears and dissapears, but does not add any generated annotations, such as search results (if I dont use another preference store, it works). Thanks, Fabio Zadrozny
Can you provide the code?
Short version: public class PyEdit extends TextEditor { protected void initializeEditor() { super.initializeEditor(); this.setPreferenceStore(PydevPlugin.getDefault().getPreferenceStore()); } } prefs.setDefault(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_OVERVIEW_RULER, StringConverter.asString(DEFAULT_EDITOR_OVERVIEW_RULER)); (it works for showing / hiding the color scale) the long version would be getting pydev (tag 0.9.4): http://pydev.sf.net and checking PyEdit, PyEditProjection, PySourceViewer and PydevPrefs (I could post it, but I dont think all that is needed) Also, when I comment the line this.setPreferenceStore(PydevPlugin.getDefault().getPreferenceStore()); it works. p.s. the IVerticalRuler always works
Annotation prefs are provided via general preference store. Try to create a combined preference store, something like: IPreferenceStore generalTextStore= EditorsUI.getPreferenceStore(); combinedStore= new ChainedPreferenceStore(new IPreferenceStore[] { yourStore, generalTextStore });
Hi, just wanted to say that it worked... thanks a lot!! Cheers, Fabio
Get rid of deprecated state.
.