Author: ljelinko
Date: 2012-01-10 10:22:29 -0500 (Tue, 10 Jan 2012)
New Revision: 37744
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/tmp/TmpTest.java
Log:
Debugging info
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/tmp/TmpTest.java
===================================================================
---
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/tmp/TmpTest.java 2012-01-10
15:20:27 UTC (rev 37743)
+++
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/test/tmp/TmpTest.java 2012-01-10
15:22:29 UTC (rev 37744)
@@ -1,8 +1,10 @@
package org.jboss.tools.portlet.ui.bot.test.tmp;
+import org.eclipse.core.internal.registry.BundleHelper;
import org.eclipse.core.runtime.Platform;
import org.eclipse.jst.j2ee.internal.plugin.IJ2EEModuleConstants;
import org.eclipse.jst.j2ee.internal.plugin.J2EEPlugin;
+import org.eclipse.osgi.framework.internal.core.BundleHost;
import org.jboss.tools.portlet.ui.bot.test.testcase.SWTTaskBasedTestCase;
import org.jboss.tools.ui.bot.ext.config.Annotations.DB;
import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
@@ -18,6 +20,13 @@
String pluginId = J2EEPlugin.getPlugin().getPluginID();
System.out.println("Plugin id: " + pluginId);
Bundle bundle = Platform.getBundle(pluginId);
+
+ if (bundle instanceof BundleHost){
+ System.out.println("Bundledata class:");
+ System.out.println(((BundleHost) bundle).getBundleData());
+ } else {
+ System.out.println("No Bundledata");
+ }
System.out.println("Location: " + bundle.getLocation());
System.out.println("Jar ext: " + IJ2EEModuleConstants.JAR_EXT);
System.out.println("Comparison: " +
bundle.getLocation().endsWith(IJ2EEModuleConstants.JAR_EXT));
Show replies by date