Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2010-03-09 16:38:40 -0500
committeratikhomirov2010-03-09 16:38:40 -0500
commit5cbe47ca58f74f7d84c2bc12190940c919d1e439 (patch)
tree2bb205f39be17f1af4f27835fba7468e95ecd5c5 /plugins/org.eclipse.gmf.graphdef.codegen/templates/attr
parent9a2bdf32388b53362d2584f71128c30a6bd878c8 (diff)
downloadorg.eclipse.gmf-tooling-5cbe47ca58f74f7d84c2bc12190940c919d1e439.tar.gz
org.eclipse.gmf-tooling-5cbe47ca58f74f7d84c2bc12190940c919d1e439.tar.xz
org.eclipse.gmf-tooling-5cbe47ca58f74f7d84c2bc12190940c919d1e439.zip
removed duplicating xpand string operations (length, startsWith and endsWith) and use thereof
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen/templates/attr')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Figure.xpt7
1 files changed, 2 insertions, 5 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 c787d6469..7992ba3ad 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Figure.xpt
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Figure.xpt
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006 Borland Software Corporation
+ * Copyright (c) 2006, 2010 Borland Software Corporation and others
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -10,9 +10,6 @@
* Artem Tikhomirov (Borland) - initial API and implementation
*/
«IMPORT 'http://www.eclipse.org/gmf/2006/GraphicalDefinition'»
-«IMPORT 'http://www.eclipse.org/emf/2002/Ecore'»
-«EXTENSION Util»
-«EXTENSION xpt::StringOperations»
«DEFINE figureAttrs(figureVarName : String) FOR gmfgraph::Figure-»
«EXPAND foregroundColor(self, figureVarName) FOR foregroundColor-»
@@ -88,7 +85,7 @@ org.eclipse.draw2d.ColorConstants.«value-»
/**
* @generated
*/
-static final org.eclipse.swt.graphics.Font «variableName» = new org.eclipse.swt.graphics.Font(org.eclipse.swt.widgets.Display.getCurrent(), «IF null = faceName or faceName.trim().xpandLength() = 0»org.eclipse.swt.widgets.Display.getDefault().getSystemFont().getFontData()[0].getName()«ELSE»"«faceName»"«ENDIF», «height», org.eclipse.swt.SWT.«style»);
+static final org.eclipse.swt.graphics.Font «variableName» = new org.eclipse.swt.graphics.Font(org.eclipse.swt.widgets.Display.getCurrent(), «IF null = faceName or faceName.trim().size() = 0»org.eclipse.swt.widgets.Display.getDefault().getSystemFont().getFontData()[0].getName()«ELSE»"«faceName»"«ENDIF», «height», org.eclipse.swt.SWT.«style»);
«ENDFILE»
«ENDLET»
«ENDDEFINE»

Back to the top