| 
| working with text positions [message #336830] | Mon, 06 July 2009 07:32  |  | 
| Eclipse User  |  |  |  |  | Hi, 
 for the next big features in my plugin (e.g. hover support, semantic
 syntax highlighting), I need to add properties (e.g. "this is identifier
 foo which maps to this AST node") to my editors content.
 
 Is there any API for that already in eclipse? Any articles you could
 point me to? Or do I have to do that all by myself?
 
 thanks,
 
 christoph
 |  |  |  | 
|  | 
|  | 
|  | 
|  | 
|  | 
|  | 
| 
| Re: working with text positions [message #336933 is a reply to message #336930] | Tue, 14 July 2009 11:39  |  | 
| Eclipse User  |  |  |  |  | Christoph Höger wrote: > Huh, now I am confused.
 > Does jdt use a own PresentationReconciler for semantic highlighting
 > (the stuff that cannot be done using the simple rules, e.g. identifiers)?
 The PresentationReconciler is for syntax highlighting which is done on
 typing and hence needs to be fast. Semantic coloring is done after the
 model has been computed.
 > If so, how do you make sure it's invoked only after model reconciling?
 With a listener
 (org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrate gy.reconciled())
 
 Dani
 >
 > thanks,
 >
 > christoph
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.05648 seconds