Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » Plugin communication
Plugin communication [message #65296] Fri, 20 August 2004 05:51 Go to next message
Eclipse UserFriend
Originally posted by: prasad_karmarkar.yahoo.com

Hello,
I have developed one plugin and i want to call my plugin when any other
plugins get loaded.
for e.g if my plugin name is myplugin and there is helloword plugin so
before launching the helloword plugin my plugin should get a call and
perform neccesary action and again control will go back to helloword
Means my plugin will be observer and all other plugin will send events to
it
how can i achieve that?

Please help me
Thanks
Prasad
Re: Plugin communication [message #65317 is a reply to message #65296] Fri, 20 August 2004 14:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Prasad wrote:

>Hello,
>I have developed one plugin and i want to call my plugin when any other
>plugins get loaded.
>for e.g if my plugin name is myplugin and there is helloword plugin so
>before launching the helloword plugin my plugin should get a call and
>perform neccesary action and again control will go back to helloword
>Means my plugin will be observer and all other plugin will send events to
>it
>how can i achieve that?
>
>
In your plug-in overwrite start(BundleContext) and register a listener,
like this:
public void start(BundleContext context) throws Exception {
super.start(context);
Platform.getExtensionRegistry().addRegistryChangeListener(th is,
PLUGIN_ID);
}

Don't forget to unregister in stop(BundleContext)

HTH
Dani

>Please help me
>Thanks
>Prasad
>
>
>
>
Re: Plugin communication [message #65380 is a reply to message #65317] Mon, 23 August 2004 04:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: prasad_karmarkar.yahoo.com

Daniel Megert wrote:

> Prasad wrote:

> >Hello,
> >I have developed one plugin and i want to call my plugin when any other
> >plugins get loaded.
> >for e.g if my plugin name is myplugin and there is helloword plugin so
> >before launching the helloword plugin my plugin should get a call and
> >perform neccesary action and again control will go back to helloword
> >Means my plugin will be observer and all other plugin will send events to
> >it
> >how can i achieve that?
> >
> >
> In your plug-in overwrite start(BundleContext) and register a listener,
> like this:
> public void start(BundleContext context) throws Exception {
> super.start(context);
> Platform.getExtensionRegistry().addRegistryChangeListener(th is,
> PLUGIN_ID);
> }

> Don't forget to unregister in stop(BundleContext)

> HTH
> Dani

i want to call my plugin methods in the other plugins can i achieve that
from above code
Re: Plugin communication [message #65402 is a reply to message #65380] Tue, 24 August 2004 14:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Prasad wrote:

>Daniel Megert wrote:
>
>
>
>>Prasad wrote:
>>
>>
>
>
>
>>>Hello,
>>>I have developed one plugin and i want to call my plugin when any other
>>>plugins get loaded.
>>>for e.g if my plugin name is myplugin and there is helloword plugin so
>>>before launching the helloword plugin my plugin should get a call and
>>>perform neccesary action and again control will go back to helloword
>>>Means my plugin will be observer and all other plugin will send events to
>>>it
>>>how can i achieve that?
>>>
>>>
>>>
>>>
>>In your plug-in overwrite start(BundleContext) and register a listener,
>>like this:
>> public void start(BundleContext context) throws Exception {
>> super.start(context);
>> Platform.getExtensionRegistry().addRegistryChangeListener(th is,
>>PLUGIN_ID);
>> }
>>
>>
>
>
>
>>Don't forget to unregister in stop(BundleContext)
>>
>>
>
>
>
>>HTH
>>Dani
>>
>>
>
>i want to call my plugin methods in the other plugins can i achieve that
>from above code
>
>
Not sure what exactly you want to do. Your listener will get notified
when a plug-in gets (un)loaded. What else do you need?

Dani

>
>
>
Re: Plugin communication [message #65421 is a reply to message #65402] Wed, 25 August 2004 05:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: prasad_karmarkar.yahoo.com

Daniel Megert wrote:

> Prasad wrote:

> >Daniel Megert wrote:
> >
> >
> >
> >>Prasad wrote:
> >>
> >>
> >
> >
> >
> >>>Hello,
> >>>I have developed one plugin and i want to call my plugin when any other
> >>>plugins get loaded.
> >>>for e.g if my plugin name is myplugin and there is helloword plugin so
> >>>before launching the helloword plugin my plugin should get a call and
> >>>perform neccesary action and again control will go back to helloword
> >>>Means my plugin will be observer and all other plugin will send events to
> >>>it
> >>>how can i achieve that?
> >>>
> >>>
> >>>
> >>>
> >>In your plug-in overwrite start(BundleContext) and register a listener,
> >>like this:
> >> public void start(BundleContext context) throws Exception {
> >> super.start(context);
> >> Platform.getExtensionRegistry().addRegistryChangeListener(th is,
> >>PLUGIN_ID);
> >> }
> >>
> >>
> >
> >
> >
> >>Don't forget to unregister in stop(BundleContext)
> >>
> >>
> >
> >
> >
> >>HTH
> >>Dani
> >>
> >>
> >
> >i want to call my plugin methods in the other plugins can i achieve that
> >from above code
> >
> >
> Not sure what exactly you want to do. Your listener will get notified
> when a plug-in gets (un)loaded. What else do you need?

> Dani

Hi Dani,
when any other (third party) plugin gets loaded i want to call my plugin
methods for some operations how can do communication between two plugins
Please help me
Prasad
Re: Plugin communication [message #65464 is a reply to message #65421] Wed, 25 August 2004 10:05 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Prasad wrote:

>Daniel Megert wrote:
>
>
>
>>Prasad wrote:
>>
>>
>
>
>
>>>Daniel Megert wrote:
>>>
>>>
>>>
>>>
>>>
>>>>Prasad wrote:
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>>>Hello,
>>>>>I have developed one plugin and i want to call my plugin when any other
>>>>>plugins get loaded.
>>>>>for e.g if my plugin name is myplugin and there is helloword plugin so
>>>>>before launching the helloword plugin my plugin should get a call and
>>>>>perform neccesary action and again control will go back to helloword
>>>>>Means my plugin will be observer and all other plugin will send events to
>>>>>it
>>>>>how can i achieve that?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>In your plug-in overwrite start(BundleContext) and register a listener,
>>>>like this:
>>>>public void start(BundleContext context) throws Exception {
>>>> super.start(context);
>>>> Platform.getExtensionRegistry().addRegistryChangeListener(th is,
>>>>PLUGIN_ID);
>>>> }
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>>Don't forget to unregister in stop(BundleContext)
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>>HTH
>>>>Dani
>>>>
>>>>
>>>>
>>>>
>>>i want to call my plugin methods in the other plugins can i achieve that
>>>
>>>
>>>from above code
>>
>>
>>>
>>>
>>>
>>>
>>Not sure what exactly you want to do. Your listener will get notified
>>when a plug-in gets (un)loaded. What else do you need?
>>
>>
>
>
>
>>Dani
>>
>>
>
>Hi Dani,
>when any other (third party) plugin gets loaded i want to call my plugin
>methods for some operations how can do communication between two plugins
>
>
If you register a IRegistryChangeListener as explained above you will be
notified via registryChanged(...) where you can execute your code.

Dani

>Please help me
>Prasad
>
>
>
>
Re: Plugin communication [message #597948 is a reply to message #65296] Fri, 20 August 2004 14:25 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Prasad wrote:

>Hello,
>I have developed one plugin and i want to call my plugin when any other
>plugins get loaded.
>for e.g if my plugin name is myplugin and there is helloword plugin so
>before launching the helloword plugin my plugin should get a call and
>perform neccesary action and again control will go back to helloword
>Means my plugin will be observer and all other plugin will send events to
>it
>how can i achieve that?
>
>
In your plug-in overwrite start(BundleContext) and register a listener,
like this:
public void start(BundleContext context) throws Exception {
super.start(context);
Platform.getExtensionRegistry().addRegistryChangeListener(th is,
PLUGIN_ID);
}

Don't forget to unregister in stop(BundleContext)

HTH
Dani

>Please help me
>Thanks
>Prasad
>
>
>
>
Re: Plugin communication [message #597968 is a reply to message #65317] Mon, 23 August 2004 04:33 Go to previous message
Prasad is currently offline PrasadFriend
Messages: 9
Registered: July 2009
Junior Member
Daniel Megert wrote:

> Prasad wrote:

> >Hello,
> >I have developed one plugin and i want to call my plugin when any other
> >plugins get loaded.
> >for e.g if my plugin name is myplugin and there is helloword plugin so
> >before launching the helloword plugin my plugin should get a call and
> >perform neccesary action and again control will go back to helloword
> >Means my plugin will be observer and all other plugin will send events to
> >it
> >how can i achieve that?
> >
> >
> In your plug-in overwrite start(BundleContext) and register a listener,
> like this:
> public void start(BundleContext context) throws Exception {
> super.start(context);
> Platform.getExtensionRegistry().addRegistryChangeListener(th is,
> PLUGIN_ID);
> }

> Don't forget to unregister in stop(BundleContext)

> HTH
> Dani

i want to call my plugin methods in the other plugins can i achieve that
from above code
Re: Plugin communication [message #597974 is a reply to message #65380] Tue, 24 August 2004 14:26 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Prasad wrote:

>Daniel Megert wrote:
>
>
>
>>Prasad wrote:
>>
>>
>
>
>
>>>Hello,
>>>I have developed one plugin and i want to call my plugin when any other
>>>plugins get loaded.
>>>for e.g if my plugin name is myplugin and there is helloword plugin so
>>>before launching the helloword plugin my plugin should get a call and
>>>perform neccesary action and again control will go back to helloword
>>>Means my plugin will be observer and all other plugin will send events to
>>>it
>>>how can i achieve that?
>>>
>>>
>>>
>>>
>>In your plug-in overwrite start(BundleContext) and register a listener,
>>like this:
>> public void start(BundleContext context) throws Exception {
>> super.start(context);
>> Platform.getExtensionRegistry().addRegistryChangeListener(th is,
>>PLUGIN_ID);
>> }
>>
>>
>
>
>
>>Don't forget to unregister in stop(BundleContext)
>>
>>
>
>
>
>>HTH
>>Dani
>>
>>
>
>i want to call my plugin methods in the other plugins can i achieve that
>from above code
>
>
Not sure what exactly you want to do. Your listener will get notified
when a plug-in gets (un)loaded. What else do you need?

Dani

>
>
>
Re: Plugin communication [message #597981 is a reply to message #65402] Wed, 25 August 2004 05:03 Go to previous message
Prasad is currently offline PrasadFriend
Messages: 9
Registered: July 2009
Junior Member
Daniel Megert wrote:

> Prasad wrote:

> >Daniel Megert wrote:
> >
> >
> >
> >>Prasad wrote:
> >>
> >>
> >
> >
> >
> >>>Hello,
> >>>I have developed one plugin and i want to call my plugin when any other
> >>>plugins get loaded.
> >>>for e.g if my plugin name is myplugin and there is helloword plugin so
> >>>before launching the helloword plugin my plugin should get a call and
> >>>perform neccesary action and again control will go back to helloword
> >>>Means my plugin will be observer and all other plugin will send events to
> >>>it
> >>>how can i achieve that?
> >>>
> >>>
> >>>
> >>>
> >>In your plug-in overwrite start(BundleContext) and register a listener,
> >>like this:
> >> public void start(BundleContext context) throws Exception {
> >> super.start(context);
> >> Platform.getExtensionRegistry().addRegistryChangeListener(th is,
> >>PLUGIN_ID);
> >> }
> >>
> >>
> >
> >
> >
> >>Don't forget to unregister in stop(BundleContext)
> >>
> >>
> >
> >
> >
> >>HTH
> >>Dani
> >>
> >>
> >
> >i want to call my plugin methods in the other plugins can i achieve that
> >from above code
> >
> >
> Not sure what exactly you want to do. Your listener will get notified
> when a plug-in gets (un)loaded. What else do you need?

> Dani

Hi Dani,
when any other (third party) plugin gets loaded i want to call my plugin
methods for some operations how can do communication between two plugins
Please help me
Prasad
Re: Plugin communication [message #597993 is a reply to message #65421] Wed, 25 August 2004 10:05 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Prasad wrote:

>Daniel Megert wrote:
>
>
>
>>Prasad wrote:
>>
>>
>
>
>
>>>Daniel Megert wrote:
>>>
>>>
>>>
>>>
>>>
>>>>Prasad wrote:
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>>>Hello,
>>>>>I have developed one plugin and i want to call my plugin when any other
>>>>>plugins get loaded.
>>>>>for e.g if my plugin name is myplugin and there is helloword plugin so
>>>>>before launching the helloword plugin my plugin should get a call and
>>>>>perform neccesary action and again control will go back to helloword
>>>>>Means my plugin will be observer and all other plugin will send events to
>>>>>it
>>>>>how can i achieve that?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>In your plug-in overwrite start(BundleContext) and register a listener,
>>>>like this:
>>>>public void start(BundleContext context) throws Exception {
>>>> super.start(context);
>>>> Platform.getExtensionRegistry().addRegistryChangeListener(th is,
>>>>PLUGIN_ID);
>>>> }
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>>Don't forget to unregister in stop(BundleContext)
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>>HTH
>>>>Dani
>>>>
>>>>
>>>>
>>>>
>>>i want to call my plugin methods in the other plugins can i achieve that
>>>
>>>
>>>from above code
>>
>>
>>>
>>>
>>>
>>>
>>Not sure what exactly you want to do. Your listener will get notified
>>when a plug-in gets (un)loaded. What else do you need?
>>
>>
>
>
>
>>Dani
>>
>>
>
>Hi Dani,
>when any other (third party) plugin gets loaded i want to call my plugin
>methods for some operations how can do communication between two plugins
>
>
If you register a IRegistryChangeListener as explained above you will be
notified via registryChanged(...) where you can execute your code.

Dani

>Please help me
>Prasad
>
>
>
>
Previous Topic:get plugin-id
Next Topic:Editor for multi-layered XML using IDocumentExtension3 and ProjectionDocument?
Goto Forum:
  


Current Time: Sat Nov 09 00:54:36 GMT 2024

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

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

Back to the top