Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: ee6031bebbafff0f30f23f834afc95f7964551db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
<%@ jet package="org.eclipse.gmf.graphdef.codegen.templates" class="LabelAttrGenerator"
	imports="org.eclipse.gmf.gmfgraph.* org.eclipse.gmf.graphdef.codegen.GraphDefDispatcher"%>
<%
GraphDefDispatcher.Args args = (GraphDefDispatcher.Args) argument;
final Label figureInstance = (Label) args.getFigure();
final String figureVarName = args.getVariableName();
final GraphDefDispatcher dispatcher = args.getDispatcher();
%>
<%if (figureInstance.eIsSet(GMFGraphPackage.eINSTANCE.getLabel_Text())) {%>
<%=figureVarName%>.setText("<%=figureInstance.getText()%>");
<%}%><%=dispatcher.dispatch("Figure", args)%>

Back to the top