Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Organize imports - add comments
Organize imports - add comments [message #256819] Thu, 09 October 2008 15:31 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:accessor generation snippet
Next Topic:Externalization Wizard: Substitution pattern
Goto Forum:
  


Current Time: Sat Sep 06 20:00:35 EDT 2025

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

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

Back to the top