Skip to main content



      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 06:06
Eclipse UserFriend
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: Fri Jul 04 12:08:46 EDT 2025

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

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

Back to the top