Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2010-04-26 17:13:56 -0400
committeratikhomirov2010-04-26 17:13:56 -0400
commitf1e1bf37dd4c84db773a3d59b1808973e9aa2144 (patch)
treea70953c85dc189e7469aec967f7ed405c0258783
parentd8ba0101081ed068a0936768ec141536707c8197 (diff)
downloadorg.eclipse.gmf-tooling-f1e1bf37dd4c84db773a3d59b1808973e9aa2144.tar.gz
org.eclipse.gmf-tooling-f1e1bf37dd4c84db773a3d59b1808973e9aa2144.tar.xz
org.eclipse.gmf-tooling-f1e1bf37dd4c84db773a3d59b1808973e9aa2144.zip
[231330] reduce use of static fields - LinkCostraints are no-brainer
-rw-r--r--plugins/org.eclipse.gmf.codegen/models/gmfgen.emf4
-rw-r--r--plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/util/CodegenEmitters.java2
2 files changed, 4 insertions, 2 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/models/gmfgen.emf b/plugins/org.eclipse.gmf.codegen/models/gmfgen.emf
index 51045daa5..a94632f05 100644
--- a/plugins/org.eclipse.gmf.codegen/models/gmfgen.emf
+++ b/plugins/org.eclipse.gmf.codegen/models/gmfgen.emf
@@ -376,12 +376,14 @@ abstract interface PackageNames {
attr String notationViewFactoriesPackageName;
}
+@deprecated(documentation="Operations supplied by this interface are hardly useful and will be removed soon")
abstract interface LinkConstraints {
@genmodel(documentation="Indicates whether this diagram contains link creation constraints or not")
@deprecated(documentation="LinkCreationConstants should be generated if diagram has any links")
op boolean[1] hasLinkCreationConstraints();
@genmodel(documentation="Gets the name of the constraints holder class")
- op String[1] getLinkCreationConstraintsClassName();
+ op String[1] getLinkCreationConstraintsClassName(); // FIXME rather, implementation detail? We may want to keep constraints not necessarily inside a class
+ // and they are operations, anyway, can't modify the value.
@genmodel(documentation="Gets the qualified name of the constraints holder class")
op String[1] getLinkCreationConstraintsQualifiedClassName();
}
diff --git a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/util/CodegenEmitters.java b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/util/CodegenEmitters.java
index 44c2aeede..9346b98fe 100644
--- a/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/util/CodegenEmitters.java
+++ b/plugins/org.eclipse.gmf.codegen/src/org/eclipse/gmf/codegen/util/CodegenEmitters.java
@@ -538,7 +538,7 @@ public class CodegenEmitters {
// plugin
public TextEmitter getActivatorEmitter() throws UnexpectedBehaviourException {
- return getPrimaryEmitter("xpt::plugin::Activator"); //$NON-NLS-1$
+ return newXpandEmitter("plugin::Activator::Main"); //$NON-NLS-1$
}
public TextEmitter getBundleManifestEmitter() throws UnexpectedBehaviourException {

Back to the top