Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How does eclipse add blocks for control statement(Which eclipse plugin does this? Is there any JDT API which I can use in my plugin implementation?)
How does eclipse add blocks for control statement [message #1413344] Thu, 28 August 2014 10:06
Megha Patel is currently offline Megha PatelFriend
Messages: 2
Registered: August 2014
Junior Member
I'm creating an eclipse plugin for formatting / injecting some code.
One of my reqs is to add blocks for IF-ELSE statements just like eclipse facilitates.


Eclipse > windows > preferences > java > editor > save actions > Additional actions > configure > code style > use blocks in if/while/for/do statements


I tried implementing this using jdt, visiting ast nodes, & rewriting modified code. but I'm facing issues in adding block for inner if-elses.


I tried looking into eclipse plugins jar files, but couldn't get which plugin facilitates this.

Can someone help me getting how eclipse is doing this? or any JDT api available for inserting block for IfStatement?

Previous Topic:Question about compare editor
Next Topic:Configure Eclipse to compile with javac instead of ECJ?
Goto Forum:
  


Current Time: Thu Apr 25 16:51:41 GMT 2024

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

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

Back to the top