|dynamically installing a presentation reconciler [message #107489]
||Wed, 06 August 2003 09:30
Originally posted by: lyjr.ifrance.com|
I have a PresentationReconciler which defines the rules of syntax
highlighting for my editor.
I have associated this PresentationReconciler to the SourceViewer of
my editor using presentationReconciler.install(getSourceViewer())
from my editor class.
The user can choose the colors of syntax highlighting from a
My problem is that when the user change a color, the editor does not
apply the change : the editor must be closed and then re-opened.
I've tried to add this code in the handlePreferenceStoreChanged
method of my text editor (which is a TextEditor) :
presentationReconciler = new MyPresentationReconciler();
.... but it doesn't work.
I've tried many other things, but without success.
Anyone can help me, please ?
|Re: dynamically installing a presentation reconciler [message #697964 is a reply to message #107489]
||Mon, 18 July 2011 09:29
Registered: July 2011
I, i have solved this issue in this way.|
I have reinitialized the SourceViewerConfiguration and reinstalled it in the viewer.
MySourceViewerConfiguration newConf = MySourceViewerConfiguration();
IPresentationReconciler reconciler = newConf.getPresentationReconciler(myViewer);
I hope this will help you too.
Powered by FUDForum
. Page generated in 0.09278 seconds