Author: bfitzpat
Date: 2011-10-05 09:36:57 -0400 (Wed, 05 Oct 2011)
New Revision: 35368
Modified:
trunk/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:
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/ESBProjectCorePlugin.java
===================================================================
---
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/ESBProjectCorePlugin.java 2011-10-05
12:47:38 UTC (rev 35367)
+++
trunk/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)
@@ -11,8 +11,10 @@
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;
@@ -22,6 +24,7 @@
/**
* The activator class controls the plug-in life cycle
*/
+@SuppressWarnings("restriction")
public class ESBProjectCorePlugin extends AbstractUIPlugin {
// The plug-in ID
@@ -44,8 +47,14 @@
super.start(context);
plugin = this;
JBossRuntimeManager.loadParsers();
- VirtualReferenceUtilities.INSTANCE.addDefaultExtension(ESBProjectConstant.ESB_PROJECT_FACET,
ESBProjectConstant.ESB_EXTENSION);
PublishUtil.addModuleCoreFactory("org.jboss.tools.esb.project.core.moduleFactory");
+ 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;
+ }
+ };
+ job.schedule();
}
/*
Show replies by date