Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Dumb Plugins and Instances ...
Dumb Plugins and Instances ... [message #156822] Fri, 14 November 2003 14:32
David Whitehurst is currently offline David WhitehurstFriend
Messages: 76
Registered: July 2009
Member
I created a dumb plugin called Host just like an example using IListener and
callbacks. I have an Editor plugin action that I used the
Platform.getPlugin method to obtain the Host and then the action run()
method would call the proxy method on the Host plugin. When debugged, the
Host is null. Am I supposed to write code to instance the dumb plugin since
it has no GUI? The dumb plugin does have a constructor like ...

public Host(IPluginDescriptor descriptor) {
super(descriptor);
instance(this);
}

Why does the Editor's action run() method return NULL when the menu action
is called?

Here's the run method(IAction action) {
Host host = (Host) Platform.getPlugin(HOST_PLUGIN);
host.update("Hello there");
}

Thanks,

David


--
David L. Whitehurst
aka. PiratePete
http://www.piratepetesoftware.com
dlwhitehurst@comcast.net
Previous Topic:Weird error while copying CompilationUnitEditor(Cont)
Next Topic:integrating a debugger
Goto Forum:
  


Current Time: Sat Apr 27 03:30:47 GMT 2024

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

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

Back to the top