[MWE] Code Cleanup after Generation [message #718871] |
Thu, 25 August 2011 14:30 |
Daniel Missing name Messages: 101 Registered: July 2011 |
Senior Member |
|
|
Hi, it's me again.
In Eclipse JDT you can setup several save-actions (save participants) which optimize your java code as configured on each file save (formatting, code cleanup, semantic modifications). That's exactly I'd like to do to my generated Java Code.
To ensure the generated code follows the configured guidelines I want to simply trigger those configured save-actions to each file after generation. I already implemented my own FileSystemAccess which does a simple code formatting before the saving but this simple string-in and string-out does not seem to be possible for save-actions.
Has anyone an idea how to apply the save actions to all generated files? The main problem is: The save actions rely on the jdt.ui plugins and use a lot of UI specific stuff. Of course I want my compiler to work standalone.
Does anyone know how I can simulate those Save-Actions?
Cheers
Daniel
[Updated on: Thu, 25 August 2011 14:31] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03169 seconds