Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcletavernie2013-05-03 14:00:13 +0000
committercletavernie2013-05-03 14:00:13 +0000
commit03f4887e9796f58c1f58c3b0ba354f3f4c9dde7f (patch)
tree41b092dc8963dca423f42209fa85fc7085958fde /deprecated
parent3857c72d19d6395188ee2ea21ee66a338aa5e1be (diff)
downloadorg.eclipse.papyrus-03f4887e9796f58c1f58c3b0ba354f3f4c9dde7f.tar.gz
org.eclipse.papyrus-03f4887e9796f58c1f58c3b0ba354f3f4c9dde7f.tar.xz
org.eclipse.papyrus-03f4887e9796f58c1f58c3b0ba354f3f4c9dde7f.zip
The *.xtext.generator plug-ins are deprecated. Remove the state.xtext.generator plug-in
Diffstat (limited to 'deprecated')
-rwxr-xr-xdeprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/.classpath8
-rwxr-xr-xdeprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/.project28
-rwxr-xr-xdeprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/.settings/net.sf.jautodoc.prefs7
-rwxr-xr-xdeprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/META-INF/MANIFEST.MF17
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/about.html28
-rwxr-xr-xdeprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/build.properties6
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/plugin.properties12
-rwxr-xr-xdeprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src-gen/.settings/org.eclipse.xtend.shared.ui.prefs3
-rwxr-xr-xdeprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src/.settings/org.eclipse.xtend.shared.ui.prefs3
-rwxr-xr-xdeprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src/model/Example.umlstate6
-rwxr-xr-xdeprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src/templates/Extensions.ext4
-rwxr-xr-xdeprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src/templates/Template.xpt14
-rwxr-xr-xdeprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src/workflow/UmlStateGenerator.mwe233
13 files changed, 169 insertions, 0 deletions
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/.classpath b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/.classpath
new file mode 100755
index 00000000000..e5fbd3dd27a
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/.classpath
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="src-gen"/>
+ <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="output" path="bin"/>
+</classpath>
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/.project b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/.project
new file mode 100755
index 00000000000..41e5de27193
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.uml.textedit.state.xtext.generator</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.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/.settings/net.sf.jautodoc.prefs b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/.settings/net.sf.jautodoc.prefs
new file mode 100755
index 00000000000..3ddaa688a52
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/.settings/net.sf.jautodoc.prefs
@@ -0,0 +1,7 @@
+#Fri Jul 02 16:39:59 CEST 2010
+add_header=true
+eclipse.preferences.version=1
+header_text=/*****************************************************************************\r\n * Copyright (c) 2010 CEA LIST.\r\n *\r\n * \r\n * All rights reserved. This program and the accompanying materials\r\n * are made available under the terms of the Eclipse Public License v1.0\r\n * which accompanies this distribution, and is available at\r\n * http\://www.eclipse.org/legal/epl-v10.html\r\n *\r\n * Contributors\:\r\n * CEA LIST - Initial API and implementation\r\n *\r\n *****************************************************************************/
+project_specific_settings=true
+replace_header=true
+replacements=<?xml version\="1.0" standalone\="yes"?>\n\n<replacements>\n<replacement key\="get" scope\="1" mode\="0">Gets the</replacement>\n<replacement key\="set" scope\="1" mode\="0">Sets the</replacement>\n<replacement key\="add" scope\="1" mode\="0">Adds the</replacement>\n<replacement key\="edit" scope\="1" mode\="0">Edits the</replacement>\n<replacement key\="remove" scope\="1" mode\="0">Removes the</replacement>\n<replacement key\="init" scope\="1" mode\="0">Inits the</replacement>\n<replacement key\="parse" scope\="1" mode\="0">Parses the</replacement>\n<replacement key\="create" scope\="1" mode\="0">Creates the</replacement>\n<replacement key\="build" scope\="1" mode\="0">Builds the</replacement>\n<replacement key\="is" scope\="1" mode\="0">Checks if is</replacement>\n<replacement key\="print" scope\="1" mode\="0">Prints the</replacement>\n<replacement key\="has" scope\="1" mode\="0">Checks for</replacement>\n</replacements>\n\n
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/META-INF/MANIFEST.MF b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/META-INF/MANIFEST.MF
new file mode 100755
index 00000000000..16179ade5dc
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/META-INF/MANIFEST.MF
@@ -0,0 +1,17 @@
+Manifest-Version: 1.0
+Require-Bundle: org.eclipse.papyrus.uml.textedit.state.xtext;bundle-version="0.9.0";visibility:=reexport,
+ org.eclipse.xpand;visibility:=reexport,
+ org.eclipse.xtend;visibility:=reexport,
+ org.eclipse.xtext;visibility:=reexport,
+ org.eclipse.emf.mwe2.launch;resolution:=optional,
+ org.eclipse.emf.mwe.utils;visibility:=reexport,
+ org.eclipse.xtend.typesystem.emf;visibility:=reexport
+Bundle-Vendor: %providerName
+Bundle-ActivationPolicy: lazy
+Bundle-Version: 0.9.0.qualifier
+Bundle-Name: %pluginName
+Bundle-ManifestVersion: 2
+Bundle-SymbolicName: org.eclipse.papyrus.uml.textedit.state.xtext.generator;singleton:=true
+Import-Package: org.apache.log4j
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/about.html b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/about.html
new file mode 100644
index 00000000000..82d49bf5f81
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/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/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/build.properties b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/build.properties
new file mode 100755
index 00000000000..2afcc50ae0c
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/build.properties
@@ -0,0 +1,6 @@
+#
+#Mon Sep 12 09:30:12 CEST 2011
+bin.includes=META-INF/,.,plugin.properties,about.html
+src.includes=about.html,META-INF/,.,plugin.properties
+source..=src/,src-gen/
+bin..=bin/
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/plugin.properties b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/plugin.properties
new file mode 100644
index 00000000000..d0a29431b42
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/plugin.properties
@@ -0,0 +1,12 @@
+#################################################################################
+# 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:
+# Remi Schnekenburger (CEA LIST) remi.schnekenburger@cea.fr - initial API and implementation
+##################################################################################
+pluginName=Papyrus State xtext generator direct editor (Incubation)
+providerName=Eclipse Modeling Project \ No newline at end of file
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src-gen/.settings/org.eclipse.xtend.shared.ui.prefs b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src-gen/.settings/org.eclipse.xtend.shared.ui.prefs
new file mode 100755
index 00000000000..f42d942460d
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src-gen/.settings/org.eclipse.xtend.shared.ui.prefs
@@ -0,0 +1,3 @@
+eclipse.preferences.version=1
+metamodelContributor=org.eclipse.xtend.shared.ui.core.metamodel.jdt.javabean.JavaBeanMetamodelContributor
+project.specific.metamodel=true
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src/.settings/org.eclipse.xtend.shared.ui.prefs b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src/.settings/org.eclipse.xtend.shared.ui.prefs
new file mode 100755
index 00000000000..f42d942460d
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src/.settings/org.eclipse.xtend.shared.ui.prefs
@@ -0,0 +1,3 @@
+eclipse.preferences.version=1
+metamodelContributor=org.eclipse.xtend.shared.ui.core.metamodel.jdt.javabean.JavaBeanMetamodelContributor
+project.specific.metamodel=true
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src/model/Example.umlstate b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src/model/Example.umlstate
new file mode 100755
index 00000000000..39ffa8f3a68
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src/model/Example.umlstate
@@ -0,0 +1,6 @@
+/*
+ * This is an example model
+ */
+Hello world!
+Hello Xtext!
+Hello Eclipse!
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src/templates/Extensions.ext b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src/templates/Extensions.ext
new file mode 100755
index 00000000000..99ae4a2d4a1
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src/templates/Extensions.ext
@@ -0,0 +1,4 @@
+import org::eclipse::papyrus::state::editor::xtext::umlState;
+
+sortedGreetings(Model this) :
+ this.greetings.sortBy(g|g.name.toLowerCase());
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src/templates/Template.xpt b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src/templates/Template.xpt
new file mode 100755
index 00000000000..b76a4cc6e27
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src/templates/Template.xpt
@@ -0,0 +1,14 @@
+«IMPORT org::eclipse::papyrus::state::editor::xtext::umlState»
+
+«EXTENSION templates::Extensions»
+
+«DEFINE main FOR Greeting-»
+«FILE name+".txt"-»
+This is an example of a generated file.
+
+The input element was "Hello «name»!"
+
+All greetings in the same file:
+«FOREACH ((Model)eContainer()).sortedGreetings() AS g SEPARATOR ', '»«g.name»«ENDFOREACH»
+«ENDFILE-»
+«ENDDEFINE»
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src/workflow/UmlStateGenerator.mwe2 b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src/workflow/UmlStateGenerator.mwe2
new file mode 100755
index 00000000000..6362b04358d
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.state.xtext.generator/src/workflow/UmlStateGenerator.mwe2
@@ -0,0 +1,33 @@
+module workflow.UmlStateGenerator
+
+import org.eclipse.emf.mwe.utils.*
+
+var targetDir = "src-gen"
+var fileEncoding = "Cp1252"
+var modelPath = "src/model"
+
+Workflow {
+
+ component = org.eclipse.xtext.mwe.Reader {
+ // lookup all resources on the classpath
+ // useJavaClassPath = true
+
+ // or define search scope explicitly
+ path = modelPath
+
+ // this class will be generated by the xtext generator
+ register = org.eclipse.papyrus.uml.textedit.state.xtext.UmlStateStandaloneSetup {}
+ load = {
+ slot = "greetings"
+ type = "Greeting"
+ }
+ }
+
+ component = org.eclipse.xpand2.Generator {
+ expand = "templates::Template::main FOREACH greetings"
+ outlet = {
+ path = targetDir
+ }
+ fileEncoding = fileEncoding
+ }
+}

Back to the top