Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen/templates/layoutData/BorderLayoutData.javajet')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/layoutData/BorderLayoutData.javajet39
1 files changed, 0 insertions, 39 deletions
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/layoutData/BorderLayoutData.javajet b/plugins/org.eclipse.gmf.graphdef.codegen/templates/layoutData/BorderLayoutData.javajet
deleted file mode 100644
index f747ec7df..000000000
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/layoutData/BorderLayoutData.javajet
+++ /dev/null
@@ -1,39 +0,0 @@
-<%@ jet package="org.eclipse.gmf.graphdef.codegen.templates" class="InitBorderLayoutDataGenerator"
- imports="org.eclipse.gmf.gmfgraph.* org.eclipse.gmf.graphdef.codegen.*"%>
-<%
-GraphDefDispatcher.LayoutArgs argsBundle = (GraphDefDispatcher.LayoutArgs) argument;
-final BorderLayoutData gmfLayoutData = (BorderLayoutData) argsBundle.getData();
-final GraphDefDispatcher dispatcher = argsBundle.getDispatcher();
-%>
-
-<%
-Alignment alignment = gmfLayoutData.getAlignment();
-if (alignment == null){
- alignment = Alignment.CENTER_LITERAL;
-}
-final String constantName;
-switch(alignment.getValue()){
- case Alignment.CENTER:
- case Alignment.FILL:
- constantName = "CENTER";
- break;
- case Alignment.BEGINNING:
- if (gmfLayoutData.isVertical()){
- constantName = "TOP";
- } else {
- constantName = "LEFT";
- }
- break;
- case Alignment.END:
- if (gmfLayoutData.isVertical()){
- constantName = "BOTTOM";
- } else {
- constantName = "RIGHT";
- }
- break;
- default:
- throw new IllegalArgumentException("Unknown Alignment: " + gmfLayoutData.getAlignment());
-}
-%>
- Object <%=argsBundle.getConstraintVariableName()%> = <%=dispatcher.getImportManager().getImportedName("org.eclipse.draw2d.BorderLayout")%>.<%=constantName%>;
-

Back to the top