Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Inter Plugin Communication
Inter Plugin Communication [message #211239] Mon, 15 March 2004 08:48 Go to next message
Eclipse UserFriend
Originally posted by: ben_narender.hotmail.com

Hi,

have any documents/tutorial available on Inter Plugin Communication?

because i have two plug-in and I want to pass the values between these two
plug-ins, how can i do that?, is it possible?

thanks in advance for your help

Ben
Re: Inter Plugin Communication [message #211439 is a reply to message #211239] Mon, 15 March 2004 12:19 Go to previous message
Eclipse UserFriend
Originally posted by: John_Arthorne.oti.com_

It's not much different from any other inter-object communication. A
common idiom is to expose an accessor method for obtaining an instance
of a plugin:

public class MyPlugin extends Plugin {

private static MyPlugin instance;
public MyPlugin (IPluginDescriptor descriptor) {
super(descriptor);
instance = this;
}
public static MyPlugin getPlugin() {
return instance;
}
}

Then you can obtain an instance, and communicate with the plug-in directly.
--


Ben wrote:
> have any documents/tutorial available on Inter Plugin Communication?
>
> because i have two plug-in and I want to pass the values between these two
> plug-ins, how can i do that?, is it possible?
Previous Topic:Problems with classpath of plugin
Next Topic:Is there a generic events mechanism with Eclipse
Goto Forum:
  


Current Time: Sat Jun 07 21:50:35 EDT 2025

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

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

Back to the top