Hi, All!
There are 3 static WizardRegisties in WorkbenchPlugin. I think we must to dispose them while Workbench is closing (Workbench.shutdown()) and reseting WorkbenchPlugin:
private void shutdown() {
...
if (WorkbenchPlugin.getDefault() != null) {
WorkbenchPlugin.getDefault().reset();
}
...
}
because RAP isn't one display application. Supposed patch is below:
### Eclipse Workspace Patch 1.0
#P org.eclipse.rap.ui.workbench
Index: Eclipse UI/org/eclipse/ui/internal/WorkbenchPlugin.java
===================================================================
RCS file: /cvsroot/rt/org.eclipse.rap/runtime.ui/org.eclipse.rap.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPlugin.java,v
retrieving revision 1.24
diff -u -r1.24 WorkbenchPlugin.java
--- Eclipse UI/org/eclipse/ui/internal/WorkbenchPlugin.java 3 May 2010 06:47:36 -0000 1.24
+++ Eclipse UI/org/eclipse/ui/internal/WorkbenchPlugin.java 23 Sep 2010 10:37:24 -0000
@@ -388,6 +388,10 @@
operationSupport.dispose();
operationSupport = null;
}
+
+ ((AbstractWizardRegistry)getNewWizardRegistry()).dispose();
+ ((AbstractWizardRegistry)getImportWizardRegistry()).dispose();
+ ((AbstractWizardRegistry)getExportWizardRegistry()).dispose();
DEBUG = false;