Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » How to remove fully qualified names to imports
How to remove fully qualified names to imports [message #667216] Wed, 27 April 2011 13:42 Go to next message
Frantisek Kocun is currently offline Frantisek KocunFriend
Messages: 16
Registered: July 2009
Junior Member
Hello, I'm searching for one library, but I can't find it.
We use xPand language to generate java code. We want to generate fully qualified names everywhere so no ambiguities can occurs. But we also want to have code readable. Is there any tool which makes imports from fully qualified names when possible?

Something what converts this

class Page {
my.cool.app.User user;
}

to this

import my.cool.app.User;
class Page {
User user;
}

Of course when it is not possible (two classes with the same name, but different full name) it should leave code as it is.

Thanks for help.
Re: How to remove fully qualified names to imports [message #667223 is a reply to message #667216] Wed, 27 April 2011 14:10 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi

Have a look at the hybridlabs beautifier http://code.google.com/p/hybridlabs-beautifier/

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to remove fully qualified names to imports [message #667228 is a reply to message #667223] Wed, 27 April 2011 14:26 Go to previous message
Frantisek Kocun is currently offline Frantisek KocunFriend
Messages: 16
Registered: July 2009
Junior Member
Thanks Chirs, I will give it a try!
Previous Topic:Xtend pulls in JDT - why?
Next Topic:Acceleo : Random output
Goto Forum:
  


Current Time: Thu Apr 25 19:09:52 GMT 2024

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

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

Back to the top