Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen/templates/new/MarginBorder.javajet')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/new/MarginBorder.javajet24
1 files changed, 0 insertions, 24 deletions
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/new/MarginBorder.javajet b/plugins/org.eclipse.gmf.graphdef.codegen/templates/new/MarginBorder.javajet
deleted file mode 100644
index 30a8c2a76..000000000
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/new/MarginBorder.javajet
+++ /dev/null
@@ -1,24 +0,0 @@
-<%@ jet package="org.eclipse.gmf.graphdef.codegen.templates" class="NewMarginBorderExpressionGenerator"
- imports="org.eclipse.gmf.gmfgraph.* org.eclipse.gmf.graphdef.codegen.* org.eclipse.gmf.common.codegen.ImportAssistant"%>
-<%
-Object[] args = (Object[]) argument;
-final MarginBorder border = (MarginBorder)args[0];
-final GraphDefDispatcher dispatcher = (GraphDefDispatcher)args[1];
-final ImportAssistant importManager = dispatcher.getImportManager();
-
-//Produces EXPRESSION instead of statement
-%>
-<%
- int top = 0;
- int left = 0;
- int bottom = 0;
- int right = 0;
- if (border.eIsSet(GMFGraphPackage.eINSTANCE.getMarginBorder_Insets())){
- Insets insets = border.getInsets();
- top = insets.getTop();
- left = insets.getLeft();
- bottom = insets.getBottom();
- right = insets.getRight();
- }
-%>
-new <%=importManager.getImportedName("org.eclipse.draw2d.MarginBorder")%>(<%=dispatcher.DPtoLP(top)%>, <%=dispatcher.DPtoLP(left)%>, <%=dispatcher.DPtoLP(bottom)%>, <%=dispatcher.DPtoLP(right)%>)

Back to the top