Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: f52f0e27cbb52b4252fdf97d846487ac6a26d7cd (plain) (tree)
1
2
3
4
5
6




                                                                                              
                                                                   










                                                                                
<%@ jet package="org.eclipse.gmf.graphdef.codegen.templates" class="InitBorderLayoutGenerator"
	imports="org.eclipse.gmf.gmfgraph.* org.eclipse.gmf.graphdef.codegen.*"%>
<%
GraphDefDispatcher.LayoutArgs argsBundle = (GraphDefDispatcher.LayoutArgs) argument;
final BorderLayout gmfLayout = (BorderLayout) argsBundle.getLayout();
final String layouterVarName = argsBundle.getManagerVariableName();
%>

<%
Dimension spacing = gmfLayout.getSpacing();
if (spacing != null){
%>
		<%=layouterVarName%>.setHorizontalSpacing(<%=spacing.getDx()%>);
		<%=layouterVarName%>.setVerticalSpacing(<%=spacing.getDy()%>);
<%
}
%>

Back to the top