Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Overholt2011-04-14 00:26:00 +0000
committerAndrew Overholt2011-04-14 00:26:00 +0000
commit1e7bcc87867fcb7dcaf98c16139ae7325f0cb956 (patch)
treea147ff19efb2bb4f681ae70f03241f76d3aa2046
parentf5534b581786b9214e121e74cc90579f014a7fdb (diff)
downloadorg.eclipse.linuxtools-1e7bcc87867fcb7dcaf98c16139ae7325f0cb956.tar.gz
org.eclipse.linuxtools-1e7bcc87867fcb7dcaf98c16139ae7325f0cb956.tar.xz
org.eclipse.linuxtools-1e7bcc87867fcb7dcaf98c16139ae7325f0cb956.zip
Import files missing from profiling.ui on stable-0.7
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.ui/.classpath7
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.ui/.project34
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.ui/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.ui/META-INF/MANIFEST.MF28
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.ui/about.html28
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.ui/build.properties7
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.ui/plugin.properties4
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.ui/plugin.xml21
-rw-r--r--profiling/org.eclipse.linuxtools.profiling.ui/src/org/eclipse/linuxtools/internal/profiling/ui/ProfileUIPlugin.java70
9 files changed, 206 insertions, 0 deletions
diff --git a/profiling/org.eclipse.linuxtools.profiling.ui/.classpath b/profiling/org.eclipse.linuxtools.profiling.ui/.classpath
new file mode 100644
index 0000000000..64c5e31b7a
--- /dev/null
+++ b/profiling/org.eclipse.linuxtools.profiling.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/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/profiling/org.eclipse.linuxtools.profiling.ui/.project b/profiling/org.eclipse.linuxtools.profiling.ui/.project
new file mode 100644
index 0000000000..15137b2dbc
--- /dev/null
+++ b/profiling/org.eclipse.linuxtools.profiling.ui/.project
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.linuxtools.profiling.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>
+ <buildCommand>
+ <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
+ </natures>
+</projectDescription>
diff --git a/profiling/org.eclipse.linuxtools.profiling.ui/.settings/org.eclipse.jdt.core.prefs b/profiling/org.eclipse.linuxtools.profiling.ui/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000000..2b0594c21e
--- /dev/null
+++ b/profiling/org.eclipse.linuxtools.profiling.ui/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+#Mon Oct 27 11:42:51 EDT 2008
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
diff --git a/profiling/org.eclipse.linuxtools.profiling.ui/META-INF/MANIFEST.MF b/profiling/org.eclipse.linuxtools.profiling.ui/META-INF/MANIFEST.MF
new file mode 100644
index 0000000000..4c7d28c410
--- /dev/null
+++ b/profiling/org.eclipse.linuxtools.profiling.ui/META-INF/MANIFEST.MF
@@ -0,0 +1,28 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %Bundle-Name.0
+Bundle-SymbolicName: org.eclipse.linuxtools.profiling.ui;singleton:=true
+Bundle-Version: 0.7.0.qualifier
+Bundle-Activator: org.eclipse.linuxtools.internal.profiling.ui.ProfileUIPlugin
+Bundle-Vendor: %Bundle-Vendor.0
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-ActivationPolicy: lazy
+Bundle-Localization: plugin
+Export-Package: org.eclipse.linuxtools.internal.profiling.ui,
+ org.eclipse.linuxtools.profiling.ui
+Import-Package: org.eclipse.cdt.core,
+ org.eclipse.cdt.core.dom.ast,
+ org.eclipse.cdt.core.index,
+ org.eclipse.cdt.core.model,
+ org.eclipse.cdt.debug.core,
+ org.eclipse.core.filesystem,
+ org.eclipse.core.resources,
+ org.eclipse.debug.core.model,
+ org.eclipse.debug.core.sourcelookup.containers,
+ org.eclipse.debug.ui,
+ org.eclipse.debug.ui.sourcelookup,
+ org.eclipse.jface.text,
+ org.eclipse.ui.ide,
+ org.eclipse.ui.texteditor
diff --git a/profiling/org.eclipse.linuxtools.profiling.ui/about.html b/profiling/org.eclipse.linuxtools.profiling.ui/about.html
new file mode 100644
index 0000000000..c258ef55d8
--- /dev/null
+++ b/profiling/org.eclipse.linuxtools.profiling.ui/about.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>June 5, 2006</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
+
+</body>
+</html> \ No newline at end of file
diff --git a/profiling/org.eclipse.linuxtools.profiling.ui/build.properties b/profiling/org.eclipse.linuxtools.profiling.ui/build.properties
new file mode 100644
index 0000000000..bc3b0f2bf1
--- /dev/null
+++ b/profiling/org.eclipse.linuxtools.profiling.ui/build.properties
@@ -0,0 +1,7 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ plugin.properties,\
+ about.html
diff --git a/profiling/org.eclipse.linuxtools.profiling.ui/plugin.properties b/profiling/org.eclipse.linuxtools.profiling.ui/plugin.properties
new file mode 100644
index 0000000000..4425714081
--- /dev/null
+++ b/profiling/org.eclipse.linuxtools.profiling.ui/plugin.properties
@@ -0,0 +1,4 @@
+#Properties file for org.eclipse.linuxtools.profiling.ui
+category.name.0 = Profiling
+Bundle-Vendor.0 = Eclipse Linux Tools
+Bundle-Name.0 = Profiling UI Plug-in (Incubation) \ No newline at end of file
diff --git a/profiling/org.eclipse.linuxtools.profiling.ui/plugin.xml b/profiling/org.eclipse.linuxtools.profiling.ui/plugin.xml
new file mode 100644
index 0000000000..89aafb65d2
--- /dev/null
+++ b/profiling/org.eclipse.linuxtools.profiling.ui/plugin.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+<plugin>
+ <extension
+ point="org.eclipse.ui.views">
+ <category
+ id="org.eclipse.linuxtools.profiling.ui"
+ name="%category.name.0">
+ </category>
+ </extension>
+ <extension
+ point="org.eclipse.ui.perspectiveExtensions">
+ <perspectiveExtension
+ targetID="org.eclipse.cdt.ui.CPerspective">
+ <actionSet
+ id="org.eclipse.debug.ui.profileActionSet">
+ </actionSet>
+ </perspectiveExtension>
+ </extension>
+
+</plugin>
diff --git a/profiling/org.eclipse.linuxtools.profiling.ui/src/org/eclipse/linuxtools/internal/profiling/ui/ProfileUIPlugin.java b/profiling/org.eclipse.linuxtools.profiling.ui/src/org/eclipse/linuxtools/internal/profiling/ui/ProfileUIPlugin.java
new file mode 100644
index 0000000000..6e2769ddc0
--- /dev/null
+++ b/profiling/org.eclipse.linuxtools.profiling.ui/src/org/eclipse/linuxtools/internal/profiling/ui/ProfileUIPlugin.java
@@ -0,0 +1,70 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * 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:
+ * Elliott Baron <ebaron@redhat.com> - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.linuxtools.internal.profiling.ui;
+
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class ProfileUIPlugin extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.eclipse.linuxtools.profiling.ui"; //$NON-NLS-1$
+
+ // The shared instance
+ private static ProfileUIPlugin plugin;
+
+ /**
+ * The constructor
+ */
+ public ProfileUIPlugin() {
+ }
+
+ /*
+ * (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 ProfileUIPlugin getDefault() {
+ return plugin;
+ }
+
+ public static Shell getActiveWorkbenchShell() {
+ IWorkbenchWindow window = getDefault().getWorkbench().getActiveWorkbenchWindow();
+ if (window != null) {
+ return window.getShell();
+ }
+ return null;
+ }
+
+}

Back to the top