Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen/templates/new/LineBorder.javajet')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/new/LineBorder.javajet35
1 files changed, 0 insertions, 35 deletions
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/new/LineBorder.javajet b/plugins/org.eclipse.gmf.graphdef.codegen/templates/new/LineBorder.javajet
deleted file mode 100644
index 35824e222..000000000
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/new/LineBorder.javajet
+++ /dev/null
@@ -1,35 +0,0 @@
-<%@ jet package="org.eclipse.gmf.graphdef.codegen.templates" class="NewLineBorderExpressionGenerator"
- imports="org.eclipse.gmf.gmfgraph.* org.eclipse.gmf.graphdef.codegen.* org.eclipse.gmf.common.codegen.ImportAssistant"%>
-<%
-Object[] args = (Object[]) argument;
-final LineBorder border = (LineBorder)args[0];
-final GraphDefDispatcher dispatcher = (GraphDefDispatcher)args[1];
-final ImportAssistant importManager = dispatcher.getImportManager();
-
-//We do not want to insert any names into the scope.
-//We want to provide EXPRESSION instead of statement
-%>
-<%
- String borderClazz = importManager.getImportedName("org.eclipse.draw2d.LineBorder");
- boolean hasColor = border.eIsSet(GMFGraphPackage.eINSTANCE.getLineBorder_Color());
- boolean hasWidth = border.eIsSet(GMFGraphPackage.eINSTANCE.getLineBorder_Width());
- Color colorVal = (hasColor) ? border.getColor() : null;
- String colorName = (hasColor) ? "BORDER" : null;
- if (hasColor && hasWidth){
-%>
-new <%=borderClazz%>(<%@ include file="../Color.jetinc"%>, <%=dispatcher.DPtoLP(border.getWidth())%>)
-<%
- } else if (hasColor && !hasWidth) {
-%>
-new <%=borderClazz%>(<%@ include file="../Color.jetinc"%>)
-<%
- } else if (!hasColor && hasWidth){
-%>
-new <%=borderClazz%>(<%=dispatcher.DPtoLP(border.getWidth())%>)
-<%
- } else {
-%>
-new <%=borderClazz%>()
-<%
- }
-%>

Back to the top