Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: b96640d3fa5e59cfd807ef4aaf9fa602993cbd9a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                           
                                                                                                                                             

                                                                        
<%@ jet package="org.eclipse.gmf.graphdef.codegen.templates" class="NewLayoutDataGenerator"
	imports="org.eclipse.gmf.gmfgraph.* org.eclipse.gmf.graphdef.codegen.*"%>
<%
// NOTE: this code expects that constrainted figure is already added to its parent

GraphDefDispatcher.LayoutArgs argsBundle = (GraphDefDispatcher.LayoutArgs) argument;
final GraphDefDispatcher dispatcher = argsBundle.getDispatcher();
final LayoutData gmfLayoutData = argsBundle.getData();
final Figure figureInstance = argsBundle.getFigure();

// merely makes sure layoutData present
// and parent figure got chance to have layout initialized 

if (gmfLayoutData != null && figureInstance.eContainer() instanceof Figure && ((Figure) figureInstance.eContainer()).getLayout() != null) {%>
<%=dispatcher.dispatch(gmfLayoutData, argsBundle)%>			
<%}%>

Back to the top