Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashatalin2009-03-16 18:50:49 +0000
committerashatalin2009-03-16 18:50:49 +0000
commit98dea06fc7837abfea09e3169ea1ca7cf36e4bba (patch)
tree4b8ffdb3783f48cb9a24bb28ec20f3d3efe6f8de /plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin
parenta3fab101e402c7fb998eb4731f291d1df3541161 (diff)
downloadorg.eclipse.gmf-tooling-98dea06fc7837abfea09e3169ea1ca7cf36e4bba.tar.gz
org.eclipse.gmf-tooling-98dea06fc7837abfea09e3169ea1ca7cf36e4bba.tar.xz
org.eclipse.gmf-tooling-98dea06fc7837abfea09e3169ea1ca7cf36e4bba.zip
All migrated templates were moved to the original folders (/templates).
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin/Activator.xpt69
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin/BuildProperties.xpt18
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin/Manifest.xpt44
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin/PluginProperties.xpt16
4 files changed, 147 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin/Activator.xpt b/plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin/Activator.xpt
new file mode 100644
index 000000000..2455b286f
--- /dev/null
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin/Activator.xpt
@@ -0,0 +1,69 @@
+/*
+ * Copyright (c) 2006 Borland Software Corporation
+ *
+ * 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:
+ * Artem Tikhomirov (Borland) - initial API and implementation
+ */
+«IMPORT 'http://www.eclipse.org/emf/2002/Ecore'»
+
+«DEFINE Init(packageName : String, pluginActivatorClassName : String, pluginID : String) FOR Collection(OclAny)-»
+«EXPAND Init(packageName, pluginActivatorClassName, pluginID) FOR ''-»
+«ENDDEFINE»
+
+«DEFINE Init(packageName : String, pluginActivatorClassName : String, pluginID : String) FOR OclAny-»
+package «packageName»;
+
+/**
+ * @generated
+ */
+public class «pluginActivatorClassName» extends org.eclipse.core.runtime.Plugin {
+
+ /**
+ * @generated
+ */
+ public static final String ID = "«pluginID»"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private static «pluginActivatorClassName» ourInstance;
+
+ /**
+ * @generated
+ */
+ public «pluginActivatorClassName»() {
+ }
+
+ /**
+ * @generated
+ */
+ public void start(org.osgi.framework.BundleContext context) throws Exception {
+ super.start(context);
+ ourInstance = this;
+ }
+
+ /**
+ * @generated
+ */
+ public void stop(org.osgi.framework.BundleContext context) throws Exception {
+ ourInstance = null;
+ super.stop(context);
+ }
+
+ /**
+ * @generated
+ */
+ public static «pluginActivatorClassName» getDefault() {
+ return ourInstance;
+ }
+«EXPAND MapMode::Activator-»
+«EXPAND additions-»
+}
+«ENDDEFINE»
+
+«DEFINE additions FOR OclAny»«ENDDEFINE» \ No newline at end of file
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin/BuildProperties.xpt b/plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin/BuildProperties.xpt
new file mode 100644
index 000000000..ee6d03784
--- /dev/null
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin/BuildProperties.xpt
@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2006 Borland Software Corporation
+ *
+ * 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:
+ * Artem Tikhomirov (Borland) - initial API and implementation
+ */
+
+«DEFINE Init FOR OclAny-»
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+«ENDDEFINE» \ No newline at end of file
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin/Manifest.xpt b/plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin/Manifest.xpt
new file mode 100644
index 000000000..dcbeeb8d1
--- /dev/null
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin/Manifest.xpt
@@ -0,0 +1,44 @@
+/*
+ * Copyright (c) 2006, 2007 Borland Software Corporation
+ *
+ * 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:
+ * Artem Tikhomirov (Borland) - initial API and implementation
+ */
+«EXTENSION Util»
+
+/*
+ * FIXME add a simple model (either non-generated, .ecore only?) to descripbe GenConfig
+ */
+
+«DEFINE Init(pluginID : String, pluginActivatorQualifiedName : String, exportedPackages : Sequence(String), referencedBundles : Sequence(String)) FOR OclAny-»
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: «pluginID»; singleton:=true
+Bundle-Version: 1.0.0
+Bundle-Vendor: %providerName
+Bundle-Activator: «pluginActivatorQualifiedName»
+Bundle-Localization: plugin
+Export-Package:«EXPAND exportPackageHeader FOR exportedPackages»
+Require-Bundle:«EXPAND requireBundleHeader FOR requiredBundles(referencedBundles)»
+Eclipse-LazyStart: true
+«EXPAND additions-»
+«ENDDEFINE»
+
+«DEFINE exportPackageHeader FOR Sequence(String)-»
+«EXPAND print FOREACH self SEPARATOR ',\n'-»
+«ENDDEFINE»
+
+«REM»FIXME Set[String] - improve union recognition«ENDREM»
+«DEFINE requireBundleHeader FOR Collection(OclAny)-»
+«EXPAND print FOREACH (self->collect(it | it))[String]->asSequence() SEPARATOR ',\n'-»
+«ENDDEFINE»
+
+«DEFINE print FOR String» «self»«ENDDEFINE»
+
+«DEFINE additions FOR OclAny»«ENDDEFINE» \ No newline at end of file
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin/PluginProperties.xpt b/plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin/PluginProperties.xpt
new file mode 100644
index 000000000..2e3ee1d45
--- /dev/null
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/plugin/PluginProperties.xpt
@@ -0,0 +1,16 @@
+/*
+ * Copyright (c) 2006 Borland Software Corporation
+ *
+ * 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:
+ * Artem Tikhomirov (Borland) - initial API and implementation
+ */
+
+«DEFINE Init(pluginName : String, providerName : String) FOR OclAny-»
+pluginName = «pluginName»
+providerName = «providerName»
+«ENDDEFINE» \ No newline at end of file

Back to the top