Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Plugin Extension Point
Plugin Extension Point [message #302647] Wed, 26 April 2006 08:08 Go to next message
Eclipse UserFriend
Hi,
I have two plugin projects. Both are standalone working. My first plugin
has one functioality (a search) which I want to use in my II plugin. Now,
I dont want to re-invent the wheel and therefore want some mechanism by
which I can make my II plugin interact with I plugin.
Is there a way I can send data from II plugin to I plugin and invoke some
of its method and a View class?

Any response is appreciated

tia
~Mohit
Re: Plugin Extension Point [message #302648 is a reply to message #302647] Wed, 26 April 2006 09:37 Go to previous messageGo to next message
Eclipse UserFriend
From the sounds of it, you could just import Plugin I into Plugin II.
open Plugin II's plugin.xml file, click on its "dependencies" tab and
add Plugin I to the list there.

You should then have access to Plugin I's public classes, just as you
have access to Plugin II's classes.

Regards,
Kevin.

Mohit wrote:
> Hi,
> I have two plugin projects. Both are standalone working. My first plugin
> has one functioality (a search) which I want to use in my II plugin.
> Now, I dont want to re-invent the wheel and therefore want some
> mechanism by which I can make my II plugin interact with I plugin.
> Is there a way I can send data from II plugin to I plugin and invoke
> some of its method and a View class?
>
> Any response is appreciated
>
> tia
> ~Mohit
>
Re: Plugin Extension Point [message #302651 is a reply to message #302647] Wed, 26 April 2006 09:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

If plugin I exports as API a method on a class within a package, then
plugin II can just call it, assuming plugin II made plugin I a pre-req.

Mohit wrote:
> Hi,
> I have two plugin projects. Both are standalone working. My first plugin
> has one functioality (a search) which I want to use in my II plugin.
> Now, I dont want to re-invent the wheel and therefore want some
> mechanism by which I can make my II plugin interact with I plugin.
> Is there a way I can send data from II plugin to I plugin and invoke
> some of its method and a View class?
>
> Any response is appreciated
>
> tia
> ~Mohit
>

--
Thanks,
Rich Kulp
Re: Plugin Extension Point [message #302676 is a reply to message #302651] Thu, 27 April 2006 07:17 Go to previous messageGo to next message
Eclipse UserFriend
Thats precisely what I was planning, and I guess the way to do this is
through extension point. However, the problem is I dont know anything
about Exntension points neither could I find any lucid article/ example on
net.

~Mohit
Rich Kulp wrote:

> If plugin I exports as API a method on a class within a package, then
> plugin II can just call it, assuming plugin II made plugin I a pre-req.

> Mohit wrote:
>> Hi,
>> I have two plugin projects. Both are standalone working. My first plugin
>> has one functioality (a search) which I want to use in my II plugin.
>> Now, I dont want to re-invent the wheel and therefore want some
>> mechanism by which I can make my II plugin interact with I plugin.
>> Is there a way I can send data from II plugin to I plugin and invoke
>> some of its method and a View class?
>>
>> Any response is appreciated
>>
>> tia
>> ~Mohit
>>
Re: Plugin Extension Point [message #302679 is a reply to message #302647] Thu, 27 April 2006 08:00 Go to previous messageGo to next message
Eclipse UserFriend
You can always use the selection service to communicate between plugins:
http://www.eclipse.org/articles/Article-WorkbenchSelections/ article.html

Other than that, you can use IWorkbenchPage#findView(*) from one view to
find the other view and then cast the found view to call methods on it.

Later,
PW
Re: Plugin Extension Point [message #303018 is a reply to message #302676] Fri, 05 May 2006 11:39 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

See
http://www.eclipse.org/articles/Article-Plug-in-architecture /plugin_architecture.html

--
Thanks,
Rich Kulp
Previous Topic:Keep ant association with "build.xml"
Next Topic:WorkspaceRoot project cache
Goto Forum:
  


Current Time: Sun May 11 02:00:28 EDT 2025

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

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

Back to the top