| 
| Dumb Plugins and Instances ... [message #156822] | Fri, 14 November 2003 09:32 |  | 
| Eclipse User  |  |  |  |  | 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
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.04446 seconds