Good Documentation on Plugin Communication [message #154690] |
Sun, 09 November 2003 15:02  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03161 seconds