Author: bfitzpat
Date: 2011-10-05 09:37:15 -0400 (Wed, 05 Oct 2011)
New Revision: 35369
Modified:
branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/ESBProjectCorePlugin.java
Log:
JBIDE-9802 - Wrapping potential deadlock in ESB project plugin class with Rob
Stryker's patch (thanks Rob!)
Modified:
branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/ESBProjectCorePlugin.java
===================================================================
---
branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/ESBProjectCorePlugin.java 2011-10-05
13:36:57 UTC (rev 35368)
+++
branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/ESBProjectCorePlugin.java 2011-10-05
13:37:15 UTC (rev 35369)
@@ -11,11 +11,14 @@
package org.jboss.tools.esb.core;
import org.eclipse.core.runtime.ILog;
+import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.eclipse.wst.common.componentcore.internal.util.VirtualReferenceUtilities;
import org.jboss.ide.eclipse.as.core.publishers.PublishUtil;
+import org.jboss.tools.esb.core.ESBProjectConstant;
import org.jboss.tools.esb.core.runtime.JBossRuntimeManager;
import org.osgi.framework.BundleContext;
@@ -44,7 +47,12 @@
super.start(context);
plugin = this;
JBossRuntimeManager.loadParsers();
- VirtualReferenceUtilities.INSTANCE.addDefaultExtension(ESBProjectConstant.ESB_PROJECT_FACET,
ESBProjectConstant.ESB_EXTENSION);
+ Job job = new Job("ESB Facet Framework Initialization") { //$NON-NLS-1$
+ protected IStatus run(IProgressMonitor monitor) {
+ VirtualReferenceUtilities.INSTANCE.addDefaultExtension(ESBProjectConstant.ESB_PROJECT_FACET,
ESBProjectConstant.ESB_EXTENSION);
+ return Status.OK_STATUS;
+ }
+ };
PublishUtil.addModuleCoreFactory("org.jboss.tools.esb.project.core.moduleFactory");
}
Show replies by date