Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse JET Guide
Previous Page Home Next Page


Standard JET2 Java Tags


Cause the template contents to be merged with the existing Java file using the EMF JMerge engine.

Tag Summary
required <java:merge/>
full tag <java:merge rules="value" rulesContext="value" facade="value"/>

Optional Attributes
A URL to the JMerge rules file. If the path is relative, then it is relative to the location specified by the rulesContext attribute. If not specified, the default is the JMerge rules used by the EMF Code Generator.
The context for resolving relative 'rules' URLs. Possible values are 'transform' or 'workspace'. If the value is 'transform', then the 'rules' URL is treated as a JET project relative path. If the value is 'workspace', then the 'rules' URL is treated as an Eclipse workspace relative path. The default is 'transform'.
Specify the merge facade class to use. Default is for EMF 2.2 is For EMF 2.3 and later, the default is

... template generating a .java or .properties file ...

<%-- Merge the generated contents with any existing file, using the standard JMerge rules --%>

<%-- Merge using custom JMerge rules --%>
<java:merge rules="myMergeRules.xml" rulesContext="transform"/>

<%-- Explicit use of EMF Codegen merge rules (same as first) --%>
<java:merge rules="platform:/plugin/org.eclipse.emf.codegen.ecore/templates/emf-merge.xml"/>

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire