How to colour a method in an selfmade JavaTextEditor [message #667638] |
Sat, 30 April 2011 08:38 |
|
Dear all,
as I have mentioned in my forum post http:// www.eclipse.org/forums/index.php?t=msg&goto=666030&S =830053b834afe7c5e62cf343476340b6#msg_666030 I´m creating an Java TextEditor.
Because I haven't received any answers about how to lock lines, I decided to colour the lines if a method is marked with @Generated within the JavaDoc.
Up to now I'm able to colour the line with the keyword but my wish is, to colour the whole method under the keyword.
At the moment I work with a scanner, that divided the document in different parts.
The main class (SimpleEditor) extends TextEditor (org.eclipse.ui.editors.text.TextEditor) and my Scanner (GenPartitionScanner) extends RuleBasedPartitionScanner (org.eclipse.core.runtime.CoreException).
So my two questions are:
- is it possible to create a TextEditor, that can be combined with JDTs functionality, i.e., the AST?
- is it possible to colour a method in a simple manner (identify the start an end of a method)?
I'm glad about every input of you.
with kind regards
Fabian
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03468 seconds