Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2006-07-24 17:38:38 +0000
committeratikhomirov2006-07-24 17:38:38 +0000
commit3ccf743ebc6dc7878949325bf5b5f0bf326cde06 (patch)
tree3d9af330b76da8b388bbd19cda93b557bda8d890 /plugins/org.eclipse.gmf.graphdef.codegen
parent83e5f87929635a69a7c2e9c642c6897a54e10f56 (diff)
downloadorg.eclipse.gmf-tooling-3ccf743ebc6dc7878949325bf5b5f0bf326cde06.tar.gz
org.eclipse.gmf-tooling-3ccf743ebc6dc7878949325bf5b5f0bf326cde06.tar.xz
org.eclipse.gmf-tooling-3ccf743ebc6dc7878949325bf5b5f0bf326cde06.zip
make generated code look more nice - for mgolubev
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/templates/FigureAttrGenerator.java4
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/templates/NewLineBorderExpressionGenerator.java4
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/Color.jetinc1
3 files changed, 4 insertions, 5 deletions
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/templates/FigureAttrGenerator.java b/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/templates/FigureAttrGenerator.java
index 08ff21c27..9c576df39 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/templates/FigureAttrGenerator.java
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/templates/FigureAttrGenerator.java
@@ -18,10 +18,10 @@ public class FigureAttrGenerator
protected final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
protected final String TEXT_1 = "\t\t";
protected final String TEXT_2 = ".setForegroundColor(";
- protected final String TEXT_3 = NL + NL + ");";
+ protected final String TEXT_3 = NL + ");";
protected final String TEXT_4 = NL + "\t\t";
protected final String TEXT_5 = ".setBackgroundColor(";
- protected final String TEXT_6 = NL + NL + ");";
+ protected final String TEXT_6 = NL + ");";
protected final String TEXT_7 = NL + "\t\t";
protected final String TEXT_8 = ".setPreferredSize(";
protected final String TEXT_9 = ", ";
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/templates/NewLineBorderExpressionGenerator.java b/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/templates/NewLineBorderExpressionGenerator.java
index 17476b376..1a4aa54a2 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/templates/NewLineBorderExpressionGenerator.java
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/templates/NewLineBorderExpressionGenerator.java
@@ -18,11 +18,11 @@ public class NewLineBorderExpressionGenerator
protected final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
protected final String TEXT_1 = "new ";
protected final String TEXT_2 = "(";
- protected final String TEXT_3 = NL + NL + ", ";
+ protected final String TEXT_3 = NL + ", ";
protected final String TEXT_4 = ")";
protected final String TEXT_5 = NL + "new ";
protected final String TEXT_6 = "(";
- protected final String TEXT_7 = NL + NL + ")";
+ protected final String TEXT_7 = NL + ")";
protected final String TEXT_8 = NL + "new ";
protected final String TEXT_9 = "(";
protected final String TEXT_10 = ")";
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/Color.jetinc b/plugins/org.eclipse.gmf.graphdef.codegen/templates/Color.jetinc
index a88e72277..4ea5c8915 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/Color.jetinc
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/Color.jetinc
@@ -14,4 +14,3 @@
throw new IllegalStateException("Unknown color: " + colorVal);
}
%>
-

Back to the top