Author: Grid.Qian
Date: 2008-06-11 05:47:24 -0400 (Wed, 11 Jun 2008)
New Revision: 8707
Added:
trunk/ws/tests/.classpath
trunk/ws/tests/.project
trunk/ws/tests/META-INF/
trunk/ws/tests/META-INF/MANIFEST.MF
trunk/ws/tests/build.properties
trunk/ws/tests/src/
trunk/ws/tests/src/org/
trunk/ws/tests/src/org/jboss/
trunk/ws/tests/src/org/jboss/tools/
trunk/ws/tests/src/org/jboss/tools/ws/
trunk/ws/tests/src/org/jboss/tools/ws/ui/
trunk/ws/tests/src/org/jboss/tools/ws/ui/test/
trunk/ws/tests/src/org/jboss/tools/ws/ui/test/Activator.java
Log:
JBIDE-2323: new a plugin for unit test of org.jboss.tools.ws.ui
Added: trunk/ws/tests/.classpath
===================================================================
--- trunk/ws/tests/.classpath (rev 0)
+++ trunk/ws/tests/.classpath 2008-06-11 09:47:24 UTC (rev 8707)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/ws/tests/.project
===================================================================
--- trunk/ws/tests/.project (rev 0)
+++ trunk/ws/tests/.project 2008-06-11 09:47:24 UTC (rev 8707)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.ws.ui.test</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/ws/tests/META-INF/MANIFEST.MF
===================================================================
--- trunk/ws/tests/META-INF/MANIFEST.MF (rev 0)
+++ trunk/ws/tests/META-INF/MANIFEST.MF 2008-06-11 09:47:24 UTC (rev 8707)
@@ -0,0 +1,9 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Test Plug-in
+Bundle-SymbolicName: org.jboss.tools.ws.ui.test
+Bundle-Version: 1.0.0
+Bundle-Activator: org.jboss.tools.ws.ui.test.Activator
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime
+Eclipse-LazyStart: true
Added: trunk/ws/tests/build.properties
===================================================================
--- trunk/ws/tests/build.properties (rev 0)
+++ trunk/ws/tests/build.properties 2008-06-11 09:47:24 UTC (rev 8707)
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
Added: trunk/ws/tests/src/org/jboss/tools/ws/ui/test/Activator.java
===================================================================
--- trunk/ws/tests/src/org/jboss/tools/ws/ui/test/Activator.java
(rev 0)
+++ trunk/ws/tests/src/org/jboss/tools/ws/ui/test/Activator.java 2008-06-11 09:47:24 UTC
(rev 8707)
@@ -0,0 +1,50 @@
+package org.jboss.tools.ws.ui.test;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.ws.ui.test";
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (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 Activator getDefault() {
+ return plugin;
+ }
+
+}
Show replies by date