Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcletavernie2012-03-22 10:44:17 +0000
committercletavernie2012-03-22 10:44:17 +0000
commit02a210061779a048086a8d31680c5cc0a911af0a (patch)
treef8a95216871b04fd9777b7eac93ae697024da2eb /deprecated
parent1f52225086ecc18c65dffb499ba6462c23a0df0d (diff)
downloadorg.eclipse.papyrus-02a210061779a048086a8d31680c5cc0a911af0a.tar.gz
org.eclipse.papyrus-02a210061779a048086a8d31680c5cc0a911af0a.tar.xz
org.eclipse.papyrus-02a210061779a048086a8d31680c5cc0a911af0a.zip
Remove deprecated plug-in
Diffstat (limited to 'deprecated')
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/.classpath8
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/.project28
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/.settings/org.eclipse.xtend.shared.ui.prefs3
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/META-INF/MANIFEST.MF18
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/about.html28
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/build.properties6
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/plugin.properties3
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/src/model/Example.umlparameter6
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/src/templates/Extensions.ext4
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/src/templates/Template.xpt14
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/src/workflow/UmlParameterGenerator.mwe233
11 files changed, 151 insertions, 0 deletions
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/.classpath b/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/.classpath
new file mode 100644
index 00000000000..e5fbd3dd27a
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.parameter.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.parameter.xtext.generator/.project b/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/.project
new file mode 100644
index 00000000000..a8310fb4445
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.uml.textedit.parameter.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.parameter.xtext.generator/.settings/org.eclipse.xtend.shared.ui.prefs b/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/.settings/org.eclipse.xtend.shared.ui.prefs
new file mode 100644
index 00000000000..f42d942460d
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/.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.parameter.xtext.generator/META-INF/MANIFEST.MF b/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/META-INF/MANIFEST.MF
new file mode 100644
index 00000000000..a2ef8e5cb9b
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/META-INF/MANIFEST.MF
@@ -0,0 +1,18 @@
+Manifest-Version: 1.0
+Require-Bundle: org.eclipse.papyrus.uml.textedit.parameter.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-Localization: plugin
+Bundle-ManifestVersion: 2
+Bundle-SymbolicName: org.eclipse.papyrus.uml.textedit.parameter.xtext.generator;singleton:=true
+Import-Package: org.apache.log4j
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/about.html b/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/about.html
new file mode 100644
index 00000000000..82d49bf5f81
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.parameter.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.parameter.xtext.generator/build.properties b/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/build.properties
new file mode 100644
index 00000000000..9a739db9a32
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/build.properties
@@ -0,0 +1,6 @@
+#
+#Mon Sep 12 09:30:01 CEST 2011
+bin.includes=META-INF/,.,plugin.xml,plugin.properties,about.html
+src.includes=META-INF/,.,plugin.xml,plugin.properties,about.html
+source..=src/,src-gen/
+bin..=bin/
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/plugin.properties b/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/plugin.properties
new file mode 100644
index 00000000000..efa04e81dc9
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/plugin.properties
@@ -0,0 +1,3 @@
+#Properties file for org.eclipse.papyrus.uml.textedit.parameter.xtext.generator
+providerName = Eclipse.org
+pluginName = Papyrus Parameter xtext generator direct editor (Incubation) \ No newline at end of file
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/src/model/Example.umlparameter b/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/src/model/Example.umlparameter
new file mode 100644
index 00000000000..39ffa8f3a68
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/src/model/Example.umlparameter
@@ -0,0 +1,6 @@
+/*
+ * This is an example model
+ */
+Hello world!
+Hello Xtext!
+Hello Eclipse!
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/src/templates/Extensions.ext b/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/src/templates/Extensions.ext
new file mode 100644
index 00000000000..0cc1a456e6c
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/src/templates/Extensions.ext
@@ -0,0 +1,4 @@
+import org::eclipse::papyrus::parameter::editor::xtext::umlParameter;
+
+sortedGreetings(Model this) :
+ this.greetings.sortBy(g|g.name.toLowerCase());
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/src/templates/Template.xpt b/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/src/templates/Template.xpt
new file mode 100644
index 00000000000..77ada1a8966
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/src/templates/Template.xpt
@@ -0,0 +1,14 @@
+«IMPORT org::eclipse::papyrus::parameter::editor::xtext::umlParameter»
+
+«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.parameter.xtext.generator/src/workflow/UmlParameterGenerator.mwe2 b/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/src/workflow/UmlParameterGenerator.mwe2
new file mode 100644
index 00000000000..bea194f1def
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.parameter.xtext.generator/src/workflow/UmlParameterGenerator.mwe2
@@ -0,0 +1,33 @@
+module workflow.UmlParameterGenerator
+
+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.parameter.xtext.UmlParameterStandaloneSetup {}
+ 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