|Re: Extending JDT to support visualization of protected code regions [message #653412 is a reply to message #653363]
||Wed, 09 February 2011 11:29
| Dani Megert
Registered: July 2009
On 09.02.2011 15:26, Tobias R wrote:|
> Hey all,
> I need some guidance to extend the Java Editor of JDT. The goal is an
> editor that visualizes manual and generated code. Ideally, generated
> code should not be editable.
> So far, I have looked at some extension points of JDT.
> http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. jdt.doc.isv/reference/extension-points/index.html
> But to be honest I am confused which extension point is the right one.
> For example, the extension point org.eclipse.jdt.core.codeFormatter is
> deprecated for some reason.
> Could I use another extension point or do I have to grab the JDT.UI
> sources and adapt them accordingly?
There is no extension point or API that would allow to lock regions of
code. What you can do is add (text) annotations for those regions and
then choose how they are visualized in the editor. See
'org.eclipse.ui.editors.markerAnnotationSpecification' extension point.
> I am thankful for any guidance!
Powered by FUDForum
. Page generated in 0.01838 seconds