Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Le Fevre2017-01-27 14:40:54 +0000
committerGerrit Code Review @ Eclipse.org2017-03-22 08:46:27 +0000
commit1d1b9ad72effe0574fdc68d16307cb591ad6272a (patch)
treeeb706b13d0ca2a649610ce6bbce665e0df1a0b87
parentb09b6325a317ea700f4942cecad7755354f15294 (diff)
downloadorg.eclipse.papyrus-1d1b9ad72effe0574fdc68d16307cb591ad6272a.tar.gz
org.eclipse.papyrus-1d1b9ad72effe0574fdc68d16307cb591ad6272a.tar.xz
org.eclipse.papyrus-1d1b9ad72effe0574fdc68d16307cb591ad6272a.zip
Bug 511190 - [devxp] all migration tools are making contribution under
the root menu -creation of a top developer menu when right clicking to gather all developer plugins menu contribution for popup. Change-Id: Icccebd5114c46ea346e558baad3c0bb281e64721 Signed-off-by: Francois Le Fevre <francois.le-fevre@cea.fr>
-rw-r--r--features/papyrus-dev-features/org.eclipse.papyrus.dev.feature/feature.xml7
-rw-r--r--plugins/developer/org.eclipse.papyrus.dev.ui/.classpath7
-rw-r--r--plugins/developer/org.eclipse.papyrus.dev.ui/.project34
-rw-r--r--plugins/developer/org.eclipse.papyrus.dev.ui/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--plugins/developer/org.eclipse.papyrus.dev.ui/.settings/org.eclipse.m2e.core.prefs4
-rw-r--r--plugins/developer/org.eclipse.papyrus.dev.ui/META-INF/MANIFEST.MF17
-rw-r--r--plugins/developer/org.eclipse.papyrus.dev.ui/about.html28
-rw-r--r--plugins/developer/org.eclipse.papyrus.dev.ui/build.properties7
-rw-r--r--plugins/developer/org.eclipse.papyrus.dev.ui/icons/papyrus/Papyrus_16x16.gifbin0 -> 561 bytes
-rw-r--r--plugins/developer/org.eclipse.papyrus.dev.ui/plugin.properties12
-rw-r--r--plugins/developer/org.eclipse.papyrus.dev.ui/plugin.xml33
-rw-r--r--plugins/developer/org.eclipse.papyrus.dev.ui/pom.xml15
-rw-r--r--plugins/developer/org.eclipse.papyrus.dev.ui/src/main/java/org/eclipse/papyrus/dev/ui/Activator.java80
-rw-r--r--plugins/developer/pom.xml1
14 files changed, 252 insertions, 0 deletions
diff --git a/features/papyrus-dev-features/org.eclipse.papyrus.dev.feature/feature.xml b/features/papyrus-dev-features/org.eclipse.papyrus.dev.feature/feature.xml
index 62095d225a2..7073460c67f 100644
--- a/features/papyrus-dev-features/org.eclipse.papyrus.dev.feature/feature.xml
+++ b/features/papyrus-dev-features/org.eclipse.papyrus.dev.feature/feature.xml
@@ -38,6 +38,13 @@ http://www.eclipse.org/legal/epl-v10.html
install-size="0"
version="0.0.0"
unpack="false"/>
+
+ <plugin
+ id="org.eclipse.papyrus.dev.ui"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
<plugin
id="org.eclipse.papyrus.dev.view.services.edit.request"
diff --git a/plugins/developer/org.eclipse.papyrus.dev.ui/.classpath b/plugins/developer/org.eclipse.papyrus.dev.ui/.classpath
new file mode 100644
index 00000000000..7f457fa4138
--- /dev/null
+++ b/plugins/developer/org.eclipse.papyrus.dev.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.8"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src/main/java"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
diff --git a/plugins/developer/org.eclipse.papyrus.dev.ui/.project b/plugins/developer/org.eclipse.papyrus.dev.ui/.project
new file mode 100644
index 00000000000..358629e1d70
--- /dev/null
+++ b/plugins/developer/org.eclipse.papyrus.dev.ui/.project
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.dev.ui</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.m2e.core.maven2Builder</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.m2e.core.maven2Nature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/plugins/developer/org.eclipse.papyrus.dev.ui/.settings/org.eclipse.jdt.core.prefs b/plugins/developer/org.eclipse.papyrus.dev.ui/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000000..0c68a61dca8
--- /dev/null
+++ b/plugins/developer/org.eclipse.papyrus.dev.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.8
+org.eclipse.jdt.core.compiler.compliance=1.8
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.8
diff --git a/plugins/developer/org.eclipse.papyrus.dev.ui/.settings/org.eclipse.m2e.core.prefs b/plugins/developer/org.eclipse.papyrus.dev.ui/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 00000000000..f897a7f1cb2
--- /dev/null
+++ b/plugins/developer/org.eclipse.papyrus.dev.ui/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/plugins/developer/org.eclipse.papyrus.dev.ui/META-INF/MANIFEST.MF b/plugins/developer/org.eclipse.papyrus.dev.ui/META-INF/MANIFEST.MF
new file mode 100644
index 00000000000..75aeb050fa8
--- /dev/null
+++ b/plugins/developer/org.eclipse.papyrus.dev.ui/META-INF/MANIFEST.MF
@@ -0,0 +1,17 @@
+Manifest-Version: 1.0
+Export-Package: org.eclipse.papyrus.dev.ui
+Bundle-ActivationPolicy: lazy
+Bundle-ClassPath: .
+Bundle-Name: %pluginName
+Bundle-Localization: plugin
+Bundle-RequiredExecutionEnvironment: JavaSE-1.8
+Require-Bundle: org.eclipse.ui;bundle-version="[3.107.0,4.0.0)",
+ org.eclipse.papyrus.infra.core;bundle-version="[2.0.0,3.0.0)"
+Bundle-Vendor: %providerName
+Bundle-Version: 0.0.1.qualifier
+Eclipse-BuddyPolicy: dependent
+Bundle-ManifestVersion: 2
+Bundle-Activator: org.eclipse.papyrus.dev.ui.Activator
+Bundle-Description: Plugin dedicated to manage generic menus and actions,
+ linked to Papyrus Developer.
+Bundle-SymbolicName: org.eclipse.papyrus.dev.ui;singleton:=true
diff --git a/plugins/developer/org.eclipse.papyrus.dev.ui/about.html b/plugins/developer/org.eclipse.papyrus.dev.ui/about.html
new file mode 100644
index 00000000000..dd3c089a94c
--- /dev/null
+++ b/plugins/developer/org.eclipse.papyrus.dev.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>November 14, 2008</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/plugins/developer/org.eclipse.papyrus.dev.ui/build.properties b/plugins/developer/org.eclipse.papyrus.dev.ui/build.properties
new file mode 100644
index 00000000000..92731dbd197
--- /dev/null
+++ b/plugins/developer/org.eclipse.papyrus.dev.ui/build.properties
@@ -0,0 +1,7 @@
+source.. = src/main/java
+output.. = target/classes/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ about.html
+src.includes = about.html
diff --git a/plugins/developer/org.eclipse.papyrus.dev.ui/icons/papyrus/Papyrus_16x16.gif b/plugins/developer/org.eclipse.papyrus.dev.ui/icons/papyrus/Papyrus_16x16.gif
new file mode 100644
index 00000000000..8a31f458379
--- /dev/null
+++ b/plugins/developer/org.eclipse.papyrus.dev.ui/icons/papyrus/Papyrus_16x16.gif
Binary files differ
diff --git a/plugins/developer/org.eclipse.papyrus.dev.ui/plugin.properties b/plugins/developer/org.eclipse.papyrus.dev.ui/plugin.properties
new file mode 100644
index 00000000000..603c425a8e1
--- /dev/null
+++ b/plugins/developer/org.eclipse.papyrus.dev.ui/plugin.properties
@@ -0,0 +1,12 @@
+#################################################################################
+# Copyright (c) 2017 CEA LIST.
+# 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:
+# Francois Le Fevre (CEA LIST) francois.le-fevre@cea.fr - Initial API and implementation
+##################################################################################
+pluginName=Papyrus Dev UI
+providerName=Eclipse Modeling Project
diff --git a/plugins/developer/org.eclipse.papyrus.dev.ui/plugin.xml b/plugins/developer/org.eclipse.papyrus.dev.ui/plugin.xml
new file mode 100644
index 00000000000..3f9ff2ba32a
--- /dev/null
+++ b/plugins/developer/org.eclipse.papyrus.dev.ui/plugin.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.eclipse.ui.menus">
+ <menuContribution
+ allPopups="false"
+ locationURI="popup:org.eclipse.ui.popup.any">
+ <separator
+ name="org.eclipse.papyrus.dev.ui.menu.separator.before"
+ visible="true"
+ id="org.eclipse.papyrus.dev.ui.menu.separator.before">
+ </separator>
+ <menu
+ id="org.eclipse.papyrus.dev.ui.menu"
+ label="Papyrus Developer"
+ icon="platform:/plugin/org.eclipse.papyrus.dev.ui/icons/papyrus/Papyrus_16x16.gif"
+ tooltip="Papyrus Developer Menu">
+ <command
+ commandId="org.eclipse.papyrus.dev.ui.commands"
+ label="Upcoming elts for Developer..."
+ style="push"
+ tooltip="Upcoming elements for Developer...">
+ </command>
+ <separator
+ name="org.eclipse.papyrus.dev.ui.menu.separator.after"
+ visible="true"
+ id="org.eclipse.papyrus.dev.ui.menu.separator.after">
+ </separator>
+ </menu>
+ </menuContribution>
+ </extension>
+</plugin>
diff --git a/plugins/developer/org.eclipse.papyrus.dev.ui/pom.xml b/plugins/developer/org.eclipse.papyrus.dev.ui/pom.xml
new file mode 100644
index 00000000000..b6811d5498c
--- /dev/null
+++ b/plugins/developer/org.eclipse.papyrus.dev.ui/pom.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.eclipse.papyrus</groupId>
+ <artifactId>org.eclipse.papyrus.developer</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </parent>
+ <groupId>org.eclipse.papyrus.developer</groupId>
+ <artifactId>org.eclipse.papyrus.dev.ui</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+ <description>A plugin to hold the menu for developer tools.</description>
+</project>
diff --git a/plugins/developer/org.eclipse.papyrus.dev.ui/src/main/java/org/eclipse/papyrus/dev/ui/Activator.java b/plugins/developer/org.eclipse.papyrus.dev.ui/src/main/java/org/eclipse/papyrus/dev/ui/Activator.java
new file mode 100644
index 00000000000..b5b9aaf5148
--- /dev/null
+++ b/plugins/developer/org.eclipse.papyrus.dev.ui/src/main/java/org/eclipse/papyrus/dev/ui/Activator.java
@@ -0,0 +1,80 @@
+/*****************************************************************************
+ * Copyright (c) 2017 CEA LIST 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:
+ * Francois Le Fevre (CEA LIST) francois.le-fevre@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+
+package org.eclipse.papyrus.dev.ui;
+
+import org.eclipse.papyrus.infra.core.log.LogHelper;
+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.eclipse.papyrus.dev.ui"; //$NON-NLS-1$
+
+ /**
+ * The shared instance.
+ */
+ private static Activator plugin;
+
+ /**
+ * The log helper.
+ */
+ public static LogHelper log;
+
+ /**
+ * Returns the shared instance.
+ *
+ * @return The shared instance.
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+ /**
+ * The constructor.
+ */
+ public Activator() {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ @Override
+ public void start(final BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ log = new LogHelper(this);
+ }
+
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ @Override
+ public void stop(final BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+}
diff --git a/plugins/developer/pom.xml b/plugins/developer/pom.xml
index 539394687f3..5dc1a204117 100644
--- a/plugins/developer/pom.xml
+++ b/plugins/developer/pom.xml
@@ -24,6 +24,7 @@
<module>org.eclipse.papyrus.dev.tests.framework</module>
<module>org.eclipse.papyrus.dev.tests.framework.ui</module>
<module>org.eclipse.papyrus.dev.types</module>
+ <module>org.eclipse.papyrus.dev.ui</module>
<module>org.eclipse.papyrus.dev.view.services.edit.request</module>
<module>org.eclipse.papyrus.developer.profile</module>
<module>org.eclipse.papyrus.gmf.editpartview</module>

Back to the top