Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2014-04-27 04:44:19 -0400
committerAnsgar Radermacher2014-04-27 04:45:03 -0400
commitd5ba9e67bf369bf19be940d2910671363e4dce61 (patch)
tree1bf32b8de4e62d7c1a487eb178ba8c4ad0791ef0 /extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable
parent87baaaa8c423a5f7b405e8aecb3e074918fcc03b (diff)
downloadorg.eclipse.papyrus-d5ba9e67bf369bf19be940d2910671363e4dce61.tar.gz
org.eclipse.papyrus-d5ba9e67bf369bf19be940d2910671363e4dce61.tar.xz
org.eclipse.papyrus-d5ba9e67bf369bf19be940d2910671363e4dce61.zip
Bug 433584 - [EAST-ADL] Switch to new EAST-ADL version 2.1.12
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/.classpath7
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/.project28
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/META-INF/MANIFEST.MF30
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/OSGI-INF/bundle.properties3
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/about.html28
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/build.properties6
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/plugin.properties13
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/plugin.xml12
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/src/org/eclipse/papyrus/eastadl/nattable/Activator.java50
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/src/org/eclipse/papyrus/eastadl/nattable/manager/axis/AllocateAxisManager.java53
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/src/org/eclipse/papyrus/eastadl/nattable/utils/Constants.java14
12 files changed, 251 insertions, 0 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/.classpath b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/.classpath
new file mode 100644
index 00000000000..ad32c83a788
--- /dev/null
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/.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/eastadl/org.eclipse.papyrus.eastadl.nattable/.project b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/.project
new file mode 100644
index 00000000000..a225f167785
--- /dev/null
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.eastadl.nattable</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/eastadl/org.eclipse.papyrus.eastadl.nattable/.settings/org.eclipse.jdt.core.prefs b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000000..f287d53cf45
--- /dev/null
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/.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/eastadl/org.eclipse.papyrus.eastadl.nattable/META-INF/MANIFEST.MF b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/META-INF/MANIFEST.MF
new file mode 100644
index 00000000000..d2342c096c4
--- /dev/null
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/META-INF/MANIFEST.MF
@@ -0,0 +1,30 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.eclipse.papyrus.eastadl.nattable;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.eclipse.papyrus.eastadl.nattable.Activator
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.eclipse.papyrus.eastadl;bundle-version="0.10.0",
+ org.eclipse.papyrus.infra.core.log;bundle-version="0.10.1",
+ org.eclipse.papyrus.infra.nattable;bundle-version="0.10.0",
+ org.eclipse.papyrus.infra.emf.nattable;bundle-version="0.10.0",
+ org.eclipse.nebula.widgets.nattable.core;bundle-version="1.0.0",
+ org.eclipse.uml2.uml;bundle-version="4.1.1",
+ org.eclipse.papyrus.infra.services.labelprovider;bundle-version="0.10.1",
+ org.eclipse.emf.edit;bundle-version="2.9.0",
+ org.eclipse.papyrus.infra.nattable.model;bundle-version="0.10.0",
+ org.eclipse.papyrus.infra.widgets;bundle-version="0.10.1",
+ org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.7.0",
+ org.eclipse.papyrus.infra.services.edit;bundle-version="0.10.1",
+ org.eclipse.papyrus.infra.gmfdiag.commands;bundle-version="0.10.1",
+ org.eclipse.papyrus.infra.tools;bundle-version="0.10.1",
+ org.eclipse.papyrus.infra.emf;bundle-version="0.10.1",
+ org.eclipse.papyrus.eastadl.service.types;bundle-version="1.0.0",
+ org.eclipse.papyrus.uml.nattable;bundle-version="0.10.0",
+ org.eclipse.papyrus.infra.nattable.common;bundle-version="1.0.0"
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-ActivationPolicy: lazy
+Export-Package: org.eclipse.papyrus.eastadl.nattable.manager.axis
+Bundle-Vendor: %providerName
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/OSGI-INF/bundle.properties b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/OSGI-INF/bundle.properties
new file mode 100644
index 00000000000..cf99c792218
--- /dev/null
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/OSGI-INF/bundle.properties
@@ -0,0 +1,3 @@
+#Properties file for org.eclipse.papyrus.eastadl.nattable
+Bundle-Vendor = Eclipse Modeling Project
+Bundle-Name = EAST-ADL Nattable (Incubation) \ No newline at end of file
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/about.html b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/about.html
new file mode 100644
index 00000000000..209103075a7
--- /dev/null
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/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/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/build.properties b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/build.properties
new file mode 100644
index 00000000000..9d19e40311a
--- /dev/null
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/build.properties
@@ -0,0 +1,6 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ OSGI-INF/,\
+ plugin.xml
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/plugin.properties b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/plugin.properties
new file mode 100644
index 00000000000..63f04f45fd3
--- /dev/null
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/plugin.properties
@@ -0,0 +1,13 @@
+#################################################################################
+# Copyright (c) 2010 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:
+# Vincent LORENZO vincent.lorenzo@cea.fr - Initial API and implementation
+##################################################################################
+
+pluginName = Table support East-ADL (Incubation)
+providerName = Eclipse Modeling Project
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/plugin.xml b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/plugin.xml
new file mode 100644
index 00000000000..2251da8d487
--- /dev/null
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/plugin.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.eclipse.papyrus.infra.nattable.axismanager">
+ <axisManager
+ id="org.eclipse.papyrus.eastadl.nattable.axis.manager"
+ manager="org.eclipse.papyrus.eastadl.nattable.manager.axis.AllocateAxisManager">
+ </axisManager>
+ </extension>
+
+</plugin>
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/src/org/eclipse/papyrus/eastadl/nattable/Activator.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/src/org/eclipse/papyrus/eastadl/nattable/Activator.java
new file mode 100644
index 00000000000..2352ef2a156
--- /dev/null
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/src/org/eclipse/papyrus/eastadl/nattable/Activator.java
@@ -0,0 +1,50 @@
+package org.eclipse.papyrus.eastadl.nattable;
+
+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.eastadl.nattable"; //$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;
+ }
+
+}
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/src/org/eclipse/papyrus/eastadl/nattable/manager/axis/AllocateAxisManager.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/src/org/eclipse/papyrus/eastadl/nattable/manager/axis/AllocateAxisManager.java
new file mode 100644
index 00000000000..8e1a20ce726
--- /dev/null
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/src/org/eclipse/papyrus/eastadl/nattable/manager/axis/AllocateAxisManager.java
@@ -0,0 +1,53 @@
+package org.eclipse.papyrus.eastadl.nattable.manager.axis;
+
+import org.eclipse.gmf.runtime.emf.type.core.ISpecializationType;
+import org.eclipse.papyrus.eastadl.service.types.elements.EastadlElementTypes;
+import org.eclipse.papyrus.eastadl.structure.functionmodeling.FunctionAllocation;
+import org.eclipse.papyrus.eastadl.structure.functionmodeling.FunctionmodelingPackage;
+import org.eclipse.papyrus.uml.nattable.manager.axis.AbstractStereotypedElementUMLSynchronizedOnFeatureAxisManager;
+
+import org.eclipse.uml2.uml.Abstraction;
+import org.eclipse.uml2.uml.Element;
+import org.eclipse.uml2.uml.util.UMLUtil;
+
+public class AllocateAxisManager
+ extends
+ AbstractStereotypedElementUMLSynchronizedOnFeatureAxisManager<FunctionAllocation> {
+
+ @Override
+ protected boolean isInstanceOfRequiredStereotypeApplication(Object object) {
+ boolean isInstanceof = (object instanceof FunctionAllocation);
+ return isInstanceof;
+ }
+
+ @Override
+ protected boolean isAllowedAsBaseElement(Element element) {
+ boolean isAllowed = (element instanceof Abstraction);
+ return isAllowed;
+ }
+
+ @Override
+ protected FunctionAllocation getStereotypeApplication(Element element) {
+ FunctionAllocation adlFunctionAllocation = (FunctionAllocation) UMLUtil
+ .getStereotypeApplication(element, FunctionAllocation.class);
+ return adlFunctionAllocation;
+ }
+
+ @Override
+ protected String getStereotypeApplicationBasePropertyName() {
+ String name = FunctionmodelingPackage.eINSTANCE
+ .getFunctionAllocation_Base_Abstraction().getName();
+ return name;
+ }
+
+ public boolean canCreateAxisElement(final String elementId) {
+ return ((ISpecializationType) EastadlElementTypes.FUNCTION_ALLOCATE)
+ .getId().equals(elementId);
+ }
+
+ @Override
+ protected Element getStereotypeBaseElement(
+ final FunctionAllocation stereotypeApplication) {
+ return stereotypeApplication.getBase_Abstraction();
+ }
+}
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/src/org/eclipse/papyrus/eastadl/nattable/utils/Constants.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/src/org/eclipse/papyrus/eastadl/nattable/utils/Constants.java
new file mode 100644
index 00000000000..6e7d10910b4
--- /dev/null
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.nattable/src/org/eclipse/papyrus/eastadl/nattable/utils/Constants.java
@@ -0,0 +1,14 @@
+package org.eclipse.papyrus.eastadl.nattable.utils;
+
+public class Constants {
+
+ private Constants() {
+ //to prevent instanciation
+ }
+
+
+ /**
+ * The qualified name of the property direction
+ */
+ public static final String STEREOTYPE_FLOWPORT_DIRECTION = "EAST-ADL2::Structure::FunctionModeling::FunctionFlowPort::direction";
+}

Back to the top