Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashatalin2006-01-07 16:50:43 +0000
committerashatalin2006-01-07 16:50:43 +0000
commit77458f07172ab0950b16db86b92757f4458353f8 (patch)
treecb3b0d0963594c9dfeae047c86be24f65000eb21 /plugins/org.eclipse.gmf.graphdef.codegen/templates
parent7f7e382bcfd69d283c18e279e4465586b0655650 (diff)
downloadorg.eclipse.gmf-tooling-77458f07172ab0950b16db86b92757f4458353f8.tar.gz
org.eclipse.gmf-tooling-77458f07172ab0950b16db86b92757f4458353f8.tar.xz
org.eclipse.gmf-tooling-77458f07172ab0950b16db86b92757f4458353f8.zip
@generated comments ws added
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen/templates')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/ConcreteShape.javajet15
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/CustomFigure.javajet6
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/DecorationFigure.javajet6
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/PolylineConnection.javajet12
4 files changed, 39 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/ConcreteShape.javajet b/plugins/org.eclipse.gmf.graphdef.codegen/templates/ConcreteShape.javajet
index 4e2d5b448..1303fc12c 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/ConcreteShape.javajet
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/ConcreteShape.javajet
@@ -5,8 +5,14 @@ Shape shapeFig = (Shape) argument;
final GMFGraphSwitch fqnSwitch = new FigureQualifiedNameSwitch();
%>
+/**
+ * @generated
+ */
public class <%=shapeFig.getName()%> extends <%=fqnSwitch.doSwitch(shapeFig)%> {
+ /**
+ * @generated
+ */
public <%=shapeFig.getName()%>() {
<%
{
@@ -29,14 +35,23 @@ for (Iterator it = shapeFig.getResolvedChildren().iterator(); it.hasNext(); fc++
private IFigure f<%=figure.getName()%>;
+ /**
+ * @generated
+ */
public IFigure getFigure<%=figure.getName()%>() {
return f<%=figure.getName()%>;
}
+ /**
+ * @generated
+ */
protected void setFigure<%=figure.getName()%>(IFigure figure) {
f<%=figure.getName()%> = figure;
}
+ /**
+ * @generated
+ */
private IFigure createFigure<%=figure.getName()%>() {
<%
String parentFigureVarName = "rv" + fc;
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/CustomFigure.javajet b/plugins/org.eclipse.gmf.graphdef.codegen/templates/CustomFigure.javajet
index 5ec9a0b97..c0c08c519 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/CustomFigure.javajet
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/CustomFigure.javajet
@@ -5,8 +5,14 @@ CustomFigure figure = (CustomFigure) argument;
final GMFGraphSwitch fqnSwitch = new FigureQualifiedNameSwitch();
%>
+/**
+ * @generated
+ */
public class <%=figure.getName()%> extends <%=figure.getQualifiedClassName()%> {
+ /**
+ * @generated
+ */
public <%=figure.getName()%>() {
// TODO - process custom properties here
<%String parentFigureVarName = "this";%>
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/DecorationFigure.javajet b/plugins/org.eclipse.gmf.graphdef.codegen/templates/DecorationFigure.javajet
index 4b08fbe89..5a8d59594 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/DecorationFigure.javajet
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/DecorationFigure.javajet
@@ -8,8 +8,14 @@ scale = null; //XXX
final GMFGraphSwitch fqnSwitch = new FigureQualifiedNameSwitch();
%>
+/**
+ * @generated
+ */
class <%=figure.getName()%> extends <%=fqnSwitch.doSwitch(figure)%> {
+ /**
+ * @generated
+ */
public <%=figure.getName()%>() {
<%
DecorationFigure df = figure;
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/PolylineConnection.javajet b/plugins/org.eclipse.gmf.graphdef.codegen/templates/PolylineConnection.javajet
index d94e36dc2..cc17acc7b 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/PolylineConnection.javajet
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/PolylineConnection.javajet
@@ -6,8 +6,14 @@ PolylineConnection figure = (PolylineConnection) argument;
final GMFGraphSwitch fqnSwitch = new FigureQualifiedNameSwitch();
%>
+/**
+ * @generated
+ */
public class <%=figure.getName()%> extends <%=fqnSwitch.doSwitch(figure)%> {
+ /**
+ * @generated
+ */
public <%=figure.getName()%>() {
<%Shape shapeFigure = figure;
String shapeVarName = "this";%>
@@ -23,6 +29,9 @@ if (figure.getTargetDecoration() != null) {%>
<%String decFigVarName = "df";
if (figure.getSourceDecoration() != null) {
DecorationFigure df = figure.getSourceDecoration();%>
+ /**
+ * @generated
+ */
private <%=fqnSwitch.doSwitch(df)%> createSourceDecoration() {
<%@ include file="decoration.jetinc" %>
return <%=decFigVarName%>;
@@ -31,6 +40,9 @@ DecorationFigure df = figure.getSourceDecoration();%>
<%if (figure.getTargetDecoration() != null) {
DecorationFigure df = figure.getTargetDecoration();%>
+ /**
+ * @generated
+ */
private <%=fqnSwitch.doSwitch(df)%> createTargetDecoration() {
<%@ include file="decoration.jetinc" %>
return <%=decFigVarName%>;

Back to the top