Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How do I display and/or select class list in my plugin
How do I display and/or select class list in my plugin [message #674031] Wed, 25 May 2011 15:34 Go to next message
Lubos Pochman is currently offline Lubos PochmanFriend
Messages: 29
Registered: July 2009
Junior Member
In my plugin, I would like the user to select a Java class similar to Open Type dialog but only for given project.

1. How do I detect that current project is a java project (nature?)

2. How do I display and/or select class list of classes for given project and let user select a class?

Thanks, Lubos Pochman
Re: How do I display and/or select class list in my plugin [message #674211 is a reply to message #674031] Thu, 26 May 2011 06:57 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3801
Registered: July 2009
Senior Member
On 25.05.2011 17:34, Lubos Pochman wrote:
> In my plugin, I would like the user to select a Java class similar to
> Open Type dialog but only for given project.
>
> 1. How do I detect that current project is a java project (nature?)
Yes, you can check for org.eclipse.jdt.core.JavaCore.NATURE_ID.
>
> 2. How do I display and/or select class list of classes for given
> project and let user select a class?
See org.eclipse.jdt.ui.JavaUI.createTypeDialog(*).

Dani
>
> Thanks, Lubos Pochman
Previous Topic:Required Plugin does not find it's own bundle!?
Next Topic:newbie Import cannot be resolved
Goto Forum:
  


Current Time: Thu Nov 20 23:19:19 GMT 2014

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

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