OpenNewJavaProjectWizardAction [message #467277] |
Wed, 02 May 2007 10:01 |
Eclipse User |
|
|
|
Originally posted by: jago_westmacott.ml.com
Hi i am new to RCP (and am still playing with org.eclipse.ui.tutorials.rcp.part3 as an imported project).
Within the above rcp.part3 project, I've been trying to add the ability to create a new java project, add a .java file and open that up in a CompilationUnitEditor so it's in a state where code completion is working and i can compile. I've got close, but I believe my problem has always been with an incorrectly confgured project of some sort - so i've realised i probably should be using the above wizard.
So I've now added these lines to the project (ApplicationActionBarAdvisor class):
openWizAction = new OpenNewJavaProjectWizardAction();
openWizAction.setId("openwiz");
register(openWizAction);
fileMenu.add(openWizAction);
My file menu now has new Java Project (complete with icon) option and clicking that brings up the first page of the wizard. However, clicking the 'next' button throws the following exception:
Unhandled event loop exception during blocked modal context.
org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:3374)
at org.eclipse.swt.SWT.error(SWT.java:3297)
at org.eclipse.swt.SWT.error(SWT.java:3268)
at org.eclipse.swt.widgets.Widget.error(Widget.java:435)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:330)
at org.eclipse.swt.widgets.TreeItem.getItemCount(TreeItem.java: 732)
Can anyone could explain what i'm doing wrong or point me in the right direction? Many thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.02599 seconds