Organize imports - add comments [message #256819] |
Thu, 09 October 2008 15:31  |
Eclipse User |
|
|
|
I really like the 'Organize Imports' feature - I can, for example,
organize my imports to be in the same order as the JDK's Javadoc.
One thing I like to do is label the groupings with comments:
//javase imports
import java.lang.whatever;
//java eXtension imports
import javax.whoziewhatsit;
//my domain-specific imports
import org.something.or.other;
Is it possible to add this as a feature to the 'Organize Imports' wizard?
Alternatively, how hard would it be for me to make my own plugin that
adds this capability to the existing 'Organize Imports' wizard?
Thanks in advance,
Mike Norman | Principal Software Designer
Oracle Server Technologies | EclipseLink Product
45 O'Connor Street, Suite 400 | Ottawa, ON K1P 1A4
|
|
|
Re: Organize imports - add comments [message #256831 is a reply to message #256819] |
Fri, 10 October 2008 03:51  |
Eclipse User |
|
|
|
Mike Norman wrote:
> I really like the 'Organize Imports' feature - I can, for example,
> organize my imports to be in the same order as the JDK's Javadoc.
>
> One thing I like to do is label the groupings with comments:
>
> //javase imports
> import java.lang.whatever;
>
> //java eXtension imports
> import javax.whoziewhatsit;
>
> //my domain-specific imports
> import org.something.or.other;
>
> Is it possible to add this as a feature to the 'Organize Imports' wizard?
Not via UI and not via extension.
>
> Alternatively, how hard would it be for me to make my own plugin that
> adds this capability to the existing 'Organize Imports' wizard?
Very hard because there are no APIs/extension points for this.
Dani
>
> Thanks in advance,
>
> Mike Norman | Principal Software Designer Oracle Server Technologies |
> EclipseLink Product
> 45 O'Connor Street, Suite 400 | Ottawa, ON K1P 1A4
|
|
|
Powered by
FUDForum. Page generated in 0.03697 seconds