Plugin communication [message #65296] |
Fri, 20 August 2004 05:51 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #597974 is a reply to message #65380] |
Tue, 24 August 2004 14:26 |
Eclipse User |
|
|
|
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 #597993 is a reply to message #65421] |
Wed, 25 August 2004 10:05 |
Eclipse User |
|
|
|
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
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03656 seconds