Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2010-04-28 01:12:24 +0000
committeratikhomirov2010-04-28 01:12:24 +0000
commit146088824765971ba2850f3a9c8465fc8059f9f9 (patch)
treefe866a544d49c44523a13b58e2f6a2b23756554e /plugins/org.eclipse.gmf.codegen/templates/xpt/providers/Metrics.qvto
parentf9efde529b73f9c7bc08675e32f87c1710249c77 (diff)
downloadorg.eclipse.gmf-tooling-20100427-2359.tar.gz
org.eclipse.gmf-tooling-20100427-2359.tar.xz
org.eclipse.gmf-tooling-20100427-2359.zip
[231330] reduce use of static fields. Fields in each place we use expressions replaced with single storage (array) inside factory that creates them. The factory records its single instance with the activator class.v20100427-2359
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates/xpt/providers/Metrics.qvto')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/xpt/providers/Metrics.qvto6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates/xpt/providers/Metrics.qvto b/plugins/org.eclipse.gmf.codegen/templates/xpt/providers/Metrics.qvto
index 15303b925..b4eead6ca 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/xpt/providers/Metrics.qvto
+++ b/plugins/org.eclipse.gmf.codegen/templates/xpt/providers/Metrics.qvto
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009 Borland Software Corporation
+ * Copyright (c) 2008, 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
@@ -31,10 +31,6 @@ helper getDomainMetrics(c : gmfgen::GenMetricContainer) : Sequence(gmfgen::GenMe
return c.metrics->asSequence()->select(target.oclIsKindOf(gmfgen::GenDomainElementTarget))
}
-helper exprFieldName(m : gmfgen::GenMetricRule) : String {
- return 'expression' + validJavaIdentifier(m.key).firstToUpper()
-}
-
helper calcMethodName(m : gmfgen::GenMetricRule) : String {
return 'calc' + validJavaIdentifier(m.key).firstToUpper()
}

Back to the top