Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptessier2013-02-05 09:55:06 -0500
committerptessier2013-02-05 09:55:06 -0500
commit294327eaf8166d96aa012648cd106058f1b33926 (patch)
tree9f23f493e823c0cd3e5db101c27b7149502d2d3e
parent5b8ddff2aad1181bf3016f9a0ab133d1a7a58d0c (diff)
downloadorg.eclipse.papyrus-294327eaf8166d96aa012648cd106058f1b33926.tar.gz
org.eclipse.papyrus-294327eaf8166d96aa012648cd106058f1b33926.tar.xz
org.eclipse.papyrus-294327eaf8166d96aa012648cd106058f1b33926.zip
399249: [OCL for Papyrus]The editing pop up for a Constraint in a UML Class Diagram should support editing OCL
https://bugs.eclipse.org/bugs/show_bug.cgi?id=399249
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/.classpath7
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/.project28
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/META-INF/MANIFEST.MF12
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/about.html28
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/build.properties4
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/plugin.properties16
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/src/org/eclipse/papyrus/uml/ocl/recipetest/Activator.java50
8 files changed, 152 insertions, 0 deletions
diff --git a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/.classpath b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/.classpath
new file mode 100644
index 00000000000..2d1a4302f04
--- /dev/null
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/.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/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/.project b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/.project
new file mode 100644
index 00000000000..0d552882b74
--- /dev/null
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.uml.ocl.recipetest</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/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/.settings/org.eclipse.jdt.core.prefs b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000000..44217f8c068
--- /dev/null
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/.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.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/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/META-INF/MANIFEST.MF b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/META-INF/MANIFEST.MF
new file mode 100644
index 00000000000..703e06708aa
--- /dev/null
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/META-INF/MANIFEST.MF
@@ -0,0 +1,12 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.eclipse.papyrus.uml.ocl.recipetest
+Bundle-Version: 0.10.0.qualifier
+Bundle-Activator: org.eclipse.papyrus.uml.ocl.recipetest.Activator
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-ActivationPolicy: lazy
+Bundle-Vendor: %providerName
+Bundle-Localization: plugin
diff --git a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/about.html b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/about.html
new file mode 100644
index 00000000000..82d49bf5f81
--- /dev/null
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/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/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/build.properties b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/build.properties
new file mode 100644
index 00000000000..41eb6ade2b4
--- /dev/null
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/build.properties
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
diff --git a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/plugin.properties b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/plugin.properties
new file mode 100644
index 00000000000..a8b464fd5f4
--- /dev/null
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/plugin.properties
@@ -0,0 +1,16 @@
+####################################################################################
+# Copyright (c) 2012 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:
+# Patrick Tessier (CEA LIST)- Initial API and implementation
+#
+##################################################################################
+pluginName=Papyrus test OCL (Incubation)
+providerName=Eclipse Modeling Project
+
diff --git a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/src/org/eclipse/papyrus/uml/ocl/recipetest/Activator.java b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/src/org/eclipse/papyrus/uml/ocl/recipetest/Activator.java
new file mode 100644
index 00000000000..155f6ec1d9d
--- /dev/null
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.ocl.recipetest/src/org/eclipse/papyrus/uml/ocl/recipetest/Activator.java
@@ -0,0 +1,50 @@
+package org.eclipse.papyrus.uml.ocl.recipetest;
+
+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.ocl.recipetest"; //$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;
+ }
+
+}

Back to the top