Author: dgolovin
Date: 2008-09-05 18:36:29 -0400 (Fri, 05 Sep 2008)
New Revision: 10109
Added:
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/ESBProjectCorePlugin.java
Modified:
trunk/esb/plugins/org.jboss.tools.esb.project.core/META-INF/MANIFEST.MF
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/runtime/JBossRuntimeManager.java
Log:
This Plugin activator class QName had the same name as one from esb.core that's. That
is the reason why emma coverage fails on hudson with exception:
[report] com.vladium.emma.EMMARuntimeException: [CLASS_STAMP_MISMATCH] runtime version
of class [org.jboss.tools.esb.core.ESBCorePlugin] in the coverage data is not consistent
with the version of this class in the metadata, possibly because stale metadata is being
used for report generation.
[report] at com.vladium.emma.report.ReportDataModel.getView(ReportDataModel.java:95)
[report] at
com.vladium.emma.report.AbstractReportGenerator.initialize(AbstractReportGenerator.java:210)
[report] at
com.vladium.emma.report.xml.ReportGenerator.process(ReportGenerator.java:64)
[report] at com.vladium.emma.report.ReportProcessor._run(ReportProcessor.java:254)
[report] at com.vladium.emma.Processor.run(Processor.java:54)
Plugin activator renamed to ESBProjectCorePLugin
Modified: trunk/esb/plugins/org.jboss.tools.esb.project.core/META-INF/MANIFEST.MF
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.project.core/META-INF/MANIFEST.MF 2008-09-05
22:15:56 UTC (rev 10108)
+++ trunk/esb/plugins/org.jboss.tools.esb.project.core/META-INF/MANIFEST.MF 2008-09-05
22:36:29 UTC (rev 10109)
@@ -4,7 +4,7 @@
Bundle-SymbolicName: org.jboss.tools.esb.project.core;singleton:=true
Bundle-Version: 1.0.0
Bundle-Localization: plugin
-Bundle-Activator: org.jboss.tools.esb.core.ESBCorePlugin
+Bundle-Activator: org.jboss.tools.esb.core.ESBProjectCorePlugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.wst.common.project.facet.core,
Copied:
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/ESBProjectCorePlugin.java
(from rev 10063,
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/ESBCorePlugin.java)
===================================================================
---
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/ESBProjectCorePlugin.java
(rev 0)
+++
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/ESBProjectCorePlugin.java 2008-09-05
22:36:29 UTC (rev 10109)
@@ -0,0 +1,50 @@
+package org.jboss.tools.esb.core;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class ESBProjectCorePlugin extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.esb.core";
+
+ // The shared instance
+ private static ESBProjectCorePlugin plugin;
+
+ /**
+ * The constructor
+ */
+ public ESBProjectCorePlugin() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static ESBProjectCorePlugin getDefault() {
+ return plugin;
+ }
+
+}
Modified:
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/runtime/JBossRuntimeManager.java
===================================================================
---
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/runtime/JBossRuntimeManager.java 2008-09-05
22:15:56 UTC (rev 10108)
+++
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/runtime/JBossRuntimeManager.java 2008-09-05
22:36:29 UTC (rev 10109)
@@ -29,7 +29,7 @@
import org.eclipse.wst.common.project.facet.core.IFacetedProject;
import org.eclipse.wst.common.project.facet.core.IProjectFacet;
import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
-import org.jboss.tools.esb.core.ESBCorePlugin;
+import org.jboss.tools.esb.core.ESBProjectCorePlugin;
import org.jboss.tools.esb.core.facet.IJBossESBFacetDataModelProperties;
import org.jboss.tools.esb.core.messages.JBossFacetCoreMessages;
@@ -255,9 +255,9 @@
* Save preference value and force save changes to disk
*/
public void save() {
- ESBCorePlugin.getDefault().getPreferenceStore().setValue(
+ ESBProjectCorePlugin.getDefault().getPreferenceStore().setValue(
JBossFacetCoreMessages.ESB_Location, converter.getString(runtimes));
- IPreferenceStore store = ESBCorePlugin.getDefault()
+ IPreferenceStore store = ESBProjectCorePlugin.getDefault()
.getPreferenceStore();
if (store instanceof IPersistentPreferenceStore) {
try {
@@ -394,7 +394,7 @@
}
public void load() {
- IPreferenceStore ps = ESBCorePlugin.getDefault()
+ IPreferenceStore ps = ESBProjectCorePlugin.getDefault()
.getPreferenceStore();
String runtimeListString = ps
Show replies by date