Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2006-12-04 17:41:48 -0500
committeratikhomirov2006-12-04 17:41:48 -0500
commit1adc087e107ec5bc0747ce87a647f040b131bcbf (patch)
tree87ff79362ea368d45ad5686636cacd61f897ae5d /plugins/org.eclipse.gmf.graphdef.codegen/templates
parentefe19d8c703d10a06e3625c73cd03b3894a72d49 (diff)
downloadorg.eclipse.gmf-tooling-1adc087e107ec5bc0747ce87a647f040b131bcbf.tar.gz
org.eclipse.gmf-tooling-1adc087e107ec5bc0747ce87a647f040b131bcbf.tar.xz
org.eclipse.gmf-tooling-1adc087e107ec5bc0747ce87a647f040b131bcbf.zip
[166620] changing color in the gmfgraph model is not reflected in the generated code
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen/templates')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Figure.xpt6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Figure.xpt b/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Figure.xpt
index 844e8eeb2..8a08202c6 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Figure.xpt
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Figure.xpt
@@ -65,6 +65,9 @@
«DEFINE color(String variableName) FOR gmfgraph::RGBColor-»
«variableName-»
«FILE "" staticFields»
+/**
+ * @generated
+ */
static final org.eclipse.swt.graphics.Color «variableName» = new org.eclipse.swt.graphics.Color(null, «red», «green», «blue»);
«ENDFILE»
«ENDDEFINE»
@@ -77,6 +80,9 @@ org.eclipse.draw2d.ColorConstants.«value.literal-»
«LET figure.name + "_FONT" AS variableName»
«figureVarName».setFont(«variableName»);
«FILE "" staticFields»
+/**
+ * @generated
+ */
static final org.eclipse.swt.graphics.Font «variableName» = new org.eclipse.swt.graphics.Font(org.eclipse.swt.widgets.Display.getCurrent(), «IF null == faceName || faceName.trim().length() == 0»org.eclipse.swt.widgets.Display.getDefault().getSystemFont().getFontData()[0].getName()«ELSE»"«faceName»"«ENDIF», «height», org.eclipse.swt.SWT.«style.literal»);
«ENDFILE»
«ENDLET»

Back to the top