Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2008-06-27 12:19:42 -0400
committeratikhomirov2008-06-27 12:19:42 -0400
commitbb7fbe4f0156776b318aa989eaf98cb1e39f37b2 (patch)
tree9537d88c27b14f968669d2ccda15b100b6b9edff /plugins
parentba12414cd5cae5cd7385a765a87d7faaa4ec9f41 (diff)
downloadorg.eclipse.gmf-tooling-bb7fbe4f0156776b318aa989eaf98cb1e39f37b2.tar.gz
org.eclipse.gmf-tooling-bb7fbe4f0156776b318aa989eaf98cb1e39f37b2.tar.xz
org.eclipse.gmf-tooling-bb7fbe4f0156776b318aa989eaf98cb1e39f37b2.zip
[231133] reconcile viewmap attributes
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.gmf.common/src/org/eclipse/gmf/internal/common/reconcile/ReconcilerConfigBase.java15
1 files changed, 12 insertions, 3 deletions
diff --git a/plugins/org.eclipse.gmf.common/src/org/eclipse/gmf/internal/common/reconcile/ReconcilerConfigBase.java b/plugins/org.eclipse.gmf.common/src/org/eclipse/gmf/internal/common/reconcile/ReconcilerConfigBase.java
index cb4e46796..f2649699c 100644
--- a/plugins/org.eclipse.gmf.common/src/org/eclipse/gmf/internal/common/reconcile/ReconcilerConfigBase.java
+++ b/plugins/org.eclipse.gmf.common/src/org/eclipse/gmf/internal/common/reconcile/ReconcilerConfigBase.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006, 2007 Borland Software Corporation
+ * Copyright (c) 2006, 2008 Borland Software Corporation
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -62,14 +62,23 @@ public class ReconcilerConfigBase implements ReconcilerConfig {
}
protected final void setMatcherForAllSubclasses(EClass eClass, Matcher matcher){
+ checkAbstract(eClass);
+ getTemplateRecord(eClass, true).setMatcher(matcher);
+ }
+
+ protected final void setCopierForAllSubclasses(EClass eClass, Copier copier){
+ checkAbstract(eClass);
+ getTemplateRecord(eClass, true).setCopier(copier);
+ }
+
+ private static void checkAbstract(EClass eClass){
if (!eClass.isAbstract()){
throw new IllegalArgumentException(
"This is not safe method that may lead to strange behaviour in case of multiple inheritance. " +
"We tried to limit its usage as much as possible");
}
- getTemplateRecord(eClass, true).setMatcher(matcher);
}
-
+
protected final void addDecision(EClass eClass, Decision decision){
getRecord(eClass, true).addDecision(decision);
}

Back to the top