Author: snjeza
Date: 2009-01-13 13:54:20 -0500 (Tue, 13 Jan 2009)
New Revision: 13021
Added:
trunk/tptp/plugins/org.jboss.tools.eclipse.as.tptp/src/org/
trunk/tptp/plugins/org.jboss.tools.eclipse.as.tptp/src/org/jboss/
trunk/tptp/plugins/org.jboss.tools.eclipse.as.tptp/src/org/jboss/tools/
trunk/tptp/plugins/org.jboss.tools.eclipse.as.tptp/src/org/jboss/tools/eclipse/
trunk/tptp/plugins/org.jboss.tools.eclipse.as.tptp/src/org/jboss/tools/eclipse/as/
trunk/tptp/plugins/org.jboss.tools.eclipse.as.tptp/src/org/jboss/tools/eclipse/as/tptp/
trunk/tptp/plugins/org.jboss.tools.eclipse.as.tptp/src/org/jboss/tools/eclipse/as/tptp/PICollectorFiltration.java
Modified:
trunk/tptp/plugins/org.jboss.tools.eclipse.as.tptp/plugin.xml
Log:
JBDS-3455 Missing BIRT and TPTP dependency causing Seam Tools not to start when dropins
folder is used
Modified: trunk/tptp/plugins/org.jboss.tools.eclipse.as.tptp/plugin.xml
===================================================================
--- trunk/tptp/plugins/org.jboss.tools.eclipse.as.tptp/plugin.xml 2009-01-13 18:41:14 UTC
(rev 13020)
+++ trunk/tptp/plugins/org.jboss.tools.eclipse.as.tptp/plugin.xml 2009-01-13 18:54:20 UTC
(rev 13021)
@@ -32,7 +32,7 @@
<configuration
associatedAgent="org.eclipse.tptp.platform.instrumentation.ui.instrumentAgent"
configurationId="org.eclipse.tptp.platform.instrumentation.ui.instrumentCollectorConfiguration"
- filter="org.jboss.tools.tptp.PICollectorFiltration"
+
filter="org.jboss.tools.eclipse.as.tptp.PICollectorFiltration"
launchDelegate="org.eclipse.tptp.platform.instrumentation.ui.internal.launcher.deleg.application.InstrumentLauncherDelegate"/>
</mechanism>
</association>
Added:
trunk/tptp/plugins/org.jboss.tools.eclipse.as.tptp/src/org/jboss/tools/eclipse/as/tptp/PICollectorFiltration.java
===================================================================
---
trunk/tptp/plugins/org.jboss.tools.eclipse.as.tptp/src/org/jboss/tools/eclipse/as/tptp/PICollectorFiltration.java
(rev 0)
+++
trunk/tptp/plugins/org.jboss.tools.eclipse.as.tptp/src/org/jboss/tools/eclipse/as/tptp/PICollectorFiltration.java 2009-01-13
18:54:20 UTC (rev 13021)
@@ -0,0 +1,36 @@
+/**********************************************************************
+ * Copyright (c) 2008 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ *
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Qingwu Lin (linqingw(a)cn.ibm.com)
+ *
+ * IBM - Initial API and implementation
+ **********************************************************************/
+package org.jboss.tools.eclipse.as.tptp;
+
+import org.eclipse.debug.core.ILaunchConfiguration;
+import
org.eclipse.tptp.trace.ui.internal.launcher.deleg.application.PIDelegateHelper.JVMVersionDetector;
+import org.eclipse.tptp.trace.ui.provisional.launcher.ICollectorFiltration;
+
+/**
+ * This filtration class is used to filter the JVMPI data collector if the
+ * targeted host uses JRE 1.6 or greater.
+ *
+ */
+public class PICollectorFiltration implements ICollectorFiltration
+{
+
+ public boolean include(String id, ILaunchConfiguration configuration, Object context)
+ {
+ boolean isInclude;
+ JVMVersionDetector jvmVersionDetector = new JVMVersionDetector(configuration);
+ String version = jvmVersionDetector.retrieveVersionOutput();
+ isInclude = version.indexOf("1.3") >0 || version.indexOf("1.4")
>0 || version.indexOf("1.5") >0;
+ return isInclude;
+ }
+}
+