Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/CustomClass.javajet')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/CustomClass.javajet43
1 files changed, 0 insertions, 43 deletions
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/CustomClass.javajet b/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/CustomClass.javajet
deleted file mode 100644
index afd9d391e..000000000
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/CustomClass.javajet
+++ /dev/null
@@ -1,43 +0,0 @@
-<%@ jet package="org.eclipse.gmf.graphdef.codegen.templates" class="CustomClassAttributesGenerator"
- imports="org.eclipse.gmf.gmfgraph.* org.eclipse.emf.codegen.util.CodeGenUtil java.util.* "%>
-<%
-final CustomClass instance = (CustomClass) ((Object[]) argument)[0];
-//final GraphDefDispatcher dispatcher = (GraphDefDispatcher) ((Object[]) argument)[1];
-final String varName = (String) ((Object[]) argument)[2];
-boolean insertingArbitraryCode = false;
-for (Iterator attributes = instance.getAttributes().iterator(); !insertingArbitraryCode && attributes.hasNext();){
- insertingArbitraryCode = ((CustomAttribute)attributes.next()).isMultiStatementValue();
-}
-%>
-<% if (insertingArbitraryCode) {%>
- {
-<% }%>
-<%
-int attrIndex = 0;
-for (Iterator attrs = instance.getAttributes().iterator(); attrs.hasNext(); attrIndex++){
- CustomAttribute next = (CustomAttribute) attrs.next();
- String varValue;
- if (next.isMultiStatementValue()){
- varValue = "attr" + attrIndex;
-%>
- <%=java.text.MessageFormat.format(next.getValue(), new Object[] {varValue})%>;
-<% } else {
- varValue = next.getValue();
-}
- if (next.isDirectAccess()) {
-%>
- <%=varName%>.<%=next.getName()%> = <%=varValue%>;
-<%
- } else {
-%>
- <%=varName%>.set<%=CodeGenUtil.capName(next.getName())%>(<%=varValue%>);
-<%
- }
-%>
-<%
-} //for
-%>
-<% if (insertingArbitraryCode) {%>
- }
-<% }%>
-

Back to the top