You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hdt.apache.org by ad...@apache.org on 2013/01/28 04:44:44 UTC
[2/17] git commit: Added ui plugin, just template for now
Added ui plugin, just template for now
Project: http://git-wip-us.apache.org/repos/asf/incubator-hdt/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hdt/commit/2c021686
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hdt/tree/2c021686
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hdt/diff/2c021686
Branch: refs/heads/master
Commit: 2c021686d1acfa1fe15937f1ed29ec2c9f5d5e33
Parents: 0a0744f
Author: adamb <ad...@apache.org>
Authored: Tue Jan 15 22:36:54 2013 -0600
Committer: adamb <ad...@apache.org>
Committed: Tue Jan 15 22:36:54 2013 -0600
----------------------------------------------------------------------
org.apache.hdt.ui/.classpath | 7 ++
org.apache.hdt.ui/.project | 28 ++++++++
.../.settings/org.eclipse.jdt.core.prefs | 7 ++
org.apache.hdt.ui/META-INF/MANIFEST.MF | 11 +++
.../bin/org/apache/hdt/ui/Activator.class | Bin 0 -> 874 bytes
org.apache.hdt.ui/build.properties | 4 +
.../src/org/apache/hdt/ui/Activator.java | 50 +++++++++++++++
7 files changed, 107 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-hdt/blob/2c021686/org.apache.hdt.ui/.classpath
----------------------------------------------------------------------
diff --git a/org.apache.hdt.ui/.classpath b/org.apache.hdt.ui/.classpath
new file mode 100644
index 0000000..ad32c83
--- /dev/null
+++ b/org.apache.hdt.ui/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
http://git-wip-us.apache.org/repos/asf/incubator-hdt/blob/2c021686/org.apache.hdt.ui/.project
----------------------------------------------------------------------
diff --git a/org.apache.hdt.ui/.project b/org.apache.hdt.ui/.project
new file mode 100644
index 0000000..feb7efa
--- /dev/null
+++ b/org.apache.hdt.ui/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.apache.hdt.ui</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>
http://git-wip-us.apache.org/repos/asf/incubator-hdt/blob/2c021686/org.apache.hdt.ui/.settings/org.eclipse.jdt.core.prefs
----------------------------------------------------------------------
diff --git a/org.apache.hdt.ui/.settings/org.eclipse.jdt.core.prefs b/org.apache.hdt.ui/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..c537b63
--- /dev/null
+++ b/org.apache.hdt.ui/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
http://git-wip-us.apache.org/repos/asf/incubator-hdt/blob/2c021686/org.apache.hdt.ui/META-INF/MANIFEST.MF
----------------------------------------------------------------------
diff --git a/org.apache.hdt.ui/META-INF/MANIFEST.MF b/org.apache.hdt.ui/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..4883ec0
--- /dev/null
+++ b/org.apache.hdt.ui/META-INF/MANIFEST.MF
@@ -0,0 +1,11 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Hadoop Development Tools UI
+Bundle-SymbolicName: org.apache.hdt.ui
+Bundle-Version: 0.0.0
+Bundle-Activator: org.apache.hdt.ui.Activator
+Bundle-Vendor: Apache Foundation
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-ActivationPolicy: lazy
http://git-wip-us.apache.org/repos/asf/incubator-hdt/blob/2c021686/org.apache.hdt.ui/bin/org/apache/hdt/ui/Activator.class
----------------------------------------------------------------------
diff --git a/org.apache.hdt.ui/bin/org/apache/hdt/ui/Activator.class b/org.apache.hdt.ui/bin/org/apache/hdt/ui/Activator.class
new file mode 100644
index 0000000..31726d9
Binary files /dev/null and b/org.apache.hdt.ui/bin/org/apache/hdt/ui/Activator.class differ
http://git-wip-us.apache.org/repos/asf/incubator-hdt/blob/2c021686/org.apache.hdt.ui/build.properties
----------------------------------------------------------------------
diff --git a/org.apache.hdt.ui/build.properties b/org.apache.hdt.ui/build.properties
new file mode 100644
index 0000000..34d2e4d
--- /dev/null
+++ b/org.apache.hdt.ui/build.properties
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
http://git-wip-us.apache.org/repos/asf/incubator-hdt/blob/2c021686/org.apache.hdt.ui/src/org/apache/hdt/ui/Activator.java
----------------------------------------------------------------------
diff --git a/org.apache.hdt.ui/src/org/apache/hdt/ui/Activator.java b/org.apache.hdt.ui/src/org/apache/hdt/ui/Activator.java
new file mode 100644
index 0000000..a5fe8f8
--- /dev/null
+++ b/org.apache.hdt.ui/src/org/apache/hdt/ui/Activator.java
@@ -0,0 +1,50 @@
+package org.apache.hdt.ui;
+
+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.apache.hdt.ui"; //$NON-NLS-1$
+
+ // 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;
+ }
+
+}