Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » a "current project" question
a "current project" question [message #51806] Wed, 28 May 2003 13:33 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:FormSection question
Next Topic:JSP error - org.apache.jasper.JasperException: Unable to compile class for JSPJD
Goto Forum:
  


Current Time: Sat Dec 21 14:32:28 GMT 2024

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

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

Back to the top