|How does eclipse add blocks for control statement [message #1413344]
||Thu, 28 August 2014 10:06
| Megha Patel
Registered: August 2014
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?
Powered by FUDForum
. Page generated in 0.01746 seconds