Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoit Maggi2015-02-02 13:22:20 +0000
committerBenoit Maggi2015-02-02 13:22:20 +0000
commit08a0ddec7483cc21440b89814d3985639947195f (patch)
treed246ef10085e79c9e82b1ebb9e8f60d08a288979 /extraplugins/papyrus4education
parent82ab66374216a07e89b60be7d4b23923a01aebc7 (diff)
downloadorg.eclipse.papyrus-08a0ddec7483cc21440b89814d3985639947195f.tar.gz
org.eclipse.papyrus-08a0ddec7483cc21440b89814d3985639947195f.tar.xz
org.eclipse.papyrus-08a0ddec7483cc21440b89814d3985639947195f.zip
Bug 458949 - [Papyrus4Education] Papyrus should provide tooling to help
for education - first version of initial and basic viewpoints Change-Id: I0021f8dc768a33f73b7e87c782ebe70596ccdd20 Signed-off-by: Benoit Maggi <benoit.maggi@cea.fr>
Diffstat (limited to 'extraplugins/papyrus4education')
-rw-r--r--extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/.classpath7
-rw-r--r--extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/.project28
-rw-r--r--extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/META-INF/MANIFEST.MF20
-rw-r--r--extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/about.html28
-rw-r--r--extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/build.properties7
-rw-r--r--extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/plugin.xml11
-rw-r--r--extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/pom.xml14
-rw-r--r--extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/resources/configuration/EducationUML.configuration34
-rw-r--r--extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/src/org/eclipse/papyrus/uml/diagram/education/Activator.java73
10 files changed, 229 insertions, 0 deletions
diff --git a/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/.classpath b/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/.classpath
new file mode 100644
index 00000000000..ad32c83a788
--- /dev/null
+++ b/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/.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>
diff --git a/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/.project b/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/.project
new file mode 100644
index 00000000000..b234accea42
--- /dev/null
+++ b/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.uml.diagram.education</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>
diff --git a/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/.settings/org.eclipse.jdt.core.prefs b/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000000..c537b63063c
--- /dev/null
+++ b/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/.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
diff --git a/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/META-INF/MANIFEST.MF b/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/META-INF/MANIFEST.MF
new file mode 100644
index 00000000000..80f8aeb4835
--- /dev/null
+++ b/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/META-INF/MANIFEST.MF
@@ -0,0 +1,20 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Education Configuration for Papyrus
+Bundle-SymbolicName: org.eclipse.papyrus.uml.diagram.education;singleton:=true
+Bundle-Version: 1.1.0.qualifier
+Bundle-Activator: org.eclipse.papyrus.uml.diagram.education.Activator
+Bundle-Vendor: Eclipse Modeling Project
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.eclipse.papyrus.infra.viewpoints.policy;bundle-version="1.1.0",
+ org.eclipse.papyrus.infra.newchild;bundle-version="1.1.0",
+ org.eclipse.papyrus.views.properties;bundle-version="1.1.0",
+ org.eclipse.uml2.uml,
+ org.eclipse.papyrus.infra.core;bundle-version="1.1.0",
+ org.eclipse.emf.ecore.editor,
+ org.eclipse.papyrus.infra.onefile;bundle-version="1.1.0",
+ com.google.guava;bundle-version="11.0.0",
+ org.eclipse.papyrus.infra.emf;bundle-version="1.1.0"
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-ActivationPolicy: lazy
diff --git a/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/about.html b/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/about.html
new file mode 100644
index 00000000000..d35d5aed64c
--- /dev/null
+++ b/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/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, 2007</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>
diff --git a/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/build.properties b/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/build.properties
new file mode 100644
index 00000000000..90aaca604a4
--- /dev/null
+++ b/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/build.properties
@@ -0,0 +1,7 @@
+source.. = src/
+output.. = bin/
+bin.includes = plugin.xml,\
+ META-INF/,\
+ .,\
+ about.html,\
+ resources/
diff --git a/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/plugin.xml b/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/plugin.xml
new file mode 100644
index 00000000000..f995ff4cdba
--- /dev/null
+++ b/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/plugin.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.eclipse.papyrus.infra.viewpoints.policy.custom">
+ <configuration
+ file="resources/configuration/EducationUML.configuration"
+ priority="30">
+ </configuration>
+ </extension>
+</plugin>
diff --git a/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/pom.xml b/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/pom.xml
new file mode 100644
index 00000000000..db5a77acb4b
--- /dev/null
+++ b/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/pom.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>org.eclipse.papyrus</artifactId>
+ <groupId>org.eclipse.papyrus</groupId>
+ <version>1.1.0-SNAPSHOT</version>
+ <relativePath>../../../releng/top-pom-extras.xml</relativePath>
+ </parent>
+ <groupId>org.eclipse.papyrus</groupId>
+ <artifactId>org.eclipse.papyrus.uml.diagram.education</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+</project> \ No newline at end of file
diff --git a/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/resources/configuration/EducationUML.configuration b/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/resources/configuration/EducationUML.configuration
new file mode 100644
index 00000000000..93868e661e5
--- /dev/null
+++ b/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/resources/configuration/EducationUML.configuration
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration:PapyrusConfiguration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:configuration="http://www.eclipse.org/papyrus/infra/viewpoints/configuration" xmi:id="_oa8yUBP7EeSS0oyATXohNA" defaultStakeholder="_dBfdEKCgEeSNKqx5mKuydQ">
+ <stakeholders xmi:id="_dBfdEKCgEeSNKqx5mKuydQ" name="Student" viewpoints="_WwNWIKCpEeSNKqx5mKuydQ _3T-cEBP7EeSS0oyATXohNA"/>
+ <viewpoints xsi:type="configuration:PapyrusViewpoint" xmi:id="_3T-cEBP7EeSS0oyATXohNA" name="Basics Education UML Viewpoint">
+ <modelKinds xsi:type="configuration:PapyrusDiagram" xmi:id="_75O3MKCpEeSNKqx5mKuydQ" name="Basic UML UseCase Diagram" icon="platform:/plugin/org.eclipse.papyrus.uml.diagram.usecase/icons/obj16/Diagram_UseCase.gif" implementationID="UseCase">
+ <modelRules xmi:id="_3VnsoKCqEeSNKqx5mKuydQ">
+ <element href="http://www.eclipse.org/uml2/5.0.0/UML#//Package"/>
+ </modelRules>
+ <owningRules xmi:id="_5QwjoKCqEeSNKqx5mKuydQ">
+ <element href="http://www.eclipse.org/uml2/5.0.0/UML#//Package"/>
+ </owningRules>
+ <childRules xmi:id="_6x-ewKCqEeSNKqx5mKuydQ"/>
+ <paletteRules xmi:id="_57UuIKCrEeSNKqx5mKuydQ" element="usecase.tool.include"/>
+ <paletteRules xmi:id="_jImkQKCrEeSNKqx5mKuydQ" element="usecase.tool.extend"/>
+ <paletteRules xmi:id="_RFCbsKCsEeSNKqx5mKuydQ" element="usecase.tool.actor"/>
+ <paletteRules xmi:id="_Z02rgKCsEeSNKqx5mKuydQ" element="usecase.tool.usecase"/>
+ <paletteRules xmi:id="_5a_BMKCrEeSNKqx5mKuydQ" permit="false" element="usecase.tool.*"/>
+ </modelKinds>
+ </viewpoints>
+ <viewpoints xsi:type="configuration:PapyrusViewpoint" xmi:id="_WwNWIKCpEeSNKqx5mKuydQ" name="Initial Education UML Viewpoint">
+ <modelKinds xsi:type="configuration:PapyrusDiagram" xmi:id="_d-6jEKCqEeSNKqx5mKuydQ" name="Initial UML UseCase Diagram" icon="platform:/plugin/org.eclipse.papyrus.uml.diagram.usecase/icons/obj16/Diagram_UseCase.gif" parent="_75O3MKCpEeSNKqx5mKuydQ" implementationID="UseCase" customStyle="">
+ <modelRules xmi:id="_qAsA8KCsEeSNKqx5mKuydQ">
+ <element href="http://www.eclipse.org/uml2/5.0.0/UML#//Package"/>
+ </modelRules>
+ <owningRules xmi:id="_qAsA8aCsEeSNKqx5mKuydQ">
+ <element href="http://www.eclipse.org/uml2/5.0.0/UML#//Package"/>
+ </owningRules>
+ <childRules xmi:id="_qAsA8qCsEeSNKqx5mKuydQ"/>
+ <paletteRules xmi:id="_qAsA96CsEeSNKqx5mKuydQ" permit="false" element="usecase.tool.extend"/>
+ </modelKinds>
+ </viewpoints>
+ <metamodel href="http://www.eclipse.org/uml2/5.0.0/UML#/"/>
+ <categories xmi:id="_vUL7ABP7EeSS0oyATXohNA" name="uml"/>
+</configuration:PapyrusConfiguration>
diff --git a/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/src/org/eclipse/papyrus/uml/diagram/education/Activator.java b/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/src/org/eclipse/papyrus/uml/diagram/education/Activator.java
new file mode 100644
index 00000000000..f6da2dbc7cf
--- /dev/null
+++ b/extraplugins/papyrus4education/org.eclipse.papyrus.uml.diagram.education/src/org/eclipse/papyrus/uml/diagram/education/Activator.java
@@ -0,0 +1,73 @@
+/*****************************************************************************
+ * Copyright (c) 2015 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:
+ * Benoit Maggi benoit.maggi@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.diagram.education;
+
+import org.eclipse.jface.resource.ImageDescriptor;
+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.uml.diagram.education"; //$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;
+ }
+
+ /**
+ * Returns an image descriptor for the image file at the given
+ * plug-in relative path
+ *
+ * @param path the path
+ * @return the image descriptor
+ */
+ public static ImageDescriptor getImageDescriptor(String path) {
+ return imageDescriptorFromPlugin(PLUGIN_ID, path);
+ }
+}

Back to the top