a "current project" question [message #51806] |
Wed, 28 May 2003 13:33 |
Eclipse User |
|
|
|
Originally posted by: d44004.centrum.cz
hello,
please, would you give me a hint on this one:
I want to implement a view which lists all implementors of a given
interface in "the current" project. to make it simple, I planed to have a
special action (button) for scanning throught the content of the project.
I know how to use the SearchEngine. What I don't know is how I find out
the "current" JavaProject? Does this question make sense?
Please, if you got something for me, tell me
mh
|
|
|
Re: a "current project" question [message #52000 is a reply to message #51806] |
Wed, 28 May 2003 14:39 |
Eclipse User |
|
|
|
Originally posted by: richkulp.NOSPAM.us.ibm.com
There is no "current" java project. That's why you are having trouble
finding it. You can have multiple editors from different projects open.
So you can't tell which project from that.
The best way for this to work for you is that you should create an
IObjectDelegateAction and supply this through your plugin.xml. It should
be set to be visible on:
a) IProject's that have the Java Nature assigned to them
b) Set that adaptable turned on.
Then when you bring up the popup menu on a project or java project using
mouse button 2, you will be given the selected objects. They will all of
met your criteria (a and b above) and so you know the selected projects.
In the help look up Platform Plugin Developers
Guide->Reference->ExtensionPoint
Reference->Workbench->org.eclipse.ui.popupMenus to understand how
IObjectDelegateAction works.
Rich
|
|
|
Powered by
FUDForum. Page generated in 0.02774 seconds