Author: snjeza
Date: 2009-01-07 16:23:40 -0500 (Wed, 07 Jan 2009)
New Revision: 12918
Added:
trunk/tptp/plugins/org.jboss.tools.tptp/.classpath
trunk/tptp/plugins/org.jboss.tools.tptp/.project
trunk/tptp/plugins/org.jboss.tools.tptp/META-INF/
trunk/tptp/plugins/org.jboss.tools.tptp/META-INF/MANIFEST.MF
trunk/tptp/plugins/org.jboss.tools.tptp/about.html
trunk/tptp/plugins/org.jboss.tools.tptp/about.ini
trunk/tptp/plugins/org.jboss.tools.tptp/about.mappings
trunk/tptp/plugins/org.jboss.tools.tptp/about.properties
trunk/tptp/plugins/org.jboss.tools.tptp/build.properties
trunk/tptp/plugins/org.jboss.tools.tptp/jboss_about.png
trunk/tptp/plugins/org.jboss.tools.tptp/plugin.properties
trunk/tptp/plugins/org.jboss.tools.tptp/plugin.xml
trunk/tptp/plugins/org.jboss.tools.tptp/src/
trunk/tptp/plugins/org.jboss.tools.tptp/src/org/
trunk/tptp/plugins/org.jboss.tools.tptp/src/org/jboss/
trunk/tptp/plugins/org.jboss.tools.tptp/src/org/jboss/tools/
trunk/tptp/plugins/org.jboss.tools.tptp/src/org/jboss/tools/tptp/
trunk/tptp/plugins/org.jboss.tools.tptp/src/org/jboss/tools/tptp/PICollectorFiltration.java
Log:
JBIDE-3455 Missing BIRT and TPTP dependency causing Seam Tools not to start when dropins
folder is used
Added: trunk/tptp/plugins/org.jboss.tools.tptp/.classpath
===================================================================
--- trunk/tptp/plugins/org.jboss.tools.tptp/.classpath (rev 0)
+++ trunk/tptp/plugins/org.jboss.tools.tptp/.classpath 2009-01-07 21:23:40 UTC (rev
12918)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/tptp/plugins/org.jboss.tools.tptp/.project
===================================================================
--- trunk/tptp/plugins/org.jboss.tools.tptp/.project (rev 0)
+++ trunk/tptp/plugins/org.jboss.tools.tptp/.project 2009-01-07 21:23:40 UTC (rev 12918)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.tptp</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added: trunk/tptp/plugins/org.jboss.tools.tptp/META-INF/MANIFEST.MF
===================================================================
--- trunk/tptp/plugins/org.jboss.tools.tptp/META-INF/MANIFEST.MF
(rev 0)
+++ trunk/tptp/plugins/org.jboss.tools.tptp/META-INF/MANIFEST.MF 2009-01-07 21:23:40 UTC
(rev 12918)
@@ -0,0 +1,17 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %BundleName
+Bundle-Vendor: %BundleVendor
+Bundle-SymbolicName: org.jboss.tools.tptp; singleton:=true
+Bundle-Version: 1.0.0
+Bundle-Localization: plugin
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.eclipse.debug.ui,
+ org.eclipse.hyades.trace.ui,
+ org.eclipse.tptp.platform.jvmti.client,
+ org.eclipse.tptp.platform.execution,
+ org.eclipse.tptp.platform.profile.server.core,
+ org.eclipse.tptp.platform.instrumentation.ui
+Bundle-ActivationPolicy: lazy
+Eclipse-LazyStart: true
Added: trunk/tptp/plugins/org.jboss.tools.tptp/about.html
===================================================================
--- trunk/tptp/plugins/org.jboss.tools.tptp/about.html (rev 0)
+++ trunk/tptp/plugins/org.jboss.tools.tptp/about.html 2009-01-07 21:23:40 UTC (rev
12918)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1" />
+<title>TPTP Profile On JBoss Server</title>
+<style type="text/css" media="screen">
+<!--
+ body {
+ font-family: Sans-serif, Arial, Helvetica;
+ }
+
+-->
+</style>
+</head>
+<body>
+<h1>TPTP Profile On JBoss Server</h1>
+
+<p>
+This plugin is part of the JBoss Tools developed by the <a
href="http://www.jboss.com">JBoss Inc.</a>
+</p>
+
+<p>Information about this plugin is available at <a
href="http://www.jboss.org/tools">JBoss Tools project
page</a></p>
+
+<p>
+This software is distributed under the terms of the Eclipse Public License - v 1.0
+(see <a
href="www.eclipse.org/legal/epl-v10.html">Eclipse Public License
- Version 1.0</a>).
+</p>
+</body>
+</html>
\ No newline at end of file
Added: trunk/tptp/plugins/org.jboss.tools.tptp/about.ini
===================================================================
--- trunk/tptp/plugins/org.jboss.tools.tptp/about.ini (rev 0)
+++ trunk/tptp/plugins/org.jboss.tools.tptp/about.ini 2009-01-07 21:23:40 UTC (rev 12918)
@@ -0,0 +1,27 @@
+# about.ini
+# contains information about a feature
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# "%key" are externalized strings defined in about.properties
+# This file does not need to be translated.
+# test
+# Property "aboutText" contains blurb for "About" dialog
(translated)
+aboutText=%blurb
+
+# Property "windowImage" contains path to window icon (16x16)
+# needed for primary features only
+
+# Property "featureImage" contains path to feature image (32x32)
+featureImage=jboss_about.png
+
+# Property "aboutImage" contains path to product image (500x330 or 115x164)
+# needed for primary features only
+
+# Property "appName" contains name of the application (not translated)
+# needed for primary features only
+
+# Property "welcomePerspective" contains the id of the perspective in which
the
+# welcome page is to be opened.
+# optional
+
+
+
Added: trunk/tptp/plugins/org.jboss.tools.tptp/about.mappings
===================================================================
--- trunk/tptp/plugins/org.jboss.tools.tptp/about.mappings (rev
0)
+++ trunk/tptp/plugins/org.jboss.tools.tptp/about.mappings 2009-01-07 21:23:40 UTC (rev
12918)
@@ -0,0 +1,5 @@
+# about.mappings
+# contains fill-ins for about.properties
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file does not need to be translated.
+
Added: trunk/tptp/plugins/org.jboss.tools.tptp/about.properties
===================================================================
--- trunk/tptp/plugins/org.jboss.tools.tptp/about.properties (rev
0)
+++ trunk/tptp/plugins/org.jboss.tools.tptp/about.properties 2009-01-07 21:23:40 UTC (rev
12918)
@@ -0,0 +1,7 @@
+blurb=TPTP Profile On JBoss Server\n\
+\n\
+Version: {featureVersion}\n\
+\n\
+(c) Copyright JBoss Inc. contributors and others 2004 - 2008. All rights reserved.\n\
+Visit
http://jboss.org/tools
+
Added: trunk/tptp/plugins/org.jboss.tools.tptp/build.properties
===================================================================
--- trunk/tptp/plugins/org.jboss.tools.tptp/build.properties (rev
0)
+++ trunk/tptp/plugins/org.jboss.tools.tptp/build.properties 2009-01-07 21:23:40 UTC (rev
12918)
@@ -0,0 +1,11 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.properties,\
+ plugin.xml,\
+ about.html,\
+ about.ini,\
+ about.mappings,\
+ about.properties,\
+ jboss_about.png
Added: trunk/tptp/plugins/org.jboss.tools.tptp/jboss_about.png
===================================================================
(Binary files differ)
Property changes on: trunk/tptp/plugins/org.jboss.tools.tptp/jboss_about.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/tptp/plugins/org.jboss.tools.tptp/plugin.properties
===================================================================
--- trunk/tptp/plugins/org.jboss.tools.tptp/plugin.properties (rev
0)
+++ trunk/tptp/plugins/org.jboss.tools.tptp/plugin.properties 2009-01-07 21:23:40 UTC (rev
12918)
@@ -0,0 +1,2 @@
+BundleName=TPTP Profile On JBoss Server
+BundleVendor=JBoss, a division of Red Hat
\ No newline at end of file
Added: trunk/tptp/plugins/org.jboss.tools.tptp/plugin.xml
===================================================================
--- trunk/tptp/plugins/org.jboss.tools.tptp/plugin.xml (rev 0)
+++ trunk/tptp/plugins/org.jboss.tools.tptp/plugin.xml 2009-01-07 21:23:40 UTC (rev
12918)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+<plugin>
+ <!-- Make the associations between the launch configurations and the data
collectors -->
+ <extension
+ point="org.eclipse.hyades.trace.ui.launchConfigMechanismAssociator">
+
+ <!-- JBoss Server -->
+ <association
+ launchConfigID =
"org.jboss.ide.eclipse.as.core.server.startupConfiguration">
+
+ <mechanism mechanismID = "org.eclipse.tptp.trace.ui.jvmpiMechanism">
+ <configuration
+ launchDelegate =
"org.eclipse.tptp.trace.ui.internal.launcher.deleg.application.PIAttachLauncherDelegate"
+ configurationId = "org.eclipse.tptp.trace.ui.jvmpiConfiguration"
+ associatedAgent = "org.eclipse.tptp.trace.ui.jvmpiAgent"
+ filter =
"org.eclipse.tptp.platform.profile.server.core.internal.PICollectorFiltration">
+ </configuration>
+ </mechanism>
+
+ <mechanism mechanismID =
"org.eclipse.tptp.trace.jvmti.jvmtiMechanism">
+ <configuration
+ launchDelegate =
"org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIAttachLauncherDelegate"
+ configurationId = "org.eclipse.tptp.trace.jvmti.tiConfiguration"
+ associatedAgent = "org.eclipse.tptp.platform.jvmti.TIAgent"
+ filter =
"org.eclipse.tptp.platform.profile.server.core.internal.TICollectorFiltration">
+ </configuration>
+ </mechanism>
+ </association>
+ <association
launchConfigID="org.jboss.ide.eclipse.as.core.server.startupConfiguration">
+ <mechanism
mechanismID="org.eclipse.tptp.platform.instrumentation.ui.instrumentCollector">
+ <configuration
+
associatedAgent="org.eclipse.tptp.platform.instrumentation.ui.instrumentAgent"
+
configurationId="org.eclipse.tptp.platform.instrumentation.ui.instrumentCollectorConfiguration"
+ filter="org.jboss.tools.tptp.PICollectorFiltration"
+
launchDelegate="org.eclipse.tptp.platform.instrumentation.ui.internal.launcher.deleg.application.InstrumentLauncherDelegate"/>
+ </mechanism>
+ </association>
+
+ </extension>
+</plugin>
Added:
trunk/tptp/plugins/org.jboss.tools.tptp/src/org/jboss/tools/tptp/PICollectorFiltration.java
===================================================================
---
trunk/tptp/plugins/org.jboss.tools.tptp/src/org/jboss/tools/tptp/PICollectorFiltration.java
(rev 0)
+++
trunk/tptp/plugins/org.jboss.tools.tptp/src/org/jboss/tools/tptp/PICollectorFiltration.java 2009-01-07
21:23:40 UTC (rev 12918)
@@ -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.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;
+ }
+}
+