Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Schuetz2013-06-18 22:36:16 +0000
committerThomas Schuetz2013-06-18 22:36:16 +0000
commitb9bf0826e37b956fbd2ba175b90c8ae785cf54df (patch)
tree4e5d20d295dcccbba75e3614a654c167ec160f40 /plugins/org.eclipse.etrice.core.etmap.ui
parentd8e8e581557c6b5af76d241d3a3b6b5ba0151c94 (diff)
downloadorg.eclipse.etrice-b9bf0826e37b956fbd2ba175b90c8ae785cf54df.tar.gz
org.eclipse.etrice-b9bf0826e37b956fbd2ba175b90c8ae785cf54df.tar.xz
org.eclipse.etrice-b9bf0826e37b956fbd2ba175b90c8ae785cf54df.zip
[core.etmap.ui] added code first template for etmap
Diffstat (limited to 'plugins/org.eclipse.etrice.core.etmap.ui')
-rw-r--r--plugins/org.eclipse.etrice.core.etmap.ui/templates/readme.txt5
-rw-r--r--plugins/org.eclipse.etrice.core.etmap.ui/templates/templates.xml18
2 files changed, 23 insertions, 0 deletions
diff --git a/plugins/org.eclipse.etrice.core.etmap.ui/templates/readme.txt b/plugins/org.eclipse.etrice.core.etmap.ui/templates/readme.txt
new file mode 100644
index 000000000..b31c7b9a0
--- /dev/null
+++ b/plugins/org.eclipse.etrice.core.etmap.ui/templates/readme.txt
@@ -0,0 +1,5 @@
+http://www.eclipse.org/Xtext/documentation/latest/xtext.html#templates
+
+However, these templates will not be visible by default. To fix it, you have to manually edit the xml-file and insert an ID attribute for each template element.
+
+Use Ctrl-Shift-F to format the exported template file.
diff --git a/plugins/org.eclipse.etrice.core.etmap.ui/templates/templates.xml b/plugins/org.eclipse.etrice.core.etmap.ui/templates/templates.xml
new file mode 100644
index 000000000..072aec2d5
--- /dev/null
+++ b/plugins/org.eclipse.etrice.core.etmap.ui/templates/templates.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<templates>
+
+ <template autoinsert="true" context="org.eclipse.etrice.core.etmap.ETMap.MappingModel"
+ deleted="false" description="model skeleton" enabled="true" id="mapping_model"
+ name="MappingModel">MappingModel ${MappingModel1} {&#13;
+ import ${RoomModel1}.* from "${RoomModelFile1}.room"
+ import ${PhysicalModel1}.* from "${PhysicalModelFile1}.etphys"
+ Mapping ${LogSys1} -> ${PhysSys1} {
+ SubSystemMapping ${SubSysRef1} -> ${nodeRef1} {
+ ThreadMapping defaultThread -> ${PhysicalThread1}
+ }
+ }
+ ${cursor}
+}&#13;</template>
+
+
+</templates> \ No newline at end of file

Back to the top