Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcletavernie2012-03-22 10:41:30 +0000
committercletavernie2012-03-22 10:41:30 +0000
commitac5c32cde44c66550a94650ffafa39ae1378a43c (patch)
treecc91abcbe7ee5447f1075cf44d22253f4a99144c /deprecated
parent9fd1235dae130533781fed6038c05c0819ba134f (diff)
downloadorg.eclipse.papyrus-ac5c32cde44c66550a94650ffafa39ae1378a43c.tar.gz
org.eclipse.papyrus-ac5c32cde44c66550a94650ffafa39ae1378a43c.tar.xz
org.eclipse.papyrus-ac5c32cde44c66550a94650ffafa39ae1378a43c.zip
Remove deprecated plug-in
Diffstat (limited to 'deprecated')
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/.classpath8
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/.project28
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/.settings/org.eclipse.xtend.shared.ui.prefs3
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/META-INF/MANIFEST.MF18
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/about.html28
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/build.properties6
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/plugin.properties12
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/src/model/Example.umlcollaborationuse6
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/src/templates/Extensions.ext4
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/src/templates/Template.xpt14
-rw-r--r--deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/src/workflow/UmlCollaborationUseGenerator.mwe233
11 files changed, 160 insertions, 0 deletions
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/.classpath b/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/.classpath
new file mode 100644
index 00000000000..e5fbd3dd27a
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.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.collaborationuse.xtext.generator/.project b/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/.project
new file mode 100644
index 00000000000..69377c817d4
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.uml.textedit.collaborationuse.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.collaborationuse.xtext.generator/.settings/org.eclipse.xtend.shared.ui.prefs b/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.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.collaborationuse.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.collaborationuse.xtext.generator/META-INF/MANIFEST.MF b/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/META-INF/MANIFEST.MF
new file mode 100644
index 00000000000..e4050b7d8a3
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/META-INF/MANIFEST.MF
@@ -0,0 +1,18 @@
+Manifest-Version: 1.0
+Require-Bundle: org.eclipse.papyrus.uml.textedit.collaborationuse.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.collaborationuse.xtext.generator;singleton:=true
+Import-Package: org.apache.log4j
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/about.html b/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/about.html
new file mode 100644
index 00000000000..209103075a7
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.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>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/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/build.properties b/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/build.properties
new file mode 100644
index 00000000000..a6f6eb6d887
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/build.properties
@@ -0,0 +1,6 @@
+#
+#Mon Sep 12 09:29:33 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.collaborationuse.xtext.generator/plugin.properties b/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/plugin.properties
new file mode 100644
index 00000000000..68dcff9f827
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.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:
+# Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - initial API and implementation
+##################################################################################
+providerName = Eclipse.org
+pluginName = Papyrus CollaborationUse xtext generator direct editor (Incubation) \ No newline at end of file
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/src/model/Example.umlcollaborationuse b/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/src/model/Example.umlcollaborationuse
new file mode 100644
index 00000000000..39ffa8f3a68
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/src/model/Example.umlcollaborationuse
@@ -0,0 +1,6 @@
+/*
+ * This is an example model
+ */
+Hello world!
+Hello Xtext!
+Hello Eclipse!
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/src/templates/Extensions.ext b/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/src/templates/Extensions.ext
new file mode 100644
index 00000000000..4a4ab4ca94a
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/src/templates/Extensions.ext
@@ -0,0 +1,4 @@
+import org::eclipse::papyrus::collaborationuse::editor::xtext::umlCollaborationUse;
+
+sortedGreetings(Model this) :
+ this.greetings.sortBy(g|g.name.toLowerCase());
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/src/templates/Template.xpt b/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/src/templates/Template.xpt
new file mode 100644
index 00000000000..913fd0f49a4
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/src/templates/Template.xpt
@@ -0,0 +1,14 @@
+«IMPORT org::eclipse::papyrus::collaborationuse::editor::xtext::umlCollaborationUse»
+
+«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.collaborationuse.xtext.generator/src/workflow/UmlCollaborationUseGenerator.mwe2 b/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/src/workflow/UmlCollaborationUseGenerator.mwe2
new file mode 100644
index 00000000000..c934781a9c0
--- /dev/null
+++ b/deprecated/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.generator/src/workflow/UmlCollaborationUseGenerator.mwe2
@@ -0,0 +1,33 @@
+module workflow.UmlCollaborationUseGenerator
+
+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.collaborationuse.xtext.UmlCollaborationUseStandaloneSetup {}
+ 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