[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.pde] Launching an application from 'run' method?
|
I have created the HelloWorld example project in the PDE
perspective. Now in the class SampleHandler there is the function 'run':
/**
* The action has been activated. The argument of the
* method represents the 'real' action sitting
* in the workbench UI.
* @see IWorkbenchWindowActionDelegate#run
*/
public void run(IAction action) {
MessageDialog.openInformation(window.getShell(),"MyPlugin", "Hello,
Eclipse world");
MyApp myApp = new MyApp();
myApp.launch();
}
I would like to run the application MyApp when the button is pressed in the
workbench but I just get a box saying:
"The chosen operation is not currently available"
It should be mentioned that the MyApp is an application from an external jar
that I have added to the build path.
How do I launch my own application when I press the generated button in the
workbench?