dynamically installing a presentation reconciler [message #107489] |
Wed, 06 August 2003 13:30 |
Eclipse User |
|
|
|
Originally posted by: lyjr.ifrance.com
Hi,
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
preference page.
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.uninstall();
presentationReconciler = new MyPresentationReconciler();
presentationReconciler.install(sourceViewer);
.... but it doesn't work.
I've tried many other things, but without success.
Anyone can help me, please ?
|
|
|
|
Powered by
FUDForum. Page generated in 0.03072 seconds