Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordstadnik2006-08-07 16:35:38 +0000
committerdstadnik2006-08-07 16:35:38 +0000
commit76cb1b16092d3a3532dc0c006dd1611ded054948 (patch)
tree9b724e6b3501bc1e6a0608922270927a3f18d3fe /plugins/org.eclipse.gmf.codegen.ui
parentf85160c222cb10fc3d3d40173c76abf6f3fc1c2d (diff)
downloadorg.eclipse.gmf-tooling-76cb1b16092d3a3532dc0c006dd1611ded054948.tar.gz
org.eclipse.gmf-tooling-76cb1b16092d3a3532dc0c006dd1611ded054948.tar.xz
org.eclipse.gmf-tooling-76cb1b16092d3a3532dc0c006dd1611ded054948.zip
preserve custom behaviour
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen.ui')
-rw-r--r--plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/GMFGenConfig.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/GMFGenConfig.java b/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/GMFGenConfig.java
index c6119bac6..629e81eae 100644
--- a/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/GMFGenConfig.java
+++ b/plugins/org.eclipse.gmf.codegen.ui/src/org/eclipse/gmf/internal/codegen/GMFGenConfig.java
@@ -18,6 +18,7 @@ import org.eclipse.gmf.codegen.gmfgen.GMFGenPackage;
import org.eclipse.gmf.codegen.gmfgen.GenChildContainer;
import org.eclipse.gmf.codegen.gmfgen.GenNode;
import org.eclipse.gmf.internal.common.reconcile.Copier;
+import org.eclipse.gmf.internal.common.reconcile.DecisionMaker;
import org.eclipse.gmf.internal.common.reconcile.DefaultDecisionMaker;
import org.eclipse.gmf.internal.common.reconcile.Matcher;
import org.eclipse.gmf.internal.common.reconcile.ReconcilerConfigBase;
@@ -92,8 +93,18 @@ public class GMFGenConfig extends ReconcilerConfigBase {
setCopier(GMFGEN.getDefaultSizeAttributes(), Copier.COMPLETE_COPY);
preserveIfSet(GMFGEN.getDefaultSizeAttributes(), GMFGEN.getDefaultSizeAttributes_Height());
preserveIfSet(GMFGEN.getDefaultSizeAttributes(), GMFGEN.getDefaultSizeAttributes_Width());
+
+ addDecisionMaker(GMFGEN.getGenDiagram(), new DecisionMaker.ALWAYS_OLD(GMFGEN.getGenCommonBase_CustomBehaviour()));
+ addDecisionMaker(GMFGEN.getGenTopLevelNode(), new DecisionMaker.ALWAYS_OLD(GMFGEN.getGenCommonBase_CustomBehaviour()));
+ addDecisionMaker(GMFGEN.getGenChildNode(), new DecisionMaker.ALWAYS_OLD(GMFGEN.getGenCommonBase_CustomBehaviour()));
+ addDecisionMaker(GMFGEN.getGenChildLabelNode(), new DecisionMaker.ALWAYS_OLD(GMFGEN.getGenCommonBase_CustomBehaviour()));
+ addDecisionMaker(GMFGEN.getGenCompartment(), new DecisionMaker.ALWAYS_OLD(GMFGEN.getGenCommonBase_CustomBehaviour()));
+ addDecisionMaker(GMFGEN.getGenLink(), new DecisionMaker.ALWAYS_OLD(GMFGEN.getGenCommonBase_CustomBehaviour()));
+ addDecisionMaker(GMFGEN.getGenLinkLabel(), new DecisionMaker.ALWAYS_OLD(GMFGEN.getGenCommonBase_CustomBehaviour()));
+ addDecisionMaker(GMFGEN.getGenNodeLabel(), new DecisionMaker.ALWAYS_OLD(GMFGEN.getGenCommonBase_CustomBehaviour()));
+ addDecisionMaker(GMFGEN.getGenExternalNodeLabel(), new DecisionMaker.ALWAYS_OLD(GMFGEN.getGenCommonBase_CustomBehaviour()));
}
-
+
private Matcher getGenNodeMatcher(){
//FIXME: use new AttributeMatcher("domainMetaClass")
return new ReflectiveMatcher(GMFGenPackage.eINSTANCE.getGenNode(), new ReflectiveMatcher.Reflector(){

Back to the top