diff options
author | cletavernie | 2012-03-22 10:44:47 +0000 |
---|---|---|
committer | cletavernie | 2012-03-22 10:44:47 +0000 |
commit | 326b2f1205e3abadf0898c4f7309c90f61293333 (patch) | |
tree | c7335205d5dd56d14dde2647f9ca94216321cf39 /deprecated | |
parent | 02a210061779a048086a8d31680c5cc0a911af0a (diff) | |
download | org.eclipse.papyrus-326b2f1205e3abadf0898c4f7309c90f61293333.tar.gz org.eclipse.papyrus-326b2f1205e3abadf0898c4f7309c90f61293333.tar.xz org.eclipse.papyrus-326b2f1205e3abadf0898c4f7309c90f61293333.zip |
Remove deprecated plug-in
Diffstat (limited to 'deprecated')
12 files changed, 192 insertions, 0 deletions
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/.classpath b/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/.classpath new file mode 100644 index 00000000000..42c365c0bd4 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.uml.textedit.property.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"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/.project b/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/.project new file mode 100644 index 00000000000..78bc1206519 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.uml.textedit.property.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.property.xtext.generator/.settings/org.eclipse.jdt.core.prefs b/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..0604c7d69ec --- /dev/null +++ b/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,15 @@ +#Tue Jun 29 15:11:53 CEST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.doc.comment.support=enabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadoc=ignore
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=disabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
+org.eclipse.jdt.core.compiler.problem.missingJavadocComments=error
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag
+org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/META-INF/MANIFEST.MF b/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..213ce91dd04 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/META-INF/MANIFEST.MF @@ -0,0 +1,18 @@ +Manifest-Version: 1.0
+Require-Bundle: org.eclipse.papyrus.uml.textedit.property.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.property.xtext.generator;singleton:=true
+Import-Package: org.apache.log4j
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+
diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/about.html b/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/about.html new file mode 100644 index 00000000000..82d49bf5f81 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.uml.textedit.property.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 ("Content"). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 ("EPL"). 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, "Program" 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 ("Redistributor") 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.property.xtext.generator/build.properties b/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/build.properties new file mode 100644 index 00000000000..e7f930726b4 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/build.properties @@ -0,0 +1,6 @@ +#
+#Mon Sep 12 09:30:09 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.property.xtext.generator/plugin.properties b/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/plugin.properties new file mode 100644 index 00000000000..32d424d32ad --- /dev/null +++ b/deprecated/org.eclipse.papyrus.uml.textedit.property.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 Property xtext generator direct editor (Incubation)
+providerName=Eclipse Modeling Project
\ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/src/model/Datatypes.umlproperty b/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/src/model/Datatypes.umlproperty new file mode 100644 index 00000000000..b80a8bfe08b --- /dev/null +++ b/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/src/model/Datatypes.umlproperty @@ -0,0 +1,6 @@ +/* + * This is an example model + */ +namespace datatypes { + type String +} diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/src/model/Person.umlproperty b/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/src/model/Person.umlproperty new file mode 100644 index 00000000000..1993dc61e07 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/src/model/Person.umlproperty @@ -0,0 +1,17 @@ +/* + * This is an example model + */ +namespace entities { + import datatypes.* + + entity Person { + property name: String + property address: Address + } + + entity Address { + property street: String + property zip: String + property city: String + } +} diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/src/templates/Extensions.ext b/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/src/templates/Extensions.ext new file mode 100644 index 00000000000..36efdd46f2f --- /dev/null +++ b/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/src/templates/Extensions.ext @@ -0,0 +1,9 @@ +import umlProperty; + +listSubclasses(Entity this) : + let subclasses = this.eRootContainer.eAllContents.typeSelect(Entity).select(e|e.extends == this).name: + switch (subclasses.size) { + case 0: "no subclasses" + case 1: "subclass: " + subclasses.toString(", ") + default: subclasses.size.toString() + " subclasses: " + subclasses.toString(", ") + }; diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/src/templates/Template.xpt b/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/src/templates/Template.xpt new file mode 100644 index 00000000000..042b3f91097 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/src/templates/Template.xpt @@ -0,0 +1,12 @@ +«IMPORT umlProperty» + +«EXTENSION templates::Extensions» + +«DEFINE main FOR Entity-» +«FILE name+".txt"-» +The entity : «name» contains «properties.size» properties: +«FOREACH this.properties.sortBy(e|e.name) AS e ITERATOR iter-» +«iter.counter1») '«e.name»' of type '«e.type.name»' +«ENDFOREACH-» +«ENDFILE-» +«ENDDEFINE» diff --git a/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/src/workflow/UmlPropertyGenerator.mwe2 b/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/src/workflow/UmlPropertyGenerator.mwe2 new file mode 100644 index 00000000000..f1aa634fb19 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.uml.textedit.property.xtext.generator/src/workflow/UmlPropertyGenerator.mwe2 @@ -0,0 +1,33 @@ +module workflow.UmlPropertyGenerator + +import org.eclipse.emf.mwe.utils.* + +var targetDir = "src-gen" +var fileEncoding = "Cp1252" + +Workflow { + + component = org.eclipse.xtext.mwe.Reader { + // lookup all resources on the classpath + // useJavaClassPath = true + + // or define search scope explicitly + path = "src/model" + + // this class will be generated by the xtext generator + register = org.eclipse.papyrus.uml.textedit.property.xtext.UmlPropertyStandaloneSetup {} + load = { + slot = "model" + type = "Entity" + } + } + + component = org.eclipse.xpand2.Generator { + metaModel = org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel {} + expand = "templates::Template::main FOREACH model" + outlet = { + path = targetDir + } + fileEncoding = fileEncoding + } +} |