Author: dgolovin
Date: 2008-06-06 20:37:27 -0400 (Fri, 06 Jun 2008)
New Revision: 8621
Modified:
trunk/common/plugins/org.jboss.tools.common.model/META-INF/MANIFEST.MF
trunk/common/plugins/org.jboss.tools.common.model/plugin.xml
Log:
Fix exception During tests execution. Code requested for workbench moved to IStartup
implementation
java.lang.IllegalStateException: Workbench has not been created yet.
[java] at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:92)
[java] at org.jboss.tools.common.model.plugin.ModelPlugin.start(ModelPlugin.java:76)
[java] at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
[java] at java.security.AccessController.doPrivileged(Native Method)
Modified: trunk/common/plugins/org.jboss.tools.common.model/META-INF/MANIFEST.MF
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/META-INF/MANIFEST.MF 2008-06-07
00:28:52 UTC (rev 8620)
+++ trunk/common/plugins/org.jboss.tools.common.model/META-INF/MANIFEST.MF 2008-06-07
00:37:27 UTC (rev 8621)
@@ -1,6 +1,6 @@
Manifest-Version: 1.0
Eclipse-LazyStart: true
-Bundle-Name: Model
+Bundle-Name: JBoss Tools Model
Bundle-ClassPath: model.jar,lib/j2ee.jar,lib/Bundles.jar
Bundle-Activator: org.jboss.tools.common.model.plugin.ModelPlugin
Bundle-Vendor: %providerName
Modified: trunk/common/plugins/org.jboss.tools.common.model/plugin.xml
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/plugin.xml 2008-06-07 00:28:52 UTC
(rev 8620)
+++ trunk/common/plugins/org.jboss.tools.common.model/plugin.xml 2008-06-07 00:37:27 UTC
(rev 8621)
@@ -386,4 +386,10 @@
class="org.jboss.tools.common.meta.action.impl.handlers.DefaultCreateSupport"/>
</extension>
+ <extension
+ point="org.eclipse.ui.startup">
+ <startup
+ class="org.jboss.tools.common.model.plugin.ModelPluginStartup">
+ </startup>
+ </extension>
</plugin>
Show replies by date