Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 14:26 Go to next message
Tobias R is currently offline Tobias RFriend
Messages: 6
Registered: March 2010
Junior Member
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 16:29 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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: Thu Apr 25 19:33:24 GMT 2024

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

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

Back to the top