Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Good Documentation on Plugin Communication
Good Documentation on Plugin Communication [message #154690] Sun, 09 November 2003 15:02 Go to next message
Eclipse UserFriend
Hi,

Does anyone have a source, link, doc, etc. on communication between
plugins. I have an editor, a results window, and a console for SQL work.
I am having real issue with getting the type declarations because the
package are inaccessible between plugins. e.g I can get to the
org.eclipse stuff but even if I use Platform.getPlugin() to get the
plugin, I can't return this a recognized type because the plugin packages
are inaccessible between packages.

Maybe I should not be calling methods between plugins directly anyhow, if
not, please tell me how I would use some listener methods and pass
arguments.

Ever so humble,

David
Re: Good Documentation on Plugin Communication [message #154711 is a reply to message #154690] Sun, 09 November 2003 15:31 Go to previous messageGo to next message
Eclipse UserFriend
David Whitehurst wrote:

Better for me to use example ...

IViewPart view = PlatformUI.
getWorkbench().
getActiveWorkbenchWindow().
getActivePage().
findView("com.piratepete.xpdeveloper.SQLConsole.views.SQLConsole ");

com.piratepete.xpdeveloper.SQLConsole.views.SQLConsole myView = null;
if (view instanceof
com.piratepete.xpdeveloper.SQLConsole.views.SQLConsole)
myView = (com.piratepete.xpdeveloper.SQLConsole.views.SQLConsole)view ;

if (myView != null)
myView.writeln("Hello");

The code above is in a file with package
com.piratepete.xpdeveloper.SQLEditCommander.actions

The object cannot be declared. I'm stuck I think.

> Hi,

> Does anyone have a source, link, doc, etc. on communication between
> plugins. I have an editor, a results window, and a console for SQL work.
> I am having real issue with getting the type declarations because the
> package are inaccessible between plugins. e.g I can get to the
> org.eclipse stuff but even if I use Platform.getPlugin() to get the
> plugin, I can't return this a recognized type because the plugin packages
> are inaccessible between packages.

> Maybe I should not be calling methods between plugins directly anyhow, if
> not, please tell me how I would use some listener methods and pass
> arguments.

> Ever so humble,

> David
Re: Good Documentation on Plugin Communication [message #154753 is a reply to message #154690] Sun, 09 November 2003 18:38 Go to previous message
Eclipse UserFriend
Originally posted by: pascal_rapicault.yahoo.fr

There is nothing magic. Plugins see classes exported by plugins that are
listed in the import list of the plugin.xml.
For a given plugin, the import statements can be seen its classpath.

You may also want to take a look at:
http://www.eclipse.org/articles/Article-Plug-in-architecture /plugin_architec
ture.html

PaScaL

"David Whitehurst" <dlwhitehurst@comcast.net> a
Previous Topic:Extending PDE and JDT popupmenus
Next Topic:Packages appear in random order in Package Explorer
Goto Forum:
  


Current Time: Sun May 11 18:31:23 EDT 2025

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

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

Back to the top