Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptessier2009-12-09 17:29:15 +0000
committerptessier2009-12-09 17:29:15 +0000
commit69f9f18674ddb52afed0000652d909ea3ea3496c (patch)
treeea39250cd5c98f7c6e751d94061448ccc9935c32 /plugins
parentd6378e097535c53a435ab2a500ec1fe503086ba1 (diff)
downloadorg.eclipse.papyrus-69f9f18674ddb52afed0000652d909ea3ea3496c.tar.gz
org.eclipse.papyrus-69f9f18674ddb52afed0000652d909ea3ea3496c.tar.xz
org.eclipse.papyrus-69f9f18674ddb52afed0000652d909ea3ea3496c.zip
first commit for template repository
Diffstat (limited to 'plugins')
-rw-r--r--plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/.classpath7
-rw-r--r--plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/.project28
-rw-r--r--plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/.settings/org.eclipse.jdt.core.prefs8
-rw-r--r--plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/META-INF/MANIFEST.MF12
-rw-r--r--plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/about.html28
-rw-r--r--plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/build.properties5
-rw-r--r--plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/plugin.properties12
-rw-r--r--plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/plugin.xml18
-rw-r--r--plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/resource/ModelWithBasicTypes.uml6
-rw-r--r--plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/resource/ProfileWithBasicTypes.profile.uml9
-rw-r--r--plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/src/org/eclipse/papyrus/templaterepository/Activator.java50
11 files changed, 183 insertions, 0 deletions
diff --git a/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/.classpath b/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/.classpath
new file mode 100644
index 00000000000..2d1a4302f04
--- /dev/null
+++ b/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/.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/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/.project b/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/.project
new file mode 100644
index 00000000000..2e36122ec61
--- /dev/null
+++ b/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.templaterepository</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/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/.settings/org.eclipse.jdt.core.prefs b/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000000..5f503de29a1
--- /dev/null
+++ b/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,8 @@
+#Wed Dec 09 17:50:52 CET 2009
+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/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/META-INF/MANIFEST.MF b/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/META-INF/MANIFEST.MF
new file mode 100644
index 00000000000..0d75f9f0eb7
--- /dev/null
+++ b/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/META-INF/MANIFEST.MF
@@ -0,0 +1,12 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.eclipse.papyrus.templaterepository;singleton:=true
+Bundle-Version: 0.7.0.vqualifier
+Bundle-Activator: org.eclipse.papyrus.templaterepository.Activator
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.eclipse.papyrus.wizards;bundle-version="0.7.0"
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-Vendor: %providerName
diff --git a/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/about.html b/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/about.html
new file mode 100644
index 00000000000..209103075a7
--- /dev/null
+++ b/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/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/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/build.properties b/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/build.properties
new file mode 100644
index 00000000000..6f20375d6c7
--- /dev/null
+++ b/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/build.properties
@@ -0,0 +1,5 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml
diff --git a/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/plugin.properties b/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/plugin.properties
new file mode 100644
index 00000000000..3edeab94052
--- /dev/null
+++ b/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/plugin.properties
@@ -0,0 +1,12 @@
+#################################################################################
+# Copyright (c) 2008 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=TemplateRepository (Incubation)
+providerName=Eclipse.org
diff --git a/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/plugin.xml b/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/plugin.xml
new file mode 100644
index 00000000000..4425b97be9d
--- /dev/null
+++ b/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/plugin.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.eclipse.papyrus.wizards.templates">
+ <template
+ file="resource/ModelWithBasicTypes.uml"
+ id="org.eclipse.papyrus.templaterepository.ModelWithBasicType"
+ name="A UML model with basic primitive types">
+ </template>
+ <template
+ file="resource/ProfileWithBasicTypes.profile.uml"
+ id="org.eclipse.papyrus.templaterepository.ProfileWithBasicTypes.profile.uml"
+ name="A UML profile with basic primitive types">
+ </template>
+ </extension>
+
+</plugin>
diff --git a/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/resource/ModelWithBasicTypes.uml b/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/resource/ModelWithBasicTypes.uml
new file mode 100644
index 00000000000..daea222ff6f
--- /dev/null
+++ b/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/resource/ModelWithBasicTypes.uml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<uml:Model xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:uml="http://www.eclipse.org/uml2/3.0.0/UML" xmi:id="_xRouMOTjEd6E-IWFQ_MzPA" name="Model">
+ <packageImport xmi:id="_F2B_UOTkEd6E-IWFQ_MzPA">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+</uml:Model>
diff --git a/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/resource/ProfileWithBasicTypes.profile.uml b/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/resource/ProfileWithBasicTypes.profile.uml
new file mode 100644
index 00000000000..77d36c7e0f0
--- /dev/null
+++ b/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/resource/ProfileWithBasicTypes.profile.uml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<uml:Profile xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:uml="http://www.eclipse.org/uml2/3.0.0/UML" xmi:id="_J1ZicOTlEd6E-IWFQ_MzPA" name="Profile" metamodelReference="_Wrz0MOTlEd6E-IWFQ_MzPA">
+ <packageImport xmi:id="_Wrz0MOTlEd6E-IWFQ_MzPA">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_METAMODELS/UML.metamodel.uml#_0"/>
+ </packageImport>
+ <packageImport xmi:id="_cIW8cOTlEd6E-IWFQ_MzPA">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+</uml:Profile>
diff --git a/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/src/org/eclipse/papyrus/templaterepository/Activator.java b/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/src/org/eclipse/papyrus/templaterepository/Activator.java
new file mode 100644
index 00000000000..df32f9b8d73
--- /dev/null
+++ b/plugins/uml/org.eclipse.papyrus.templaterepository/trunk/org.eclipse.papyrus.templaterepository/src/org/eclipse/papyrus/templaterepository/Activator.java
@@ -0,0 +1,50 @@
+package org.eclipse.papyrus.templaterepository;
+
+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.templaterepository";
+
+ // 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