Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Extending JDT to support visualization of protected code regions
icon3.gif  Extending JDT to support visualization of protected code regions [message #653363] Wed, 09 February 2011 09:26 Go to next message
Eclipse UserFriend
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?

I am thankful for any guidance!

Thanks.
Re: Extending JDT to support visualization of protected code regions [message #653412 is a reply to message #653363] Wed, 09 February 2011 11:29 Go to previous message
Eclipse UserFriend
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.annotationTypes' and
'org.eclipse.ui.editors.markerAnnotationSpecification' extension point.

Dani
>
> I am thankful for any guidance!
>
> Thanks.
Previous Topic:JAD Files in Eclipse
Next Topic:installing Eclipse pulsar android sdk on Windows 7 64
Goto Forum:
  


Current Time: Tue Jul 22 12:45:08 EDT 2025

Powered by FUDForum. Page generated in 0.02630 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top