[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Make a plugin from a java application
|
- From: pbeaufil@xxxxxxxx (Pierre Beaufils)
- Date: Tue, 11 Feb 2003 14:42:42 +0000 (UTC)
- Newsgroups: eclipse.tools
- Organization: http://www.eclipse.org
- User-agent: NewsPortal 0.23
Hi all,
I'm currently trying to develop a simple plugin from a java application
but i get stuck with a simple problem : i made a plugin.xml which creates
a button in the toolbar to launch my application. Then i modified the main
of the java application with the hello example code :
public class MyClass implements IWorkbenchWindowActionDelegate {
public void dispose() {
}
public void init(IWorkbenchWindow window) {
}
public void selectionChanged(IAction action, ISelection selection) {
}
public void run(IAction action) {
//the main application
Display display = new Display();
Shell shell1 = new Shell(display);
//etc....
}
}
If i put something like :"MessageDialog.openInformation(null,null,"Hello,
Eclipse world");" in the function run() it works but if i try to put the
main of my application (so creating a new window) it does not work : in
fact it does nothing.
Does anyone has got an idea to help me ?