Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 51755 Details for
Bug 160225
Respect EStructuralFeature cardinality in commands that create/move/clone elements
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Fixes the Subj
160225.patch (text/plain), 914.69 KB, created by
Boris Blajer
on 2006-10-11 10:07:16 EDT
(
hide
)
Description:
Fixes the Subj
Filename:
MIME Type:
Creator:
Boris Blajer
Created:
2006-10-11 10:07:16 EDT
Size:
914.69 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.gmf.codegen.lite >Index: templates/parts/linkMultiplicity.jetinc >=================================================================== >RCS file: templates/parts/linkMultiplicity.jetinc >diff -N templates/parts/linkMultiplicity.jetinc >--- templates/parts/linkMultiplicity.jetinc 4 Aug 2006 17:05:48 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,18 +0,0 @@ >-<% >-int upperBound = _feature.getEcoreFeature().getUpperBound(); >-if (upperBound > 0) { >- if (upperBound == 1) { >-%> >- if (<%myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);%> != null) { >- <%=_exceedsUpperBound%> >- } >-<% >- } else { >-%> >- if (<%myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);%>.size() >= <%=importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())%>.eINSTANCE.get<%=_feature.getFeatureAccessorName()%>.getUpperBound()) { >- <%=_exceedsUpperBound%> >- } >-<% >- } >-} >-%> >Index: templates/parts/createCloneCommand.jetinc >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.codegen.lite/templates/parts/createCloneCommand.jetinc,v >retrieving revision 1.1 >diff -u -r1.1 createCloneCommand.jetinc >--- templates/parts/createCloneCommand.jetinc 9 Oct 2006 17:03:14 -0000 1.1 >+++ templates/parts/createCloneCommand.jetinc 11 Oct 2006 14:02:55 -0000 >@@ -53,6 +53,32 @@ > //Otherwise, we would have to execute the CopyCommand on every mouse move, which could be much too expensive. > return <%=importManager.getImportedName("org.eclipse.emf.edit.command.CopyCommand")%>.create(editingDomain, element); > } >+ protected boolean prepare() { >+ if (!super.prepare()) { >+ return false; >+ } >+<% >+ if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { >+ GenFeature _feature = childFeature; >+ String _ownerInstance = _getViewCode + ".getElement()"; >+ String _exceedsUpperBound = "return false;"; >+ GenClass _ownerGenClass = null; >+%> >+<%@ include file="featureMultiplicity.jetinc"%> >+<% >+ } >+ { >+ GenFeature _feature = containmentFeature; >+ String _ownerInstance = _getViewCode + ".getElement()"; >+ String _exceedsUpperBound = "return false;"; >+ GenClass _ownerGenClass = null; >+%> >+<%@ include file="featureMultiplicity.jetinc"%> >+<% >+ } >+%> >+ return true; >+ } > public void execute() { > super.execute(); > final <%=importManager.getImportedName("java.util.Collection")%> results = super.getResult(); >Index: templates/parts/createNodeCommand.javajetinc >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.codegen.lite/templates/parts/createNodeCommand.javajetinc,v >retrieving revision 1.6 >diff -u -r1.6 createNodeCommand.javajetinc >--- templates/parts/createNodeCommand.javajetinc 21 Sep 2006 10:12:03 -0000 1.6 >+++ templates/parts/createNodeCommand.javajetinc 11 Oct 2006 14:02:55 -0000 >@@ -34,18 +34,32 @@ > TypeModelFacet facet = next.getModelFacet(); > GenFeature childFeature = facet.getChildMetaFeature(); > GenFeature containmentFeature = facet.getContainmentMetaFeature(); >+ { >+ GenFeature _feature = containmentFeature; >+ String _ownerInstance = "parent.getElement()"; >+ String _exceedsUpperBound = "this.domainModelAddCommand = null;this.notationAddCommand = null;return;"; >+ GenClass _ownerGenClass = null; >+%> >+<%@ include file="featureMultiplicity.jetinc"%> >+<% >+ } > if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { >+ GenFeature _feature = childFeature; >+ String _ownerInstance = "parent.getElement()"; >+ String _exceedsUpperBound = "this.domainModelAddCommand = null;this.notationAddCommand = null;return;"; >+ GenClass _ownerGenClass = null; > %> >+<%@ include file="featureMultiplicity.jetinc"%> > <%=importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")%> compoundCommand = new <%=importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")%>(); >- compoundCommand.append(<%=importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")%>.create(domainModelEditDomain, <%=resolvedSemanticElement%>, >+ compoundCommand.append(<%=importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")%>.create(domainModelEditDomain, parent.getElement(), > <%=importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())%>.eINSTANCE.get<%=containmentFeature.getFeatureAccessorName()%>(), createdDomainElement)); >- compoundCommand.append(<%=importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")%>.create(domainModelEditDomain, <%=resolvedSemanticElement%>, >+ compoundCommand.append(<%=importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")%>.create(domainModelEditDomain, parent.getElement(), > <%=importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())%>.eINSTANCE.get<%=childFeature.getFeatureAccessorName()%>(), createdDomainElement)); > this.domainModelAddCommand = compoundCommand; > <% > } else { > %> >- this.domainModelAddCommand = <%=importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")%>.create(domainModelEditDomain, <%=resolvedSemanticElement%>, >+ this.domainModelAddCommand = <%=importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")%>.create(domainModelEditDomain, parent.getElement(), > <%=importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())%>.eINSTANCE.get<%=containmentFeature.getFeatureAccessorName()%>(), createdDomainElement); > <% > } >Index: templates/parts/NodeEditPart.javajet >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.codegen.lite/templates/parts/NodeEditPart.javajet,v >retrieving revision 1.23 >diff -u -r1.23 NodeEditPart.javajet >--- templates/parts/NodeEditPart.javajet 9 Oct 2006 17:03:14 -0000 1.23 >+++ templates/parts/NodeEditPart.javajet 11 Oct 2006 14:02:55 -0000 >@@ -478,15 +478,14 @@ > } > %> > case <%=importManager.getImportedName(genLink.getEditPartQualifiedClassName())%>.VISUAL_ID: >- result.append(new Create<%=createCommandNameInfix%><%=genLink.getVisualID()%>StartCommand(requestEx)); >+ result.appendIfCanExecute(new Create<%=createCommandNameInfix%><%=genLink.getVisualID()%>StartCommand(requestEx)); > break; > <% > } > %> > } > } >- if (result.getCommandList().size() != 1 || !result.canExecute()) { >- //Cannot create several connections at once. >+ if (!result.canExecute()) { > //returning an unexecutable command does not change cursor to "No". > return null; > } >@@ -533,14 +532,14 @@ > } > %> > case <%=importManager.getImportedName(genLink.getEditPartQualifiedClassName())%>.VISUAL_ID: >- result.append(new Create<%=createCommandNameInfix%><%=genLink.getVisualID()%>Command(requestEx)); >+ result.appendIfCanExecute(new Create<%=createCommandNameInfix%><%=genLink.getVisualID()%>Command(requestEx)); > break; > <% > } > %> > } > } >- if (result.getCommandList().size() != 1) { >+ if (result.getCommandList().size() != 1 || !result.canExecute()) { > //Cannot create several connections at once. > return <%=importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")%>.INSTANCE; > } >@@ -1221,7 +1220,6 @@ > GenChildNode next = (GenChildNode)it.next(); > boolean isStatic = true; > boolean isListLayout = !isXYLayout; >- String resolvedSemanticElement = "parent.getElement()"; > %> > <%@ include file="createNodeCommand.javajetinc"%> > <% >@@ -1370,6 +1368,7 @@ > if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { > TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); > GenFeature containmentFeature = modelFacet.getContainmentMetaFeature(); >+ GenFeature childFeature = modelFacet.getChildMetaFeature(); > if (containmentFeature == null) { > %> > return false; >@@ -1387,10 +1386,9 @@ > String _exceedsUpperBound = "return false;"; > GenClass _ownerGenClass = containmentFeature.getGenClass(); > %> >-<%@ include file="linkMultiplicity.jetinc"%> >+<%@ include file="featureMultiplicity.jetinc"%> > <% > } >- GenFeature childFeature = modelFacet.getChildMetaFeature(); > if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { > { > GenFeature _feature = childFeature; >@@ -1398,12 +1396,24 @@ > String _exceedsUpperBound = "return false;"; > GenClass _ownerGenClass = containmentFeature.getGenClass(); > %> >-<%@ include file="linkMultiplicity.jetinc"%> >+<%@ include file="featureMultiplicity.jetinc"%> > <% > } > } > } > //No need to check the size of the source or target features: their size does not change >+ //Still need to check the eOpposite() of the source feature >+ GenFeature sourceFeature = modelFacet.getSourceMetaFeature(); >+ GenFeature sourceReverseFeature = sourceFeature == null ? null : sourceFeature.getReverse(); >+ if (sourceReverseFeature != null && !sourceReverseFeature.isDerived() && sourceReverseFeature != containmentFeature && sourceReverseFeature != childFeature) { >+ GenFeature _feature = sourceReverseFeature; >+ String _ownerInstance = "newSource.getElement()"; >+ String _exceedsUpperBound = "return false;"; >+ GenClass _ownerGenClass = null; >+%> >+<%@ include file="featureMultiplicity.jetinc"%> >+<% >+ } > { > String _source = "newSource.getElement()"; > String _target = "edge.getTarget().getElement()"; >@@ -1422,7 +1432,7 @@ > String _exceedsUpperBound = "return false;"; > GenClass _ownerGenClass = null; > %> >-<%@ include file="linkMultiplicity.jetinc"%> >+<%@ include file="featureMultiplicity.jetinc"%> > <% > } > { >@@ -1655,7 +1665,7 @@ > String _exceedsUpperBound = "return false;"; > GenClass _ownerGenClass = containmentFeature.getGenClass(); > %> >-<%@ include file="linkMultiplicity.jetinc"%> >+<%@ include file="featureMultiplicity.jetinc"%> > <% > } > GenFeature childFeature = modelFacet.getChildMetaFeature(); >@@ -1666,10 +1676,22 @@ > String _exceedsUpperBound = "return false;"; > GenClass _ownerGenClass = containmentFeature.getGenClass(); > %> >-<%@ include file="linkMultiplicity.jetinc"%> >+<%@ include file="featureMultiplicity.jetinc"%> > <% > } > } >+ //Need to check the eOpposite() of the source feature >+ GenFeature sourceFeature = modelFacet.getSourceMetaFeature(); >+ GenFeature sourceReverseFeature = sourceFeature == null ? null : sourceFeature.getReverse(); >+ if (sourceReverseFeature != null && !sourceReverseFeature.isDerived() && sourceReverseFeature != containmentFeature && sourceReverseFeature != childFeature) { >+ GenFeature _feature = sourceReverseFeature; >+ String _ownerInstance = "source.getElement()"; >+ String _exceedsUpperBound = "return false;"; >+ GenClass _ownerGenClass = null; >+%> >+<%@ include file="featureMultiplicity.jetinc"%> >+<% >+ } > { > String _source = "source.getElement()"; > String _target = "null"; >@@ -1689,7 +1711,7 @@ > String _exceedsUpperBound = "return false;"; > GenClass _ownerGenClass = null; > %> >-<%@ include file="linkMultiplicity.jetinc"%> >+<%@ include file="featureMultiplicity.jetinc"%> > <% > } > { >@@ -1856,6 +1878,19 @@ > private boolean canReconnect() { > <% > if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { >+ TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); >+ //Need to check the eOpposite() of the target feature >+ GenFeature targetFeature = modelFacet.getTargetMetaFeature(); >+ GenFeature targetReverseFeature = targetFeature == null ? null : targetFeature.getReverse(); >+ if (targetReverseFeature != null && !targetReverseFeature.isDerived()) { >+ GenFeature _feature = targetReverseFeature; >+ String _ownerInstance = "newTarget.getElement()"; >+ String _exceedsUpperBound = "return false;"; >+ GenClass _ownerGenClass = null; >+%> >+<%@ include file="featureMultiplicity.jetinc"%> >+<% >+ } > { > String _source = "edge.getSource().getElement()"; > String _target = "newTarget.getElement()"; >@@ -1867,6 +1902,18 @@ > return true; > <% > } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { >+ //Need to check eOpposite() of the metaFeature >+ GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); >+ GenFeature reverseMetaFeature = metaFeature == null ? null : metaFeature.getReverse(); >+ if (reverseMetaFeature != null && !reverseMetaFeature.isDerived()) { >+ GenFeature _feature = reverseMetaFeature; >+ String _ownerInstance = "newTarget.getElement()"; >+ String _exceedsUpperBound = "return false;"; >+ GenClass _ownerGenClass = null; >+%> >+<%@ include file="featureMultiplicity.jetinc"%> >+<% >+ } > { > String _source = "edge.getSource().getElement()"; > String _target = "newTarget.getElement()"; >@@ -2062,7 +2109,7 @@ > String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;"; > GenClass _ownerGenClass = modelFacet.getMetaClass(); > %> >-<%@ include file="linkMultiplicity.jetinc"%> >+<%@ include file="featureMultiplicity.jetinc"%> > <% > } > %> >@@ -2077,7 +2124,18 @@ > String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;"; > GenClass _ownerGenClass = modelFacet.getMetaClass(); > %> >-<%@ include file="linkMultiplicity.jetinc"%> >+<%@ include file="featureMultiplicity.jetinc"%> >+<% >+ } >+ //Need to check the eOpposite() of the target feature >+ GenFeature targetReverseFeature = targetFeature == null ? null : targetFeature.getReverse(); >+ if (targetReverseFeature != null && !targetReverseFeature.isDerived()) { >+ GenFeature _feature = targetReverseFeature; >+ String _ownerInstance = "target.getElement()"; >+ String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;"; >+ GenClass _ownerGenClass = null; >+%> >+<%@ include file="featureMultiplicity.jetinc"%> > <% > } > %> >@@ -2090,6 +2148,17 @@ > <% > } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { > GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); >+ //Need to check eOpposite() of the metaFeature >+ GenFeature reverseMetaFeature = metaFeature == null ? null : metaFeature.getReverse(); >+ if (reverseMetaFeature != null && !reverseMetaFeature.isDerived()) { >+ GenFeature _feature = reverseMetaFeature; >+ String _ownerInstance = "target.getElement()"; >+ String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;"; >+ GenClass _ownerGenClass = null; >+%> >+<%@ include file="featureMultiplicity.jetinc"%> >+<% >+ } > %> > domainModelAddCommand = <%=importManager.getImportedName(metaFeature.getEcoreFeature().isMany()? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")%>.create(domainModelEditDomain, source.getElement(), > <%=importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())%>.eINSTANCE.get<%=metaFeature.getFeatureAccessorName()%>(), target.getElement()); >Index: templates/parts/createAddCommand.jetinc >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.codegen.lite/templates/parts/createAddCommand.jetinc,v >retrieving revision 1.1 >diff -u -r1.1 createAddCommand.jetinc >--- templates/parts/createAddCommand.jetinc 9 Oct 2006 17:03:14 -0000 1.1 >+++ templates/parts/createAddCommand.jetinc 11 Oct 2006 14:02:55 -0000 >@@ -83,12 +83,26 @@ > GenFeature childFeature = facet.getChildMetaFeature(); > GenFeature containmentFeature = facet.getContainmentMetaFeature(); > if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { >+ GenFeature _feature = childFeature; >+ String _ownerInstance = _getViewCode + ".getElement()"; >+ String _exceedsUpperBound = "return " + importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand") + ".INSTANCE;"; >+ GenClass _ownerGenClass = null; > %> >+<%@ include file="featureMultiplicity.jetinc"%> > result.append(<%=importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")%>.create( > editingDomain, > <%=_getViewCode%>.getElement(), <%=importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())%>.eINSTANCE.get<%=childFeature.getFeatureAccessorName()%>(), element)); > <% > } >+ { >+ GenFeature _feature = containmentFeature; >+ String _ownerInstance = _getViewCode + ".getElement()"; >+ String _exceedsUpperBound = "return " + importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand") + ".INSTANCE;"; >+ GenClass _ownerGenClass = null; >+%> >+<%@ include file="featureMultiplicity.jetinc"%> >+<% >+ } > %> > result.append(<%=importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")%>.create( > editingDomain, >Index: templates/parts/DiagramEditPart.javajet >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.codegen.lite/templates/parts/DiagramEditPart.javajet,v >retrieving revision 1.12 >diff -u -r1.12 DiagramEditPart.javajet >--- templates/parts/DiagramEditPart.javajet 9 Oct 2006 17:03:14 -0000 1.12 >+++ templates/parts/DiagramEditPart.javajet 11 Oct 2006 14:02:54 -0000 >@@ -251,7 +251,6 @@ > GenTopLevelNode next = (GenTopLevelNode)it.next(); > boolean isStatic = true; > boolean isListLayout = false; >- String resolvedSemanticElement = "parent.getElement()"; > %> > <%@ include file="createNodeCommand.javajetinc"%> > <% >Index: templates/parts/CompartmentEditPart.javajet >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.codegen.lite/templates/parts/CompartmentEditPart.javajet,v >retrieving revision 1.11 >diff -u -r1.11 CompartmentEditPart.javajet >--- templates/parts/CompartmentEditPart.javajet 9 Oct 2006 17:03:14 -0000 1.11 >+++ templates/parts/CompartmentEditPart.javajet 11 Oct 2006 14:02:54 -0000 >@@ -241,7 +241,6 @@ > GenChildNode next = (GenChildNode)it.next(); > boolean isStatic = false; > boolean isListLayout = genCompartment.isListLayout(); >- String resolvedSemanticElement = "resolveSemanticElement()"; > %> > <%@ include file="createNodeCommand.javajetinc"%> > <% >Index: src-templates/org/eclipse/gmf/codegen/templates/lite/parts/CompartmentEditPartGenerator.java >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/CompartmentEditPartGenerator.java,v >retrieving revision 1.13 >diff -u -r1.13 CompartmentEditPartGenerator.java >--- src-templates/org/eclipse/gmf/codegen/templates/lite/parts/CompartmentEditPartGenerator.java 9 Oct 2006 17:03:14 -0000 1.13 >+++ src-templates/org/eclipse/gmf/codegen/templates/lite/parts/CompartmentEditPartGenerator.java 11 Oct 2006 14:02:54 -0000 >@@ -115,314 +115,366 @@ > protected final String TEXT_96 = ".UNSET_VALUE));"; > protected final String TEXT_97 = NL + "\t\t\t\t\tbreak;"; > protected final String TEXT_98 = NL + "\t\t\t\t\t}\t"; >- protected final String TEXT_99 = NL + "\t\t\t\t\tresult.append("; >- protected final String TEXT_100 = ".create(" + NL + "\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t"; >- protected final String TEXT_101 = ".getElement(), "; >- protected final String TEXT_102 = ".eINSTANCE.get"; >- protected final String TEXT_103 = "(), element));"; >- protected final String TEXT_104 = NL + "\t\t\t\t\tresult.append("; >- protected final String TEXT_105 = ".create(" + NL + "\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t"; >- protected final String TEXT_106 = ".getElement(), "; >- protected final String TEXT_107 = ".eINSTANCE.get"; >- protected final String TEXT_108 = "(), element));"; >- protected final String TEXT_109 = NL + "\t\t\t\t\tresult.append("; >- protected final String TEXT_110 = ".create(editingDomain, childNode.eContainer(), childNode.eContainmentFeature(), childNode));" + NL + "\t\t\t\t\tif (newVisualID == visualID) {" + NL + "\t\t\t\t\t\tresult.append("; >- protected final String TEXT_111 = ".create(editingDomain, "; >- protected final String TEXT_112 = ", "; >- protected final String TEXT_113 = ".eINSTANCE.getView_PersistedChildren(), childNode));" + NL + "\t\t\t\t\t\tresult.append(new "; >- protected final String TEXT_114 = "(childNode, "; >- protected final String TEXT_115 = "null"; >- protected final String TEXT_116 = "("; >- protected final String TEXT_117 = ") constraint"; >- protected final String TEXT_118 = "));" + NL + "\t\t\t\t\t} else {"; >- protected final String TEXT_119 = NL + "\t\t\t\t\t\tresult.append(new "; >- protected final String TEXT_120 = "("; >- protected final String TEXT_121 = ", element, "; >- protected final String TEXT_122 = "null"; >- protected final String TEXT_123 = "(("; >- protected final String TEXT_124 = ") constraint).getCopy().union(new "; >- protected final String TEXT_125 = "("; >- protected final String TEXT_126 = ", "; >- protected final String TEXT_127 = "))"; >- protected final String TEXT_128 = ", "; >- protected final String TEXT_129 = ".INSTANCE));"; >- protected final String TEXT_130 = NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tcommand = result;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;"; >- protected final String TEXT_131 = NL + "\t\t\t}" + NL + "\t\t\tif (command != null) {" + NL + "\t\t\t\treturn new "; >- protected final String TEXT_132 = "(editingDomain, command);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "\treturn "; >- protected final String TEXT_133 = ".INSTANCE;" + NL + "}"; >- protected final String TEXT_134 = NL; >- protected final String TEXT_135 = NL + "protected "; >- protected final String TEXT_136 = " getCloneCommand("; >- protected final String TEXT_137 = " request) {" + NL + "\t"; >- protected final String TEXT_138 = " editParts = request.getEditParts();" + NL + "\t"; >- protected final String TEXT_139 = " command = new "; >- protected final String TEXT_140 = "();" + NL + "\tcommand.setDebugLabel(\"Clone in ConstrainedLayoutEditPolicy\");//$NON-NLS-1$" + NL + "\t"; >- protected final String TEXT_141 = " childPart;" + NL + "\t"; >- protected final String TEXT_142 = " r;" + NL + "\tObject constraint;" + NL + "" + NL + "\tfor (int i = 0; i < editParts.size(); i++) {" + NL + "\t\tchildPart = ("; >- protected final String TEXT_143 = ")editParts.get(i);" + NL + "\t\tr = childPart.getFigure().getBounds().getCopy();" + NL + "\t\t//convert r to absolute from childpart figure" + NL + "\t\tchildPart.getFigure().translateToAbsolute(r);" + NL + "\t\tr = request.getTransformedRectangle(r);" + NL + "\t\t//convert this figure to relative " + NL + "\t\tgetLayoutContainer().translateToRelative(r);" + NL + "\t\tgetLayoutContainer().translateFromParent(r);" + NL + "\t\tr.translate(getLayoutOrigin().getNegated());" + NL + "\t\tconstraint = getConstraintFor(r);" + NL + "\t\tcommand.add(createCloneCommand(childPart," + NL + "\t\t\ttranslateToModelConstraint(constraint)));" + NL + "\t}" + NL + "\treturn command.unwrap();" + NL + "}" + NL + "protected "; >- protected final String TEXT_144 = " createCloneCommand(final "; >- protected final String TEXT_145 = " child, final Object constraint) {" + NL + "\tif (child.getModel() instanceof "; >- protected final String TEXT_146 = ") {" + NL + "\t\tfinal "; >- protected final String TEXT_147 = " childNode = ("; >- protected final String TEXT_148 = ") child.getModel();" + NL + "\t\tfinal "; >- protected final String TEXT_149 = " editingDomain = "; >- protected final String TEXT_150 = ".getEditingDomain(childNode.getDiagram().getElement());" + NL + "\t\tString modelID = "; >- protected final String TEXT_151 = ".getModelID(childNode);" + NL + "\t\tif ("; >- protected final String TEXT_152 = ".MODEL_ID.equals(modelID)) {" + NL + "\t\t\tfinal int newVisualID = "; >- protected final String TEXT_153 = ".INSTANCE.getNodeVisualID("; >- protected final String TEXT_154 = ", childNode.getElement());" + NL + "\t\t\t"; >- protected final String TEXT_155 = " command = null;" + NL + "\t\t\tswitch (newVisualID) {"; >- protected final String TEXT_156 = NL + "\t\t\tcase "; >- protected final String TEXT_157 = ".VISUAL_ID:" + NL + "\t\t\t\tcommand = new "; >- protected final String TEXT_158 = "() {" + NL + "\t\t\t\t\tprivate "; >- protected final String TEXT_159 = " afterCopyCommand;" + NL + "\t\t\t\t\tprotected "; >- protected final String TEXT_160 = " createCommand() {" + NL + "\t\t\t\t\t\t"; >- protected final String TEXT_161 = " element = childNode.getElement();" + NL + "\t\t\t\t\t\t//We are being optimistic here about whether further commands can be executed." + NL + "\t\t\t\t\t\t//Otherwise, we would have to execute the CopyCommand on every mouse move, which could be much too expensive. " + NL + "\t\t\t\t\t\treturn "; >- protected final String TEXT_162 = ".create(editingDomain, element);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void execute() {" + NL + "\t\t\t\t\t\tsuper.execute();" + NL + "\t\t\t\t\t\tfinal "; >- protected final String TEXT_163 = " results = super.getResult();" + NL + "\t\t\t\t\t\tassert results.size() == 1;" + NL + "\t\t\t\t\t\t"; >- protected final String TEXT_164 = " result = ("; >- protected final String TEXT_165 = ") results.iterator().next();" + NL + "\t\t\t\t\t\tafterCopyCommand = new "; >- protected final String TEXT_166 = "();"; >- protected final String TEXT_167 = NL + "\t\t\t\t\t\tafterCopyCommand.append("; >- protected final String TEXT_168 = ".create(" + NL + "\t\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t\t"; >- protected final String TEXT_169 = ".getElement(), "; >- protected final String TEXT_170 = ".eINSTANCE.get"; >- protected final String TEXT_171 = "(), result));"; >- protected final String TEXT_172 = NL + "\t\t\t\t\t\tafterCopyCommand.append("; >- protected final String TEXT_173 = ".create(" + NL + "\t\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t\t"; >- protected final String TEXT_174 = ".getElement(), "; >- protected final String TEXT_175 = ".eINSTANCE.get"; >- protected final String TEXT_176 = "(), result));"; >- protected final String TEXT_177 = NL + "\t\t\t\t\t\tafterCopyCommand.append(new "; >- protected final String TEXT_178 = "("; >- protected final String TEXT_179 = ", result, "; >- protected final String TEXT_180 = "null"; >- protected final String TEXT_181 = "(("; >- protected final String TEXT_182 = ") constraint).getCopy().union(new "; >- protected final String TEXT_183 = "("; >- protected final String TEXT_184 = ", "; >- protected final String TEXT_185 = "))"; >- protected final String TEXT_186 = ", "; >- protected final String TEXT_187 = ".INSTANCE));" + NL + "\t\t\t\t\t\tif (afterCopyCommand.canExecute()) {" + NL + "\t\t\t\t\t\t\tafterCopyCommand.execute();" + NL + "\t\t\t\t\t\t} else {" + NL + "\t\t\t\t\t\t\tassert false;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void undo() {" + NL + "\t\t\t\t\t\tafterCopyCommand.undo();" + NL + "\t\t\t\t\t\tsuper.undo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void redo() {" + NL + "\t\t\t\t\t\tsuper.redo();" + NL + "\t\t\t\t\t\tafterCopyCommand.redo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "\t\t\t\tbreak;"; >- protected final String TEXT_188 = NL + "\t\t\t}" + NL + "\t\t\tif (command != null) {" + NL + "\t\t\t\treturn new "; >- protected final String TEXT_189 = "(editingDomain, command);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "\treturn "; >- protected final String TEXT_190 = ".INSTANCE;" + NL + "}"; >- protected final String TEXT_191 = NL + "\t\t\tprotected Command getCreateCommand(CreateRequest request) {"; >- protected final String TEXT_192 = NL + "\t\t\t\tif (request instanceof "; >- protected final String TEXT_193 = ") {" + NL + "\t\t\t\t\t"; >- protected final String TEXT_194 = " requestEx = ("; >- protected final String TEXT_195 = ") request;" + NL + "\t\t\t\t\tint[] visualIds = requestEx.getVisualIds();" + NL + "\t\t\t\t\t"; >- protected final String TEXT_196 = " result = new "; >- protected final String TEXT_197 = "();" + NL + "\t\t\t\t\tfor(int i = 0; i < visualIds.length; i++) {" + NL + "\t\t\t\t\t\tint nextVisualId = visualIds[i];" + NL + "\t\t\t\t\t\tswitch (nextVisualId) {"; >- protected final String TEXT_198 = NL + "\t\t\t\t\t\tcase "; >- protected final String TEXT_199 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\t\tresult.append(new Create"; >- protected final String TEXT_200 = "Command((View) getModel(), requestEx"; >- protected final String TEXT_201 = ", " + NL + "\t\t\t\t\t\t\t\t("; >- protected final String TEXT_202 = ")getConstraintFor(request)"; >- protected final String TEXT_203 = "));" + NL + "\t\t\t\t\t\t\tbreak;"; >- protected final String TEXT_204 = NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\treturn new "; >- protected final String TEXT_205 = "("; >- protected final String TEXT_206 = ".getEditingDomain(((View) getModel()).getDiagram().getElement()), result);" + NL + "\t\t\t\t}"; >- protected final String TEXT_207 = NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t});" + NL + "\t\tinstallNotationModelRefresher();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected String getTitleName() {" + NL + "\t\treturn \""; >- protected final String TEXT_208 = "\";" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; >- protected final String TEXT_209 = " createFigure() {" + NL + "\t\t"; >- protected final String TEXT_210 = " result = new "; >- protected final String TEXT_211 = "();" + NL + "\t\tresult.setLabel(getTitleName());" + NL + "\t\tresult.setOpaque(false);" + NL + "\t\tresult.setLayoutManager(new "; >- protected final String TEXT_212 = "());" + NL + "\t\t"; >- protected final String TEXT_213 = " scrollPane = new "; >- protected final String TEXT_214 = "();" + NL + "\t\tresult.add(scrollPane);"; >- protected final String TEXT_215 = NL + "\t\t"; >- protected final String TEXT_216 = " viewport = new "; >- protected final String TEXT_217 = "();" + NL + "\t\tcontentPane = new "; >- protected final String TEXT_218 = "();" + NL + "\t\tcontentPane.setLayoutManager(new "; >- protected final String TEXT_219 = "());"; >- protected final String TEXT_220 = NL + "\t\t"; >- protected final String TEXT_221 = " viewport = new "; >- protected final String TEXT_222 = "();" + NL + "\t\tcontentPane = new "; >- protected final String TEXT_223 = "();" + NL + "\t\tcontentPane.setLayoutManager(new "; >- protected final String TEXT_224 = "());"; >- protected final String TEXT_225 = NL + "\t\tviewport.setContents(contentPane);" + NL + "\t\tscrollPane.setViewport(viewport);" + NL + "\t\treturn result;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic IFigure getContentPane() {" + NL + "\t\treturn contentPane;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate IFigure contentPane;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_226 = " resolveSemanticElement() {" + NL + "\t\tView view = getDiagramNode();" + NL + "\t\treturn (view.getElement() instanceof "; >- protected final String TEXT_227 = ") ? ("; >- protected final String TEXT_228 = ") view.getElement() : null;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void activate() {" + NL + "\t\tsuper.activate();" + NL + "\t\tinstallNotationModelRefresher();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void deactivate() {" + NL + "\t\tuninstallNotationModelRefresher();" + NL + "\t\tsuper.deactivate();" + NL + "\t}" + NL; >- protected final String TEXT_229 = NL; >- protected final String TEXT_230 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void installNotationModelRefresher() {" + NL + "\t\t"; >- protected final String TEXT_231 = " refresher = getNotationModelRefresher();" + NL + "\t\tif (refresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >- protected final String TEXT_232 = " domainModelEditDomain = "; >- protected final String TEXT_233 = ".getEditingDomain("; >- protected final String TEXT_234 = ".getElement());" + NL + "\t\trefresher.install(domainModelEditDomain);" + NL + "\t\trefreshNotationModel();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void uninstallNotationModelRefresher() {" + NL + "\t\tgetNotationModelRefresher().uninstall();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_235 = " notationModelRefresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_236 = " getNotationModelRefresher() {" + NL + "\t\tif (notationModelRefresher == null) {" + NL + "\t\t\tnotationModelRefresher = new NotationModelRefresher();" + NL + "\t\t}" + NL + "\t\treturn notationModelRefresher;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class NotationModelRefresher extends "; >- protected final String TEXT_237 = " {"; >- protected final String TEXT_238 = NL + NL + "\t\t/**" + NL + "\t\t * NB: Children of this element are selected based on constraint declared in "; >- protected final String TEXT_239 = ". " + NL + "\t\t * Since no assumptions may be made concerning the runtime behavior of the constraint, <b>any</b> non-touch notification may result in " + NL + "\t\t * notational model having to be updated." + NL + "\t\t * <p/>User is encouraged to change implementation of this method to provide an optimization if it is safe to assume that not all notifications" + NL + "\t\t * result in such an update." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >- protected final String TEXT_240 = " getConstrainedChildrenFilter() {" + NL + "\t\t\treturn "; >- protected final String TEXT_241 = ".NOT_TOUCH;" + NL + "\t\t}"; >- protected final String TEXT_242 = NL + NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly affect the notational model" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_243 = " createFilter() {"; >- protected final String TEXT_244 = NL + "\t\t\t"; >- protected final String TEXT_245 = " filter = "; >- protected final String TEXT_246 = ".createFeatureFilter("; >- protected final String TEXT_247 = ".eINSTANCE.get"; >- protected final String TEXT_248 = "());"; >- protected final String TEXT_249 = NL + "\t\t\tfilter = filter.or("; >- protected final String TEXT_250 = ".createFeatureFilter("; >- protected final String TEXT_251 = ".eINSTANCE.get"; >- protected final String TEXT_252 = "()));"; >- protected final String TEXT_253 = NL + "\t\t\tfilter = filter.and("; >- protected final String TEXT_254 = ".createNotifierFilter("; >- protected final String TEXT_255 = ".getElement()));"; >- protected final String TEXT_256 = NL + "\t\t\t"; >- protected final String TEXT_257 = " filter = "; >- protected final String TEXT_258 = ".createNotifierFilter("; >- protected final String TEXT_259 = ".getElement());"; >- protected final String TEXT_260 = NL + "\t\t\tfilter = getConstrainedChildrenFilter().or(filter);"; >- protected final String TEXT_261 = NL + "\t\t\t"; >- protected final String TEXT_262 = " filter = getConstrainedChildrenFilter();"; >- protected final String TEXT_263 = NL + "\t\t\t"; >- protected final String TEXT_264 = " filter = "; >- protected final String TEXT_265 = ".NOT_TOUCH;"; >- protected final String TEXT_266 = NL + "\t\t\treturn filter;"; >- protected final String TEXT_267 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_268 = " getCreateNotationalElementCommand("; >- protected final String TEXT_269 = " descriptor) {"; >- protected final String TEXT_270 = NL; >- protected final String TEXT_271 = "\t\t\t"; >- protected final String TEXT_272 = " domainElement = descriptor.getElement();" + NL + "\t\t\tint nodeVisualID = descriptor.getVisualID();" + NL + "\t\t\tswitch (nodeVisualID) {"; >- protected final String TEXT_273 = NL + "\t\t\tcase "; >- protected final String TEXT_274 = ".VISUAL_ID:" + NL + "\t\t\t\tif (domainElement instanceof "; >- protected final String TEXT_275 = ") {" + NL + "\t\t\t\t\treturn new "; >- protected final String TEXT_276 = "("; >- protected final String TEXT_277 = ", domainElement, "; >- protected final String TEXT_278 = "new "; >- protected final String TEXT_279 = "(0, 0, "; >- protected final String TEXT_280 = ", "; >- protected final String TEXT_281 = ")"; >- protected final String TEXT_282 = NL + "null"; >- protected final String TEXT_283 = ", "; >- protected final String TEXT_284 = ".INSTANCE);" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn null;"; >- protected final String TEXT_285 = NL + "\t\t\tdefault:" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}"; >- protected final String TEXT_286 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_287 = " getSemanticChildNodes() {"; >- protected final String TEXT_288 = NL; >- protected final String TEXT_289 = NL + "\treturn "; >- protected final String TEXT_290 = ".EMPTY_LIST;"; >- protected final String TEXT_291 = NL + "\t"; >- protected final String TEXT_292 = " result = new "; >- protected final String TEXT_293 = "();"; >- protected final String TEXT_294 = NL + "\t"; >- protected final String TEXT_295 = " viewObject = "; >- protected final String TEXT_296 = ";" + NL + "\t"; >- protected final String TEXT_297 = " modelObject = viewObject.getElement();" + NL + "\t"; >- protected final String TEXT_298 = " nextValue;" + NL + "\tint nodeVID;"; >- protected final String TEXT_299 = NL + "\tfor("; >- protected final String TEXT_300 = " it = "; >- protected final String TEXT_301 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = ("; >- protected final String TEXT_302 = ") it.next();"; >- protected final String TEXT_303 = NL + "\tnextValue = ("; >- protected final String TEXT_304 = ")"; >- protected final String TEXT_305 = ";"; >- protected final String TEXT_306 = NL + "\tnodeVID = "; >- protected final String TEXT_307 = ".INSTANCE.getNodeVisualID(viewObject, nextValue);"; >- protected final String TEXT_308 = NL + "\tswitch (nodeVID) {"; >- protected final String TEXT_309 = NL + "\tcase "; >- protected final String TEXT_310 = ".VISUAL_ID: {"; >- protected final String TEXT_311 = NL + "\tif ("; >- protected final String TEXT_312 = ".VISUAL_ID == nodeVID) {"; >- protected final String TEXT_313 = NL + "\t\tresult.add(new "; >- protected final String TEXT_314 = "(nextValue, nodeVID));"; >- protected final String TEXT_315 = NL + "\t\tbreak;" + NL + "\t\t}"; >- protected final String TEXT_316 = NL + "\t\t}"; >- protected final String TEXT_317 = NL + "\t}"; >- protected final String TEXT_318 = NL + "\t}"; >- protected final String TEXT_319 = NL + "\treturn result;"; >- protected final String TEXT_320 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Returns whether a notational element should be created for the given domain element. " + NL + "\t\t * The generated code always returns "; >- protected final String TEXT_321 = ". " + NL + "\t\t * User can change implementation of this method to handle a more sophisticated logic." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean shouldCreateView("; >- protected final String TEXT_322 = " descriptor) {" + NL + "\t\t\treturn "; >- protected final String TEXT_323 = ";" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_324 = " getHost() {" + NL + "\t\t\treturn "; >- protected final String TEXT_325 = ";" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshNotationModel() {" + NL + "\t\t"; >- protected final String TEXT_326 = " childRefresher = getNotationModelRefresher();" + NL + "\t\tif (!childRefresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >- protected final String TEXT_327 = " command = childRefresher.buildRefreshNotationModelCommand();" + NL + "\t\tif (command == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >- protected final String TEXT_328 = " domainModelEditDomain = "; >- protected final String TEXT_329 = ".getEditingDomain("; >- protected final String TEXT_330 = ".getElement());" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(new "; >- protected final String TEXT_331 = "(domainModelEditDomain, command));" + NL + "\t}" + NL; >- protected final String TEXT_332 = NL; >- protected final String TEXT_333 = NL; >- protected final String TEXT_334 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_335 = " structuralFeatures2Refresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Refresher getRefresher("; >- protected final String TEXT_336 = " feature, "; >- protected final String TEXT_337 = " msg) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\treturn (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t}" + NL + "" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void createRefreshers() {" + NL + "\t\tstructuralFeatures2Refresher = new HashMap();"; >- protected final String TEXT_338 = NL; >- protected final String TEXT_339 = "\t\tRefresher childrenRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshChildren();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; >- protected final String TEXT_340 = ".eINSTANCE.getView_PersistedChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; >- protected final String TEXT_341 = ".eINSTANCE.getView_TransientChildren(), childrenRefresher);"; >- protected final String TEXT_342 = NL; >- protected final String TEXT_343 = "\t\tRefresher visibilityRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshVisibility();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; >- protected final String TEXT_344 = ".eINSTANCE.getView_Visible(), visibilityRefresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisuals() {" + NL + "\t\tsuper.refreshVisuals();" + NL + "//XXX:\t\trefreshBackgroundColor();" + NL + "//XXX:\t\trefreshForegroundColor();" + NL + "//XXX:\t\trefreshFont();" + NL + "\t\trefreshVisibility();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisibility() {" + NL + "\t\tboolean isVisible = ((View)getModel()).isVisible();" + NL + "\t\tboolean wasVisible = getFigure().isVisible();" + NL + "\t\tif (isVisible == wasVisible) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\tif (!isVisible && (getSelected() != SELECTED_NONE)) {" + NL + "\t\t\tgetViewer().deselect(this);" + NL + "\t\t}" + NL + "" + NL + "\t\tgetFigure().setVisible(isVisible);" + NL + "\t\tgetFigure().revalidate();" + NL + "\t}" + NL; >- protected final String TEXT_345 = NL; >- protected final String TEXT_346 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_347 = "static "; >- protected final String TEXT_348 = "class Create"; >- protected final String TEXT_349 = "Command extends "; >- protected final String TEXT_350 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; >- protected final String TEXT_351 = " notationAddCommand;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Create"; >- protected final String TEXT_352 = "Command("; >- protected final String TEXT_353 = " parent, "; >- protected final String TEXT_354 = " request"; >- protected final String TEXT_355 = ", "; >- protected final String TEXT_356 = " constraint"; >- protected final String TEXT_357 = ") {" + NL + "\t\t\t"; >- protected final String TEXT_358 = " domainModelEditDomain = "; >- protected final String TEXT_359 = ".getEditingDomain(parent.getDiagram().getElement());"; >- protected final String TEXT_360 = NL + "\t\t\t"; >- protected final String TEXT_361 = " createdDomainElement = "; >- protected final String TEXT_362 = ".eINSTANCE.create(" + NL + "\t\t\t\t"; >- protected final String TEXT_363 = ".eINSTANCE.get"; >- protected final String TEXT_364 = "());"; >- protected final String TEXT_365 = NL + "\t\t\t"; >- protected final String TEXT_366 = " createdDomainElement = "; >- protected final String TEXT_367 = ".eINSTANCE.create"; >- protected final String TEXT_368 = "();"; >- protected final String TEXT_369 = NL + "\t\t\t"; >- protected final String TEXT_370 = NL + "\t\t\t"; >- protected final String TEXT_371 = "."; >- protected final String TEXT_372 = ".initializeElement("; >- protected final String TEXT_373 = "("; >- protected final String TEXT_374 = ") "; >- protected final String TEXT_375 = "createdDomainElement);"; >- protected final String TEXT_376 = NL + "\t\t\t"; >- protected final String TEXT_377 = " compoundCommand = new "; >- protected final String TEXT_378 = "();" + NL + "\t\t\tcompoundCommand.append("; >- protected final String TEXT_379 = ".create(domainModelEditDomain, "; >- protected final String TEXT_380 = ", " + NL + "\t\t\t\t"; >- protected final String TEXT_381 = ".eINSTANCE.get"; >- protected final String TEXT_382 = "(), createdDomainElement));" + NL + "\t\t\tcompoundCommand.append("; >- protected final String TEXT_383 = ".create(domainModelEditDomain, "; >- protected final String TEXT_384 = ", " + NL + "\t\t\t\t"; >- protected final String TEXT_385 = ".eINSTANCE.get"; >- protected final String TEXT_386 = "(), createdDomainElement));" + NL + "\t\t\tthis.domainModelAddCommand = compoundCommand;"; >- protected final String TEXT_387 = NL + "\t\t\tthis.domainModelAddCommand = "; >- protected final String TEXT_388 = ".create(domainModelEditDomain, "; >- protected final String TEXT_389 = ", " + NL + "\t\t\t\t"; >- protected final String TEXT_390 = ".eINSTANCE.get"; >- protected final String TEXT_391 = "(), createdDomainElement);"; >- protected final String TEXT_392 = NL + "\t\t\tconstraint = constraint.union(new "; >- protected final String TEXT_393 = "("; >- protected final String TEXT_394 = ", "; >- protected final String TEXT_395 = "));"; >- protected final String TEXT_396 = NL + "\t\t\tthis.notationAddCommand = new "; >- protected final String TEXT_397 = "(parent, "; >- protected final String TEXT_398 = "("; >- protected final String TEXT_399 = ") "; >- protected final String TEXT_400 = "createdDomainElement, " + NL + "\t\t\t\t"; >- protected final String TEXT_401 = "constraint"; >- protected final String TEXT_402 = "null"; >- protected final String TEXT_403 = ", "; >- protected final String TEXT_404 = ".INSTANCE);" + NL + "\t\t\trequest.setCreatedObject(notationAddCommand.getCreatedView());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final org.eclipse.emf.common.command.Command domainModelAddCommand;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canExecute() {" + NL + "\t\t\treturn domainModelAddCommand != null" + NL + "\t\t\t\t\t&& domainModelAddCommand.canExecute() && notationAddCommand != null && notationAddCommand.canExecute();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn domainModelAddCommand != null" + NL + "\t\t\t\t\t&& domainModelAddCommand.canUndo() && notationAddCommand != null && notationAddCommand.canUndo();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\tdomainModelAddCommand.execute();" + NL + "\t\t\tnotationAddCommand.execute();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\tnotationAddCommand.undo();" + NL + "\t\t\tdomainModelAddCommand.undo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\texecute();" + NL + "\t\t}" + NL + "\t}"; >- protected final String TEXT_405 = NL + "}" + NL; >- protected final String TEXT_406 = NL; >+ protected final String TEXT_99 = NL; >+ protected final String TEXT_100 = NL + "\t\tif ("; >+ protected final String TEXT_101 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_102 = NL + "\t\t}"; >+ protected final String TEXT_103 = NL + "\t\tif ("; >+ protected final String TEXT_104 = ".size() >= "; >+ protected final String TEXT_105 = ".eINSTANCE.get"; >+ protected final String TEXT_106 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_107 = NL + "\t\t}"; >+ protected final String TEXT_108 = NL + "\t\t\t\t\tresult.append("; >+ protected final String TEXT_109 = ".create(" + NL + "\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_110 = ".getElement(), "; >+ protected final String TEXT_111 = ".eINSTANCE.get"; >+ protected final String TEXT_112 = "(), element));"; >+ protected final String TEXT_113 = NL; >+ protected final String TEXT_114 = NL + "\t\tif ("; >+ protected final String TEXT_115 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_116 = NL + "\t\t}"; >+ protected final String TEXT_117 = NL + "\t\tif ("; >+ protected final String TEXT_118 = ".size() >= "; >+ protected final String TEXT_119 = ".eINSTANCE.get"; >+ protected final String TEXT_120 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_121 = NL + "\t\t}"; >+ protected final String TEXT_122 = NL + "\t\t\t\t\tresult.append("; >+ protected final String TEXT_123 = ".create(" + NL + "\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_124 = ".getElement(), "; >+ protected final String TEXT_125 = ".eINSTANCE.get"; >+ protected final String TEXT_126 = "(), element));"; >+ protected final String TEXT_127 = NL + "\t\t\t\t\tresult.append("; >+ protected final String TEXT_128 = ".create(editingDomain, childNode.eContainer(), childNode.eContainmentFeature(), childNode));" + NL + "\t\t\t\t\tif (newVisualID == visualID) {" + NL + "\t\t\t\t\t\tresult.append("; >+ protected final String TEXT_129 = ".create(editingDomain, "; >+ protected final String TEXT_130 = ", "; >+ protected final String TEXT_131 = ".eINSTANCE.getView_PersistedChildren(), childNode));" + NL + "\t\t\t\t\t\tresult.append(new "; >+ protected final String TEXT_132 = "(childNode, "; >+ protected final String TEXT_133 = "null"; >+ protected final String TEXT_134 = "("; >+ protected final String TEXT_135 = ") constraint"; >+ protected final String TEXT_136 = "));" + NL + "\t\t\t\t\t} else {"; >+ protected final String TEXT_137 = NL + "\t\t\t\t\t\tresult.append(new "; >+ protected final String TEXT_138 = "("; >+ protected final String TEXT_139 = ", element, "; >+ protected final String TEXT_140 = "null"; >+ protected final String TEXT_141 = "(("; >+ protected final String TEXT_142 = ") constraint).getCopy().union(new "; >+ protected final String TEXT_143 = "("; >+ protected final String TEXT_144 = ", "; >+ protected final String TEXT_145 = "))"; >+ protected final String TEXT_146 = ", "; >+ protected final String TEXT_147 = ".INSTANCE));"; >+ protected final String TEXT_148 = NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tcommand = result;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;"; >+ protected final String TEXT_149 = NL + "\t\t\t}" + NL + "\t\t\tif (command != null) {" + NL + "\t\t\t\treturn new "; >+ protected final String TEXT_150 = "(editingDomain, command);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "\treturn "; >+ protected final String TEXT_151 = ".INSTANCE;" + NL + "}"; >+ protected final String TEXT_152 = NL; >+ protected final String TEXT_153 = NL + "protected "; >+ protected final String TEXT_154 = " getCloneCommand("; >+ protected final String TEXT_155 = " request) {" + NL + "\t"; >+ protected final String TEXT_156 = " editParts = request.getEditParts();" + NL + "\t"; >+ protected final String TEXT_157 = " command = new "; >+ protected final String TEXT_158 = "();" + NL + "\tcommand.setDebugLabel(\"Clone in ConstrainedLayoutEditPolicy\");//$NON-NLS-1$" + NL + "\t"; >+ protected final String TEXT_159 = " childPart;" + NL + "\t"; >+ protected final String TEXT_160 = " r;" + NL + "\tObject constraint;" + NL + "" + NL + "\tfor (int i = 0; i < editParts.size(); i++) {" + NL + "\t\tchildPart = ("; >+ protected final String TEXT_161 = ")editParts.get(i);" + NL + "\t\tr = childPart.getFigure().getBounds().getCopy();" + NL + "\t\t//convert r to absolute from childpart figure" + NL + "\t\tchildPart.getFigure().translateToAbsolute(r);" + NL + "\t\tr = request.getTransformedRectangle(r);" + NL + "\t\t//convert this figure to relative " + NL + "\t\tgetLayoutContainer().translateToRelative(r);" + NL + "\t\tgetLayoutContainer().translateFromParent(r);" + NL + "\t\tr.translate(getLayoutOrigin().getNegated());" + NL + "\t\tconstraint = getConstraintFor(r);" + NL + "\t\tcommand.add(createCloneCommand(childPart," + NL + "\t\t\ttranslateToModelConstraint(constraint)));" + NL + "\t}" + NL + "\treturn command.unwrap();" + NL + "}" + NL + "protected "; >+ protected final String TEXT_162 = " createCloneCommand(final "; >+ protected final String TEXT_163 = " child, final Object constraint) {" + NL + "\tif (child.getModel() instanceof "; >+ protected final String TEXT_164 = ") {" + NL + "\t\tfinal "; >+ protected final String TEXT_165 = " childNode = ("; >+ protected final String TEXT_166 = ") child.getModel();" + NL + "\t\tfinal "; >+ protected final String TEXT_167 = " editingDomain = "; >+ protected final String TEXT_168 = ".getEditingDomain(childNode.getDiagram().getElement());" + NL + "\t\tString modelID = "; >+ protected final String TEXT_169 = ".getModelID(childNode);" + NL + "\t\tif ("; >+ protected final String TEXT_170 = ".MODEL_ID.equals(modelID)) {" + NL + "\t\t\tfinal int newVisualID = "; >+ protected final String TEXT_171 = ".INSTANCE.getNodeVisualID("; >+ protected final String TEXT_172 = ", childNode.getElement());" + NL + "\t\t\t"; >+ protected final String TEXT_173 = " command = null;" + NL + "\t\t\tswitch (newVisualID) {"; >+ protected final String TEXT_174 = NL + "\t\t\tcase "; >+ protected final String TEXT_175 = ".VISUAL_ID:" + NL + "\t\t\t\tcommand = new "; >+ protected final String TEXT_176 = "() {" + NL + "\t\t\t\t\tprivate "; >+ protected final String TEXT_177 = " afterCopyCommand;" + NL + "\t\t\t\t\tprotected "; >+ protected final String TEXT_178 = " createCommand() {" + NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_179 = " element = childNode.getElement();" + NL + "\t\t\t\t\t\t//We are being optimistic here about whether further commands can be executed." + NL + "\t\t\t\t\t\t//Otherwise, we would have to execute the CopyCommand on every mouse move, which could be much too expensive. " + NL + "\t\t\t\t\t\treturn "; >+ protected final String TEXT_180 = ".create(editingDomain, element);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tprotected boolean prepare() {" + NL + "\t\t\t\t\t\tif (!super.prepare()) {" + NL + "\t\t\t\t\t\t\treturn false;" + NL + "\t\t\t\t\t\t}"; >+ protected final String TEXT_181 = NL; >+ protected final String TEXT_182 = NL + "\t\tif ("; >+ protected final String TEXT_183 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_184 = NL + "\t\t}"; >+ protected final String TEXT_185 = NL + "\t\tif ("; >+ protected final String TEXT_186 = ".size() >= "; >+ protected final String TEXT_187 = ".eINSTANCE.get"; >+ protected final String TEXT_188 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_189 = NL + "\t\t}"; >+ protected final String TEXT_190 = NL; >+ protected final String TEXT_191 = NL + "\t\tif ("; >+ protected final String TEXT_192 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_193 = NL + "\t\t}"; >+ protected final String TEXT_194 = NL + "\t\tif ("; >+ protected final String TEXT_195 = ".size() >= "; >+ protected final String TEXT_196 = ".eINSTANCE.get"; >+ protected final String TEXT_197 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_198 = NL + "\t\t}"; >+ protected final String TEXT_199 = NL + "\t\t\t\t\t\treturn true;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void execute() {" + NL + "\t\t\t\t\t\tsuper.execute();" + NL + "\t\t\t\t\t\tfinal "; >+ protected final String TEXT_200 = " results = super.getResult();" + NL + "\t\t\t\t\t\tassert results.size() == 1;" + NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_201 = " result = ("; >+ protected final String TEXT_202 = ") results.iterator().next();" + NL + "\t\t\t\t\t\tafterCopyCommand = new "; >+ protected final String TEXT_203 = "();"; >+ protected final String TEXT_204 = NL + "\t\t\t\t\t\tafterCopyCommand.append("; >+ protected final String TEXT_205 = ".create(" + NL + "\t\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t\t"; >+ protected final String TEXT_206 = ".getElement(), "; >+ protected final String TEXT_207 = ".eINSTANCE.get"; >+ protected final String TEXT_208 = "(), result));"; >+ protected final String TEXT_209 = NL + "\t\t\t\t\t\tafterCopyCommand.append("; >+ protected final String TEXT_210 = ".create(" + NL + "\t\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t\t"; >+ protected final String TEXT_211 = ".getElement(), "; >+ protected final String TEXT_212 = ".eINSTANCE.get"; >+ protected final String TEXT_213 = "(), result));"; >+ protected final String TEXT_214 = NL + "\t\t\t\t\t\tafterCopyCommand.append(new "; >+ protected final String TEXT_215 = "("; >+ protected final String TEXT_216 = ", result, "; >+ protected final String TEXT_217 = "null"; >+ protected final String TEXT_218 = "(("; >+ protected final String TEXT_219 = ") constraint).getCopy().union(new "; >+ protected final String TEXT_220 = "("; >+ protected final String TEXT_221 = ", "; >+ protected final String TEXT_222 = "))"; >+ protected final String TEXT_223 = ", "; >+ protected final String TEXT_224 = ".INSTANCE));" + NL + "\t\t\t\t\t\tif (afterCopyCommand.canExecute()) {" + NL + "\t\t\t\t\t\t\tafterCopyCommand.execute();" + NL + "\t\t\t\t\t\t} else {" + NL + "\t\t\t\t\t\t\tassert false;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void undo() {" + NL + "\t\t\t\t\t\tafterCopyCommand.undo();" + NL + "\t\t\t\t\t\tsuper.undo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void redo() {" + NL + "\t\t\t\t\t\tsuper.redo();" + NL + "\t\t\t\t\t\tafterCopyCommand.redo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "\t\t\t\tbreak;"; >+ protected final String TEXT_225 = NL + "\t\t\t}" + NL + "\t\t\tif (command != null) {" + NL + "\t\t\t\treturn new "; >+ protected final String TEXT_226 = "(editingDomain, command);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "\treturn "; >+ protected final String TEXT_227 = ".INSTANCE;" + NL + "}"; >+ protected final String TEXT_228 = NL + "\t\t\tprotected Command getCreateCommand(CreateRequest request) {"; >+ protected final String TEXT_229 = NL + "\t\t\t\tif (request instanceof "; >+ protected final String TEXT_230 = ") {" + NL + "\t\t\t\t\t"; >+ protected final String TEXT_231 = " requestEx = ("; >+ protected final String TEXT_232 = ") request;" + NL + "\t\t\t\t\tint[] visualIds = requestEx.getVisualIds();" + NL + "\t\t\t\t\t"; >+ protected final String TEXT_233 = " result = new "; >+ protected final String TEXT_234 = "();" + NL + "\t\t\t\t\tfor(int i = 0; i < visualIds.length; i++) {" + NL + "\t\t\t\t\t\tint nextVisualId = visualIds[i];" + NL + "\t\t\t\t\t\tswitch (nextVisualId) {"; >+ protected final String TEXT_235 = NL + "\t\t\t\t\t\tcase "; >+ protected final String TEXT_236 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\t\tresult.append(new Create"; >+ protected final String TEXT_237 = "Command((View) getModel(), requestEx"; >+ protected final String TEXT_238 = ", " + NL + "\t\t\t\t\t\t\t\t("; >+ protected final String TEXT_239 = ")getConstraintFor(request)"; >+ protected final String TEXT_240 = "));" + NL + "\t\t\t\t\t\t\tbreak;"; >+ protected final String TEXT_241 = NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\treturn new "; >+ protected final String TEXT_242 = "("; >+ protected final String TEXT_243 = ".getEditingDomain(((View) getModel()).getDiagram().getElement()), result);" + NL + "\t\t\t\t}"; >+ protected final String TEXT_244 = NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t});" + NL + "\t\tinstallNotationModelRefresher();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected String getTitleName() {" + NL + "\t\treturn \""; >+ protected final String TEXT_245 = "\";" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; >+ protected final String TEXT_246 = " createFigure() {" + NL + "\t\t"; >+ protected final String TEXT_247 = " result = new "; >+ protected final String TEXT_248 = "();" + NL + "\t\tresult.setLabel(getTitleName());" + NL + "\t\tresult.setOpaque(false);" + NL + "\t\tresult.setLayoutManager(new "; >+ protected final String TEXT_249 = "());" + NL + "\t\t"; >+ protected final String TEXT_250 = " scrollPane = new "; >+ protected final String TEXT_251 = "();" + NL + "\t\tresult.add(scrollPane);"; >+ protected final String TEXT_252 = NL + "\t\t"; >+ protected final String TEXT_253 = " viewport = new "; >+ protected final String TEXT_254 = "();" + NL + "\t\tcontentPane = new "; >+ protected final String TEXT_255 = "();" + NL + "\t\tcontentPane.setLayoutManager(new "; >+ protected final String TEXT_256 = "());"; >+ protected final String TEXT_257 = NL + "\t\t"; >+ protected final String TEXT_258 = " viewport = new "; >+ protected final String TEXT_259 = "();" + NL + "\t\tcontentPane = new "; >+ protected final String TEXT_260 = "();" + NL + "\t\tcontentPane.setLayoutManager(new "; >+ protected final String TEXT_261 = "());"; >+ protected final String TEXT_262 = NL + "\t\tviewport.setContents(contentPane);" + NL + "\t\tscrollPane.setViewport(viewport);" + NL + "\t\treturn result;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic IFigure getContentPane() {" + NL + "\t\treturn contentPane;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate IFigure contentPane;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_263 = " resolveSemanticElement() {" + NL + "\t\tView view = getDiagramNode();" + NL + "\t\treturn (view.getElement() instanceof "; >+ protected final String TEXT_264 = ") ? ("; >+ protected final String TEXT_265 = ") view.getElement() : null;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void activate() {" + NL + "\t\tsuper.activate();" + NL + "\t\tinstallNotationModelRefresher();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void deactivate() {" + NL + "\t\tuninstallNotationModelRefresher();" + NL + "\t\tsuper.deactivate();" + NL + "\t}" + NL; >+ protected final String TEXT_266 = NL; >+ protected final String TEXT_267 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void installNotationModelRefresher() {" + NL + "\t\t"; >+ protected final String TEXT_268 = " refresher = getNotationModelRefresher();" + NL + "\t\tif (refresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >+ protected final String TEXT_269 = " domainModelEditDomain = "; >+ protected final String TEXT_270 = ".getEditingDomain("; >+ protected final String TEXT_271 = ".getElement());" + NL + "\t\trefresher.install(domainModelEditDomain);" + NL + "\t\trefreshNotationModel();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void uninstallNotationModelRefresher() {" + NL + "\t\tgetNotationModelRefresher().uninstall();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_272 = " notationModelRefresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_273 = " getNotationModelRefresher() {" + NL + "\t\tif (notationModelRefresher == null) {" + NL + "\t\t\tnotationModelRefresher = new NotationModelRefresher();" + NL + "\t\t}" + NL + "\t\treturn notationModelRefresher;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class NotationModelRefresher extends "; >+ protected final String TEXT_274 = " {"; >+ protected final String TEXT_275 = NL + NL + "\t\t/**" + NL + "\t\t * NB: Children of this element are selected based on constraint declared in "; >+ protected final String TEXT_276 = ". " + NL + "\t\t * Since no assumptions may be made concerning the runtime behavior of the constraint, <b>any</b> non-touch notification may result in " + NL + "\t\t * notational model having to be updated." + NL + "\t\t * <p/>User is encouraged to change implementation of this method to provide an optimization if it is safe to assume that not all notifications" + NL + "\t\t * result in such an update." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >+ protected final String TEXT_277 = " getConstrainedChildrenFilter() {" + NL + "\t\t\treturn "; >+ protected final String TEXT_278 = ".NOT_TOUCH;" + NL + "\t\t}"; >+ protected final String TEXT_279 = NL + NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly affect the notational model" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_280 = " createFilter() {"; >+ protected final String TEXT_281 = NL + "\t\t\t"; >+ protected final String TEXT_282 = " filter = "; >+ protected final String TEXT_283 = ".createFeatureFilter("; >+ protected final String TEXT_284 = ".eINSTANCE.get"; >+ protected final String TEXT_285 = "());"; >+ protected final String TEXT_286 = NL + "\t\t\tfilter = filter.or("; >+ protected final String TEXT_287 = ".createFeatureFilter("; >+ protected final String TEXT_288 = ".eINSTANCE.get"; >+ protected final String TEXT_289 = "()));"; >+ protected final String TEXT_290 = NL + "\t\t\tfilter = filter.and("; >+ protected final String TEXT_291 = ".createNotifierFilter("; >+ protected final String TEXT_292 = ".getElement()));"; >+ protected final String TEXT_293 = NL + "\t\t\t"; >+ protected final String TEXT_294 = " filter = "; >+ protected final String TEXT_295 = ".createNotifierFilter("; >+ protected final String TEXT_296 = ".getElement());"; >+ protected final String TEXT_297 = NL + "\t\t\tfilter = getConstrainedChildrenFilter().or(filter);"; >+ protected final String TEXT_298 = NL + "\t\t\t"; >+ protected final String TEXT_299 = " filter = getConstrainedChildrenFilter();"; >+ protected final String TEXT_300 = NL + "\t\t\t"; >+ protected final String TEXT_301 = " filter = "; >+ protected final String TEXT_302 = ".NOT_TOUCH;"; >+ protected final String TEXT_303 = NL + "\t\t\treturn filter;"; >+ protected final String TEXT_304 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_305 = " getCreateNotationalElementCommand("; >+ protected final String TEXT_306 = " descriptor) {"; >+ protected final String TEXT_307 = NL; >+ protected final String TEXT_308 = "\t\t\t"; >+ protected final String TEXT_309 = " domainElement = descriptor.getElement();" + NL + "\t\t\tint nodeVisualID = descriptor.getVisualID();" + NL + "\t\t\tswitch (nodeVisualID) {"; >+ protected final String TEXT_310 = NL + "\t\t\tcase "; >+ protected final String TEXT_311 = ".VISUAL_ID:" + NL + "\t\t\t\tif (domainElement instanceof "; >+ protected final String TEXT_312 = ") {" + NL + "\t\t\t\t\treturn new "; >+ protected final String TEXT_313 = "("; >+ protected final String TEXT_314 = ", domainElement, "; >+ protected final String TEXT_315 = "new "; >+ protected final String TEXT_316 = "(0, 0, "; >+ protected final String TEXT_317 = ", "; >+ protected final String TEXT_318 = ")"; >+ protected final String TEXT_319 = NL + "null"; >+ protected final String TEXT_320 = ", "; >+ protected final String TEXT_321 = ".INSTANCE);" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn null;"; >+ protected final String TEXT_322 = NL + "\t\t\tdefault:" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}"; >+ protected final String TEXT_323 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_324 = " getSemanticChildNodes() {"; >+ protected final String TEXT_325 = NL; >+ protected final String TEXT_326 = NL + "\treturn "; >+ protected final String TEXT_327 = ".EMPTY_LIST;"; >+ protected final String TEXT_328 = NL + "\t"; >+ protected final String TEXT_329 = " result = new "; >+ protected final String TEXT_330 = "();"; >+ protected final String TEXT_331 = NL + "\t"; >+ protected final String TEXT_332 = " viewObject = "; >+ protected final String TEXT_333 = ";" + NL + "\t"; >+ protected final String TEXT_334 = " modelObject = viewObject.getElement();" + NL + "\t"; >+ protected final String TEXT_335 = " nextValue;" + NL + "\tint nodeVID;"; >+ protected final String TEXT_336 = NL + "\tfor("; >+ protected final String TEXT_337 = " it = "; >+ protected final String TEXT_338 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = ("; >+ protected final String TEXT_339 = ") it.next();"; >+ protected final String TEXT_340 = NL + "\tnextValue = ("; >+ protected final String TEXT_341 = ")"; >+ protected final String TEXT_342 = ";"; >+ protected final String TEXT_343 = NL + "\tnodeVID = "; >+ protected final String TEXT_344 = ".INSTANCE.getNodeVisualID(viewObject, nextValue);"; >+ protected final String TEXT_345 = NL + "\tswitch (nodeVID) {"; >+ protected final String TEXT_346 = NL + "\tcase "; >+ protected final String TEXT_347 = ".VISUAL_ID: {"; >+ protected final String TEXT_348 = NL + "\tif ("; >+ protected final String TEXT_349 = ".VISUAL_ID == nodeVID) {"; >+ protected final String TEXT_350 = NL + "\t\tresult.add(new "; >+ protected final String TEXT_351 = "(nextValue, nodeVID));"; >+ protected final String TEXT_352 = NL + "\t\tbreak;" + NL + "\t\t}"; >+ protected final String TEXT_353 = NL + "\t\t}"; >+ protected final String TEXT_354 = NL + "\t}"; >+ protected final String TEXT_355 = NL + "\t}"; >+ protected final String TEXT_356 = NL + "\treturn result;"; >+ protected final String TEXT_357 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Returns whether a notational element should be created for the given domain element. " + NL + "\t\t * The generated code always returns "; >+ protected final String TEXT_358 = ". " + NL + "\t\t * User can change implementation of this method to handle a more sophisticated logic." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean shouldCreateView("; >+ protected final String TEXT_359 = " descriptor) {" + NL + "\t\t\treturn "; >+ protected final String TEXT_360 = ";" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_361 = " getHost() {" + NL + "\t\t\treturn "; >+ protected final String TEXT_362 = ";" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshNotationModel() {" + NL + "\t\t"; >+ protected final String TEXT_363 = " childRefresher = getNotationModelRefresher();" + NL + "\t\tif (!childRefresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >+ protected final String TEXT_364 = " command = childRefresher.buildRefreshNotationModelCommand();" + NL + "\t\tif (command == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >+ protected final String TEXT_365 = " domainModelEditDomain = "; >+ protected final String TEXT_366 = ".getEditingDomain("; >+ protected final String TEXT_367 = ".getElement());" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(new "; >+ protected final String TEXT_368 = "(domainModelEditDomain, command));" + NL + "\t}" + NL; >+ protected final String TEXT_369 = NL; >+ protected final String TEXT_370 = NL; >+ protected final String TEXT_371 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_372 = " structuralFeatures2Refresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Refresher getRefresher("; >+ protected final String TEXT_373 = " feature, "; >+ protected final String TEXT_374 = " msg) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\treturn (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t}" + NL + "" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void createRefreshers() {" + NL + "\t\tstructuralFeatures2Refresher = new HashMap();"; >+ protected final String TEXT_375 = NL; >+ protected final String TEXT_376 = "\t\tRefresher childrenRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshChildren();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; >+ protected final String TEXT_377 = ".eINSTANCE.getView_PersistedChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; >+ protected final String TEXT_378 = ".eINSTANCE.getView_TransientChildren(), childrenRefresher);"; >+ protected final String TEXT_379 = NL; >+ protected final String TEXT_380 = "\t\tRefresher visibilityRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshVisibility();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; >+ protected final String TEXT_381 = ".eINSTANCE.getView_Visible(), visibilityRefresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisuals() {" + NL + "\t\tsuper.refreshVisuals();" + NL + "//XXX:\t\trefreshBackgroundColor();" + NL + "//XXX:\t\trefreshForegroundColor();" + NL + "//XXX:\t\trefreshFont();" + NL + "\t\trefreshVisibility();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisibility() {" + NL + "\t\tboolean isVisible = ((View)getModel()).isVisible();" + NL + "\t\tboolean wasVisible = getFigure().isVisible();" + NL + "\t\tif (isVisible == wasVisible) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\tif (!isVisible && (getSelected() != SELECTED_NONE)) {" + NL + "\t\t\tgetViewer().deselect(this);" + NL + "\t\t}" + NL + "" + NL + "\t\tgetFigure().setVisible(isVisible);" + NL + "\t\tgetFigure().revalidate();" + NL + "\t}" + NL; >+ protected final String TEXT_382 = NL; >+ protected final String TEXT_383 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_384 = "static "; >+ protected final String TEXT_385 = "class Create"; >+ protected final String TEXT_386 = "Command extends "; >+ protected final String TEXT_387 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; >+ protected final String TEXT_388 = " notationAddCommand;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Create"; >+ protected final String TEXT_389 = "Command("; >+ protected final String TEXT_390 = " parent, "; >+ protected final String TEXT_391 = " request"; >+ protected final String TEXT_392 = ", "; >+ protected final String TEXT_393 = " constraint"; >+ protected final String TEXT_394 = ") {" + NL + "\t\t\t"; >+ protected final String TEXT_395 = " domainModelEditDomain = "; >+ protected final String TEXT_396 = ".getEditingDomain(parent.getDiagram().getElement());"; >+ protected final String TEXT_397 = NL + "\t\t\t"; >+ protected final String TEXT_398 = " createdDomainElement = "; >+ protected final String TEXT_399 = ".eINSTANCE.create(" + NL + "\t\t\t\t"; >+ protected final String TEXT_400 = ".eINSTANCE.get"; >+ protected final String TEXT_401 = "());"; >+ protected final String TEXT_402 = NL + "\t\t\t"; >+ protected final String TEXT_403 = " createdDomainElement = "; >+ protected final String TEXT_404 = ".eINSTANCE.create"; >+ protected final String TEXT_405 = "();"; >+ protected final String TEXT_406 = NL + "\t\t\t"; >+ protected final String TEXT_407 = NL + "\t\t\t"; >+ protected final String TEXT_408 = "."; >+ protected final String TEXT_409 = ".initializeElement("; >+ protected final String TEXT_410 = "("; >+ protected final String TEXT_411 = ") "; >+ protected final String TEXT_412 = "createdDomainElement);"; >+ protected final String TEXT_413 = NL; >+ protected final String TEXT_414 = NL + "\t\tif ("; >+ protected final String TEXT_415 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_416 = NL + "\t\t}"; >+ protected final String TEXT_417 = NL + "\t\tif ("; >+ protected final String TEXT_418 = ".size() >= "; >+ protected final String TEXT_419 = ".eINSTANCE.get"; >+ protected final String TEXT_420 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_421 = NL + "\t\t}"; >+ protected final String TEXT_422 = NL; >+ protected final String TEXT_423 = NL + "\t\tif ("; >+ protected final String TEXT_424 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_425 = NL + "\t\t}"; >+ protected final String TEXT_426 = NL + "\t\tif ("; >+ protected final String TEXT_427 = ".size() >= "; >+ protected final String TEXT_428 = ".eINSTANCE.get"; >+ protected final String TEXT_429 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_430 = NL + "\t\t}"; >+ protected final String TEXT_431 = NL + "\t\t\t"; >+ protected final String TEXT_432 = " compoundCommand = new "; >+ protected final String TEXT_433 = "();" + NL + "\t\t\tcompoundCommand.append("; >+ protected final String TEXT_434 = ".create(domainModelEditDomain, parent.getElement(), " + NL + "\t\t\t\t"; >+ protected final String TEXT_435 = ".eINSTANCE.get"; >+ protected final String TEXT_436 = "(), createdDomainElement));" + NL + "\t\t\tcompoundCommand.append("; >+ protected final String TEXT_437 = ".create(domainModelEditDomain, parent.getElement(), " + NL + "\t\t\t\t"; >+ protected final String TEXT_438 = ".eINSTANCE.get"; >+ protected final String TEXT_439 = "(), createdDomainElement));" + NL + "\t\t\tthis.domainModelAddCommand = compoundCommand;"; >+ protected final String TEXT_440 = NL + "\t\t\tthis.domainModelAddCommand = "; >+ protected final String TEXT_441 = ".create(domainModelEditDomain, parent.getElement(), " + NL + "\t\t\t\t"; >+ protected final String TEXT_442 = ".eINSTANCE.get"; >+ protected final String TEXT_443 = "(), createdDomainElement);"; >+ protected final String TEXT_444 = NL + "\t\t\tconstraint = constraint.union(new "; >+ protected final String TEXT_445 = "("; >+ protected final String TEXT_446 = ", "; >+ protected final String TEXT_447 = "));"; >+ protected final String TEXT_448 = NL + "\t\t\tthis.notationAddCommand = new "; >+ protected final String TEXT_449 = "(parent, "; >+ protected final String TEXT_450 = "("; >+ protected final String TEXT_451 = ") "; >+ protected final String TEXT_452 = "createdDomainElement, " + NL + "\t\t\t\t"; >+ protected final String TEXT_453 = "constraint"; >+ protected final String TEXT_454 = "null"; >+ protected final String TEXT_455 = ", "; >+ protected final String TEXT_456 = ".INSTANCE);" + NL + "\t\t\trequest.setCreatedObject(notationAddCommand.getCreatedView());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final org.eclipse.emf.common.command.Command domainModelAddCommand;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canExecute() {" + NL + "\t\t\treturn domainModelAddCommand != null" + NL + "\t\t\t\t\t&& domainModelAddCommand.canExecute() && notationAddCommand != null && notationAddCommand.canExecute();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn domainModelAddCommand != null" + NL + "\t\t\t\t\t&& domainModelAddCommand.canUndo() && notationAddCommand != null && notationAddCommand.canUndo();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\tdomainModelAddCommand.execute();" + NL + "\t\t\tnotationAddCommand.execute();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\tnotationAddCommand.undo();" + NL + "\t\t\tdomainModelAddCommand.undo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\texecute();" + NL + "\t\t}" + NL + "\t}"; >+ protected final String TEXT_457 = NL + "}" + NL; >+ protected final String TEXT_458 = NL; > > public String generate(Object argument) > { >@@ -753,50 +805,116 @@ > GenFeature childFeature = facet.getChildMetaFeature(); > GenFeature containmentFeature = facet.getContainmentMetaFeature(); > if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { >+ GenFeature _feature = childFeature; >+ String _ownerInstance = _getViewCode + ".getElement()"; >+ String _exceedsUpperBound = "return " + importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand") + ".INSTANCE;"; >+ GenClass _ownerGenClass = null; > > stringBuffer.append(TEXT_99); >- stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >+ >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ > stringBuffer.append(TEXT_100); >- stringBuffer.append(_getViewCode); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); > stringBuffer.append(TEXT_101); >- stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(_exceedsUpperBound); > stringBuffer.append(TEXT_102); >- stringBuffer.append(childFeature.getFeatureAccessorName()); >+ >+ } else { >+ > stringBuffer.append(TEXT_103); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_104); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_105); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_106); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_107); >+ >+ } >+} >+ >+ stringBuffer.append(TEXT_108); >+ stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >+ stringBuffer.append(TEXT_109); >+ stringBuffer.append(_getViewCode); >+ stringBuffer.append(TEXT_110); >+ stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_111); >+ stringBuffer.append(childFeature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_112); > > } >+ { >+ GenFeature _feature = containmentFeature; >+ String _ownerInstance = _getViewCode + ".getElement()"; >+ String _exceedsUpperBound = "return " + importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand") + ".INSTANCE;"; >+ GenClass _ownerGenClass = null; > >- stringBuffer.append(TEXT_104); >+ stringBuffer.append(TEXT_113); >+ >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ >+ stringBuffer.append(TEXT_114); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >+ stringBuffer.append(TEXT_115); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_116); >+ >+ } else { >+ >+ stringBuffer.append(TEXT_117); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_118); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_119); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_120); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_121); >+ >+ } >+} >+ >+ >+ } >+ >+ stringBuffer.append(TEXT_122); > stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_105); >+ stringBuffer.append(TEXT_123); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_106); >+ stringBuffer.append(TEXT_124); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_107); >+ stringBuffer.append(TEXT_125); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_108); >+ stringBuffer.append(TEXT_126); > > } //local declaration for related nodes. > >- stringBuffer.append(TEXT_109); >+ stringBuffer.append(TEXT_127); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_110); >+ stringBuffer.append(TEXT_128); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); >- stringBuffer.append(TEXT_111); >+ stringBuffer.append(TEXT_129); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_112); >+ stringBuffer.append(TEXT_130); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_113); >+ stringBuffer.append(TEXT_131); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.SetBoundsCommand")); >- stringBuffer.append(TEXT_114); >+ stringBuffer.append(TEXT_132); > if (isListLayout) { >- stringBuffer.append(TEXT_115); >+ stringBuffer.append(TEXT_133); > } else { >- stringBuffer.append(TEXT_116); >+ stringBuffer.append(TEXT_134); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >- stringBuffer.append(TEXT_117); >+ stringBuffer.append(TEXT_135); > } >- stringBuffer.append(TEXT_118); >+ stringBuffer.append(TEXT_136); > > { > int defaultWidth = 40; >@@ -807,90 +925,90 @@ > defaultHeight = defSizeAttrs.getHeight(); > } > >- stringBuffer.append(TEXT_119); >+ stringBuffer.append(TEXT_137); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand")); >- stringBuffer.append(TEXT_120); >+ stringBuffer.append(TEXT_138); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_121); >+ stringBuffer.append(TEXT_139); > if (isListLayout) { >- stringBuffer.append(TEXT_122); >+ stringBuffer.append(TEXT_140); > } else { >- stringBuffer.append(TEXT_123); >+ stringBuffer.append(TEXT_141); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >- stringBuffer.append(TEXT_124); >+ stringBuffer.append(TEXT_142); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Dimension")); >- stringBuffer.append(TEXT_125); >+ stringBuffer.append(TEXT_143); > stringBuffer.append(defaultWidth); >- stringBuffer.append(TEXT_126); >+ stringBuffer.append(TEXT_144); > stringBuffer.append(defaultHeight); >- stringBuffer.append(TEXT_127); >+ stringBuffer.append(TEXT_145); > } >- stringBuffer.append(TEXT_128); >+ stringBuffer.append(TEXT_146); > stringBuffer.append(importManager.getImportedName(next.getNotationViewFactoryQualifiedClassName())); >- stringBuffer.append(TEXT_129); >+ stringBuffer.append(TEXT_147); > > } > >- stringBuffer.append(TEXT_130); >+ stringBuffer.append(TEXT_148); > > } //for > >- stringBuffer.append(TEXT_131); >+ stringBuffer.append(TEXT_149); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_132); >+ stringBuffer.append(TEXT_150); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_133); >+ stringBuffer.append(TEXT_151); > > } //if (!childNodes.isEmpty()) in createAddCommand > >- stringBuffer.append(TEXT_134); >+ stringBuffer.append(TEXT_152); > > /* delegation from getCloneCommand to createCloneCommand is 100% analogous to delegation from getAddCommand() to createAddCommand() in ConstrainedLayoutEditPolicy. */ > > > if (!childNodes.isEmpty()) { > >- stringBuffer.append(TEXT_135); >+ stringBuffer.append(TEXT_153); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); >- stringBuffer.append(TEXT_136); >+ stringBuffer.append(TEXT_154); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ChangeBoundsRequest")); >- stringBuffer.append(TEXT_137); >+ stringBuffer.append(TEXT_155); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_138); >+ stringBuffer.append(TEXT_156); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.CompoundCommand")); >- stringBuffer.append(TEXT_139); >+ stringBuffer.append(TEXT_157); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.CompoundCommand")); >- stringBuffer.append(TEXT_140); >+ stringBuffer.append(TEXT_158); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); >- stringBuffer.append(TEXT_141); >+ stringBuffer.append(TEXT_159); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >- stringBuffer.append(TEXT_142); >+ stringBuffer.append(TEXT_160); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); >- stringBuffer.append(TEXT_143); >+ stringBuffer.append(TEXT_161); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); >- stringBuffer.append(TEXT_144); >+ stringBuffer.append(TEXT_162); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); >- stringBuffer.append(TEXT_145); >+ stringBuffer.append(TEXT_163); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); >- stringBuffer.append(TEXT_146); >+ stringBuffer.append(TEXT_164); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); >- stringBuffer.append(TEXT_147); >+ stringBuffer.append(TEXT_165); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); >- stringBuffer.append(TEXT_148); >+ stringBuffer.append(TEXT_166); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_149); >+ stringBuffer.append(TEXT_167); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_150); >+ stringBuffer.append(TEXT_168); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_151); >+ stringBuffer.append(TEXT_169); > stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_152); >+ stringBuffer.append(TEXT_170); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_153); >+ stringBuffer.append(TEXT_171); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_154); >+ stringBuffer.append(TEXT_172); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_155); >+ stringBuffer.append(TEXT_173); > > for(Iterator it = childNodes.iterator(); it.hasNext(); ) { > GenNode next = (GenNode) it.next(); >@@ -898,51 +1016,124 @@ > GenFeature childFeature = facet.getChildMetaFeature(); > GenFeature containmentFeature = facet.getContainmentMetaFeature(); > >- stringBuffer.append(TEXT_156); >+ stringBuffer.append(TEXT_174); > stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_157); >+ stringBuffer.append(TEXT_175); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CommandWrapper")); >- stringBuffer.append(TEXT_158); >+ stringBuffer.append(TEXT_176); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_159); >+ stringBuffer.append(TEXT_177); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_160); >+ stringBuffer.append(TEXT_178); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_161); >+ stringBuffer.append(TEXT_179); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.CopyCommand")); >- stringBuffer.append(TEXT_162); >+ stringBuffer.append(TEXT_180); >+ >+ if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { >+ GenFeature _feature = childFeature; >+ String _ownerInstance = _getViewCode + ".getElement()"; >+ String _exceedsUpperBound = "return false;"; >+ GenClass _ownerGenClass = null; >+ >+ stringBuffer.append(TEXT_181); >+ >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ >+ stringBuffer.append(TEXT_182); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >+ stringBuffer.append(TEXT_183); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_184); >+ >+ } else { >+ >+ stringBuffer.append(TEXT_185); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_186); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_187); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_188); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_189); >+ >+ } >+} >+ >+ >+ } >+ { >+ GenFeature _feature = containmentFeature; >+ String _ownerInstance = _getViewCode + ".getElement()"; >+ String _exceedsUpperBound = "return false;"; >+ GenClass _ownerGenClass = null; >+ >+ stringBuffer.append(TEXT_190); >+ >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ >+ stringBuffer.append(TEXT_191); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >+ stringBuffer.append(TEXT_192); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_193); >+ >+ } else { >+ >+ stringBuffer.append(TEXT_194); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_195); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_196); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_197); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_198); >+ >+ } >+} >+ >+ >+ } >+ >+ stringBuffer.append(TEXT_199); > stringBuffer.append(importManager.getImportedName("java.util.Collection")); >- stringBuffer.append(TEXT_163); >+ stringBuffer.append(TEXT_200); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_164); >+ stringBuffer.append(TEXT_201); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_165); >+ stringBuffer.append(TEXT_202); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_166); >+ stringBuffer.append(TEXT_203); > > if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { > >- stringBuffer.append(TEXT_167); >+ stringBuffer.append(TEXT_204); > stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_168); >+ stringBuffer.append(TEXT_205); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_169); >+ stringBuffer.append(TEXT_206); > stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_170); >+ stringBuffer.append(TEXT_207); > stringBuffer.append(childFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_171); >+ stringBuffer.append(TEXT_208); > > } > >- stringBuffer.append(TEXT_172); >+ stringBuffer.append(TEXT_209); > stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_173); >+ stringBuffer.append(TEXT_210); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_174); >+ stringBuffer.append(TEXT_211); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_175); >+ stringBuffer.append(TEXT_212); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_176); >+ stringBuffer.append(TEXT_213); > > { > int defaultWidth = 40; >@@ -953,145 +1144,145 @@ > defaultHeight = defSizeAttrs.getHeight(); > } > >- stringBuffer.append(TEXT_177); >+ stringBuffer.append(TEXT_214); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand")); >- stringBuffer.append(TEXT_178); >+ stringBuffer.append(TEXT_215); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_179); >+ stringBuffer.append(TEXT_216); > if (isListLayout) { >- stringBuffer.append(TEXT_180); >+ stringBuffer.append(TEXT_217); > } else { >- stringBuffer.append(TEXT_181); >+ stringBuffer.append(TEXT_218); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >- stringBuffer.append(TEXT_182); >+ stringBuffer.append(TEXT_219); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Dimension")); >- stringBuffer.append(TEXT_183); >+ stringBuffer.append(TEXT_220); > stringBuffer.append(defaultWidth); >- stringBuffer.append(TEXT_184); >+ stringBuffer.append(TEXT_221); > stringBuffer.append(defaultHeight); >- stringBuffer.append(TEXT_185); >+ stringBuffer.append(TEXT_222); > } >- stringBuffer.append(TEXT_186); >+ stringBuffer.append(TEXT_223); > stringBuffer.append(importManager.getImportedName(next.getNotationViewFactoryQualifiedClassName())); >- stringBuffer.append(TEXT_187); >+ stringBuffer.append(TEXT_224); > > } > } //for > >- stringBuffer.append(TEXT_188); >+ stringBuffer.append(TEXT_225); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_189); >+ stringBuffer.append(TEXT_226); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_190); >+ stringBuffer.append(TEXT_227); > > } //if (!childNodes.isEmpty()) > > > } > >- stringBuffer.append(TEXT_191); >+ stringBuffer.append(TEXT_228); > if (null != genDiagram.getPalette()) { >- stringBuffer.append(TEXT_192); >+ stringBuffer.append(TEXT_229); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateRequestEx")); >- stringBuffer.append(TEXT_193); >+ stringBuffer.append(TEXT_230); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateRequestEx")); >- stringBuffer.append(TEXT_194); >+ stringBuffer.append(TEXT_231); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateRequestEx")); >- stringBuffer.append(TEXT_195); >+ stringBuffer.append(TEXT_232); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_196); >+ stringBuffer.append(TEXT_233); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_197); >+ stringBuffer.append(TEXT_234); > > for(Iterator it = genCompartment.getChildNodes().iterator(); it.hasNext(); ) { > GenChildNode next = (GenChildNode)it.next(); > >- stringBuffer.append(TEXT_198); >+ stringBuffer.append(TEXT_235); > stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_199); >+ stringBuffer.append(TEXT_236); > stringBuffer.append(next.getDomainMetaClass().getName()); > stringBuffer.append(next.getVisualID()); >- stringBuffer.append(TEXT_200); >+ stringBuffer.append(TEXT_237); > if (!genCompartment.isListLayout()) { >- stringBuffer.append(TEXT_201); >+ stringBuffer.append(TEXT_238); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >- stringBuffer.append(TEXT_202); >+ stringBuffer.append(TEXT_239); > } >- stringBuffer.append(TEXT_203); >+ stringBuffer.append(TEXT_240); > > } > >- stringBuffer.append(TEXT_204); >+ stringBuffer.append(TEXT_241); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_205); >+ stringBuffer.append(TEXT_242); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_206); >+ stringBuffer.append(TEXT_243); > }/*when there's palette*/ >- stringBuffer.append(TEXT_207); >+ stringBuffer.append(TEXT_244); > stringBuffer.append(genCompartment.getTitle()); >- stringBuffer.append(TEXT_208); >+ stringBuffer.append(TEXT_245); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); >- stringBuffer.append(TEXT_209); >+ stringBuffer.append(TEXT_246); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.LabeledContainer")); >- stringBuffer.append(TEXT_210); >+ stringBuffer.append(TEXT_247); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.LabeledContainer")); >- stringBuffer.append(TEXT_211); >+ stringBuffer.append(TEXT_248); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.StackLayout")); >- stringBuffer.append(TEXT_212); >+ stringBuffer.append(TEXT_249); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ScrollPane")); >- stringBuffer.append(TEXT_213); >+ stringBuffer.append(TEXT_250); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ScrollPane")); >- stringBuffer.append(TEXT_214); >+ stringBuffer.append(TEXT_251); > if (genCompartment.isListLayout()) { >- stringBuffer.append(TEXT_215); >+ stringBuffer.append(TEXT_252); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Viewport")); >- stringBuffer.append(TEXT_216); >+ stringBuffer.append(TEXT_253); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Viewport")); >- stringBuffer.append(TEXT_217); >+ stringBuffer.append(TEXT_254); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); >- stringBuffer.append(TEXT_218); >+ stringBuffer.append(TEXT_255); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ToolbarLayout")); >- stringBuffer.append(TEXT_219); >+ stringBuffer.append(TEXT_256); > } else { >- stringBuffer.append(TEXT_220); >+ stringBuffer.append(TEXT_257); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Viewport")); >- stringBuffer.append(TEXT_221); >+ stringBuffer.append(TEXT_258); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.FreeformViewport")); >- stringBuffer.append(TEXT_222); >+ stringBuffer.append(TEXT_259); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.FreeformLayer")); >- stringBuffer.append(TEXT_223); >+ stringBuffer.append(TEXT_260); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.FreeformLayout")); >- stringBuffer.append(TEXT_224); >+ stringBuffer.append(TEXT_261); > } >- stringBuffer.append(TEXT_225); >+ stringBuffer.append(TEXT_262); > stringBuffer.append(importManager.getImportedName(genHost.getDomainMetaClass().getQualifiedInterfaceName())); >- stringBuffer.append(TEXT_226); >+ stringBuffer.append(TEXT_263); > stringBuffer.append(importManager.getImportedName(genHost.getDomainMetaClass().getQualifiedInterfaceName())); >- stringBuffer.append(TEXT_227); >+ stringBuffer.append(TEXT_264); > stringBuffer.append(importManager.getImportedName(genHost.getDomainMetaClass().getQualifiedInterfaceName())); >- stringBuffer.append(TEXT_228); >+ stringBuffer.append(TEXT_265); > > { > String _getViewCode = "getDiagramNode()"; > String _getDiagramCode = _getViewCode + ".getDiagram()"; > boolean isListLayout = genCompartment.isListLayout(); > >- stringBuffer.append(TEXT_229); >- stringBuffer.append(TEXT_230); >+ stringBuffer.append(TEXT_266); >+ stringBuffer.append(TEXT_267); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher")); >- stringBuffer.append(TEXT_231); >+ stringBuffer.append(TEXT_268); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_232); >+ stringBuffer.append(TEXT_269); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_233); >+ stringBuffer.append(TEXT_270); > stringBuffer.append(_getDiagramCode); >- stringBuffer.append(TEXT_234); >+ stringBuffer.append(TEXT_271); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher")); >- stringBuffer.append(TEXT_235); >+ stringBuffer.append(TEXT_272); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher")); >- stringBuffer.append(TEXT_236); >+ stringBuffer.append(TEXT_273); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher")); >- stringBuffer.append(TEXT_237); >+ stringBuffer.append(TEXT_274); > > boolean hasConstraintsInChildren = false; > for (Iterator it = childNodes.iterator(); it.hasNext(); ) { >@@ -1106,19 +1297,19 @@ > > if (hasConstraintsInChildren) { > >- stringBuffer.append(TEXT_238); >+ stringBuffer.append(TEXT_275); > stringBuffer.append(genDiagram.getVisualIDRegistryQualifiedClassName()); >- stringBuffer.append(TEXT_239); >+ stringBuffer.append(TEXT_276); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_240); >+ stringBuffer.append(TEXT_277); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_241); >+ stringBuffer.append(TEXT_278); > > } > >- stringBuffer.append(TEXT_242); >+ stringBuffer.append(TEXT_279); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_243); >+ stringBuffer.append(TEXT_280); > > { > boolean hasDeclaredFilter = false; >@@ -1137,25 +1328,25 @@ > if (!hasDeclaredFilter) { > hasDeclaredFilter = true; > >- stringBuffer.append(TEXT_244); >+ stringBuffer.append(TEXT_281); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_245); >+ stringBuffer.append(TEXT_282); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_246); >+ stringBuffer.append(TEXT_283); > stringBuffer.append(importManager.getImportedName(childMetaFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_247); >+ stringBuffer.append(TEXT_284); > stringBuffer.append(childMetaFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_248); >+ stringBuffer.append(TEXT_285); > > } else { > >- stringBuffer.append(TEXT_249); >+ stringBuffer.append(TEXT_286); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_250); >+ stringBuffer.append(TEXT_287); > stringBuffer.append(importManager.getImportedName(childMetaFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_251); >+ stringBuffer.append(TEXT_288); > stringBuffer.append(childMetaFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_252); >+ stringBuffer.append(TEXT_289); > > } > } //for >@@ -1163,22 +1354,22 @@ > > if (hasDeclaredFilter) { > >- stringBuffer.append(TEXT_253); >+ stringBuffer.append(TEXT_290); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_254); >+ stringBuffer.append(TEXT_291); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_255); >+ stringBuffer.append(TEXT_292); > > } else { > hasDeclaredFilter = true; > >- stringBuffer.append(TEXT_256); >+ stringBuffer.append(TEXT_293); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_257); >+ stringBuffer.append(TEXT_294); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_258); >+ stringBuffer.append(TEXT_295); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_259); >+ stringBuffer.append(TEXT_296); > > } > >@@ -1187,43 +1378,43 @@ > if (hasDeclaredFilter) { > hasDeclaredFilter = true; > >- stringBuffer.append(TEXT_260); >+ stringBuffer.append(TEXT_297); > > } else { > >- stringBuffer.append(TEXT_261); >+ stringBuffer.append(TEXT_298); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_262); >+ stringBuffer.append(TEXT_299); > > } > } > if (!hasDeclaredFilter) { > >- stringBuffer.append(TEXT_263); >+ stringBuffer.append(TEXT_300); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_264); >+ stringBuffer.append(TEXT_301); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_265); >+ stringBuffer.append(TEXT_302); > > } > >- stringBuffer.append(TEXT_266); >+ stringBuffer.append(TEXT_303); > > } //local declaration of hasDeclaredFilter > >- stringBuffer.append(TEXT_267); >+ stringBuffer.append(TEXT_304); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); >- stringBuffer.append(TEXT_268); >+ stringBuffer.append(TEXT_305); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); >- stringBuffer.append(TEXT_269); >+ stringBuffer.append(TEXT_306); > > { > String _parentNode = "getHost()"; > >- stringBuffer.append(TEXT_270); >- stringBuffer.append(TEXT_271); >+ stringBuffer.append(TEXT_307); >+ stringBuffer.append(TEXT_308); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_272); >+ stringBuffer.append(TEXT_309); > > for (Iterator it = childNodes.iterator(); it.hasNext(); ) { > GenNode nextNode = (GenNode) it.next(); >@@ -1233,15 +1424,15 @@ > } > String childNodeInterfaceName = importManager.getImportedName(nextNode.getDomainMetaClass().getQualifiedInterfaceName()); > >- stringBuffer.append(TEXT_273); >+ stringBuffer.append(TEXT_310); > stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_274); >+ stringBuffer.append(TEXT_311); > stringBuffer.append(childNodeInterfaceName); >- stringBuffer.append(TEXT_275); >+ stringBuffer.append(TEXT_312); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand")); >- stringBuffer.append(TEXT_276); >+ stringBuffer.append(TEXT_313); > stringBuffer.append(_parentNode); >- stringBuffer.append(TEXT_277); >+ stringBuffer.append(TEXT_314); > > if (!isListLayout) { > int defaultWidth = 40; >@@ -1252,48 +1443,48 @@ > defaultHeight = defSizeAttrs.getHeight(); > } > >- stringBuffer.append(TEXT_278); >+ stringBuffer.append(TEXT_315); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >- stringBuffer.append(TEXT_279); >+ stringBuffer.append(TEXT_316); > stringBuffer.append(defaultWidth); >- stringBuffer.append(TEXT_280); >+ stringBuffer.append(TEXT_317); > stringBuffer.append(defaultHeight); >- stringBuffer.append(TEXT_281); >+ stringBuffer.append(TEXT_318); > > } else { > >- stringBuffer.append(TEXT_282); >+ stringBuffer.append(TEXT_319); > > } > >- stringBuffer.append(TEXT_283); >+ stringBuffer.append(TEXT_320); > stringBuffer.append(importManager.getImportedName(nextNode.getNotationViewFactoryQualifiedClassName())); >- stringBuffer.append(TEXT_284); >+ stringBuffer.append(TEXT_321); > > } > >- stringBuffer.append(TEXT_285); >+ stringBuffer.append(TEXT_322); > > } > >- stringBuffer.append(TEXT_286); >+ stringBuffer.append(TEXT_323); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_287); >- stringBuffer.append(TEXT_288); >+ stringBuffer.append(TEXT_324); >+ stringBuffer.append(TEXT_325); > > if (childNodes.size() == 0) { > >- stringBuffer.append(TEXT_289); >+ stringBuffer.append(TEXT_326); > stringBuffer.append(importManager.getImportedName("java.util.Collections")); >- stringBuffer.append(TEXT_290); >+ stringBuffer.append(TEXT_327); > > } else { > >- stringBuffer.append(TEXT_291); >+ stringBuffer.append(TEXT_328); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_292); >+ stringBuffer.append(TEXT_329); > stringBuffer.append(importManager.getImportedName("java.util.LinkedList")); >- stringBuffer.append(TEXT_293); >+ stringBuffer.append(TEXT_330); > > Map genFeature2genNodeMap = new LinkedHashMap(); > for (int nodeIndex = 0; nodeIndex < childNodes.size(); nodeIndex++) { >@@ -1311,15 +1502,15 @@ > Set entrySet = genFeature2genNodeMap.entrySet(); > if (entrySet.size() > 0) { > >- stringBuffer.append(TEXT_294); >+ stringBuffer.append(TEXT_331); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_295); >+ stringBuffer.append(TEXT_332); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_296); >+ stringBuffer.append(TEXT_333); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_297); >+ stringBuffer.append(TEXT_334); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_298); >+ stringBuffer.append(TEXT_335); > > } > for (Iterator entries = entrySet.iterator(); entries.hasNext();) { >@@ -1328,243 +1519,302 @@ > Collection genNodesCollection = (Collection) nextEntry.getValue(); > if (childMetaFeature.isListType()) { > >- stringBuffer.append(TEXT_299); >+ stringBuffer.append(TEXT_336); > stringBuffer.append(importManager.getImportedName("java.util.Iterator")); >- stringBuffer.append(TEXT_300); >+ stringBuffer.append(TEXT_337); > myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", childMetaFeature, null, true); >- stringBuffer.append(TEXT_301); >+ stringBuffer.append(TEXT_338); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_302); >+ stringBuffer.append(TEXT_339); > > } else { > >- stringBuffer.append(TEXT_303); >+ stringBuffer.append(TEXT_340); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_304); >+ stringBuffer.append(TEXT_341); > myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", childMetaFeature, null, false); >- stringBuffer.append(TEXT_305); >+ stringBuffer.append(TEXT_342); > > } > >- stringBuffer.append(TEXT_306); >+ stringBuffer.append(TEXT_343); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_307); >+ stringBuffer.append(TEXT_344); > > boolean generateSwitch = genNodesCollection.size() != 1; > if (generateSwitch) { > >- stringBuffer.append(TEXT_308); >+ stringBuffer.append(TEXT_345); > > } > for (Iterator genNodesIterator = genNodesCollection.iterator(); genNodesIterator.hasNext();) { > GenNode nextNode = (GenNode) genNodesIterator.next(); > if (generateSwitch) { > >- stringBuffer.append(TEXT_309); >+ stringBuffer.append(TEXT_346); > stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_310); >+ stringBuffer.append(TEXT_347); > > } else { > >- stringBuffer.append(TEXT_311); >+ stringBuffer.append(TEXT_348); > stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_312); >+ stringBuffer.append(TEXT_349); > > } > >- stringBuffer.append(TEXT_313); >+ stringBuffer.append(TEXT_350); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); >- stringBuffer.append(TEXT_314); >+ stringBuffer.append(TEXT_351); > > if (generateSwitch) { > >- stringBuffer.append(TEXT_315); >+ stringBuffer.append(TEXT_352); > > } else { > >- stringBuffer.append(TEXT_316); >+ stringBuffer.append(TEXT_353); > > } > } > if (generateSwitch) { > >- stringBuffer.append(TEXT_317); >+ stringBuffer.append(TEXT_354); > > } > if (childMetaFeature.isListType()) { > >- stringBuffer.append(TEXT_318); >+ stringBuffer.append(TEXT_355); > > } > } > >- stringBuffer.append(TEXT_319); >+ stringBuffer.append(TEXT_356); > > } > >- stringBuffer.append(TEXT_320); >+ stringBuffer.append(TEXT_357); > stringBuffer.append(genDiagram.isSynchronized()); >- stringBuffer.append(TEXT_321); >+ stringBuffer.append(TEXT_358); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); >- stringBuffer.append(TEXT_322); >+ stringBuffer.append(TEXT_359); > stringBuffer.append(genDiagram.isSynchronized()); >- stringBuffer.append(TEXT_323); >+ stringBuffer.append(TEXT_360); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_324); >+ stringBuffer.append(TEXT_361); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_325); >+ stringBuffer.append(TEXT_362); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.AbstractNotationModelRefresher")); >- stringBuffer.append(TEXT_326); >+ stringBuffer.append(TEXT_363); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_327); >+ stringBuffer.append(TEXT_364); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_328); >+ stringBuffer.append(TEXT_365); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_329); >+ stringBuffer.append(TEXT_366); > stringBuffer.append(_getDiagramCode); >- stringBuffer.append(TEXT_330); >+ stringBuffer.append(TEXT_367); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_331); >+ stringBuffer.append(TEXT_368); > > } > >- stringBuffer.append(TEXT_332); >- stringBuffer.append(TEXT_333); >- stringBuffer.append(TEXT_334); >+ stringBuffer.append(TEXT_369); >+ stringBuffer.append(TEXT_370); >+ stringBuffer.append(TEXT_371); > stringBuffer.append(importManager.getImportedName("java.util.HashMap")); >- stringBuffer.append(TEXT_335); >+ stringBuffer.append(TEXT_372); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); >- stringBuffer.append(TEXT_336); >+ stringBuffer.append(TEXT_373); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); >- stringBuffer.append(TEXT_337); >- stringBuffer.append(TEXT_338); >- stringBuffer.append(TEXT_339); >+ stringBuffer.append(TEXT_374); >+ stringBuffer.append(TEXT_375); >+ stringBuffer.append(TEXT_376); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_340); >+ stringBuffer.append(TEXT_377); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_341); >- stringBuffer.append(TEXT_342); >- stringBuffer.append(TEXT_343); >+ stringBuffer.append(TEXT_378); >+ stringBuffer.append(TEXT_379); >+ stringBuffer.append(TEXT_380); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_344); >+ stringBuffer.append(TEXT_381); > > for(Iterator it = genCompartment.getChildNodes().iterator(); it.hasNext(); ) { > GenChildNode next = (GenChildNode)it.next(); > boolean isStatic = false; > boolean isListLayout = genCompartment.isListLayout(); >- String resolvedSemanticElement = "resolveSemanticElement()"; > >- stringBuffer.append(TEXT_345); >+ stringBuffer.append(TEXT_382); > > if (genDiagram.getPalette() != null) { > >- stringBuffer.append(TEXT_346); >+ stringBuffer.append(TEXT_383); > if (isStatic) { >- stringBuffer.append(TEXT_347); >+ stringBuffer.append(TEXT_384); > } >- stringBuffer.append(TEXT_348); >+ stringBuffer.append(TEXT_385); > stringBuffer.append(next.getDomainMetaClass().getName()); > stringBuffer.append(next.getVisualID()); >- stringBuffer.append(TEXT_349); >+ stringBuffer.append(TEXT_386); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); >- stringBuffer.append(TEXT_350); >+ stringBuffer.append(TEXT_387); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand")); >- stringBuffer.append(TEXT_351); >+ stringBuffer.append(TEXT_388); > stringBuffer.append(next.getDomainMetaClass().getName()); > stringBuffer.append(next.getVisualID()); >- stringBuffer.append(TEXT_352); >+ stringBuffer.append(TEXT_389); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_353); >+ stringBuffer.append(TEXT_390); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateRequestEx")); >- stringBuffer.append(TEXT_354); >+ stringBuffer.append(TEXT_391); > if (!isListLayout) { >- stringBuffer.append(TEXT_355); >+ stringBuffer.append(TEXT_392); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >- stringBuffer.append(TEXT_356); >+ stringBuffer.append(TEXT_393); > } >- stringBuffer.append(TEXT_357); >+ stringBuffer.append(TEXT_394); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_358); >+ stringBuffer.append(TEXT_395); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_359); >+ stringBuffer.append(TEXT_396); > > if (next.getDomainMetaClass().isMapEntry()) { > /*Workaround for Ecore example: map entries cannot be created using factory, only using reflective EFactory.create() method*/ > >- stringBuffer.append(TEXT_360); >+ stringBuffer.append(TEXT_397); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_361); >+ stringBuffer.append(TEXT_398); > stringBuffer.append(importManager.getImportedName(next.getDomainMetaClass().getGenPackage().getQualifiedFactoryInterfaceName())); >- stringBuffer.append(TEXT_362); >+ stringBuffer.append(TEXT_399); > stringBuffer.append(importManager.getImportedName(next.getDomainMetaClass().getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_363); >+ stringBuffer.append(TEXT_400); > stringBuffer.append(next.getDomainMetaClass().getClassifierAccessorName()); >- stringBuffer.append(TEXT_364); >+ stringBuffer.append(TEXT_401); > > } else { > >- stringBuffer.append(TEXT_365); >+ stringBuffer.append(TEXT_402); > stringBuffer.append(importManager.getImportedName(next.getDomainMetaClass().getQualifiedInterfaceName())); >- stringBuffer.append(TEXT_366); >+ stringBuffer.append(TEXT_403); > stringBuffer.append(importManager.getImportedName(next.getDomainMetaClass().getGenPackage().getQualifiedFactoryInterfaceName())); >- stringBuffer.append(TEXT_367); >+ stringBuffer.append(TEXT_404); > stringBuffer.append(next.getDomainMetaClass().getClassifierAccessorName()); >- stringBuffer.append(TEXT_368); >+ stringBuffer.append(TEXT_405); > > } > >- stringBuffer.append(TEXT_369); >+ stringBuffer.append(TEXT_406); > /*XXX: Class name DomainElementInitializer should be user-customizable*/ >- stringBuffer.append(TEXT_370); >+ stringBuffer.append(TEXT_407); > stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")); >- stringBuffer.append(TEXT_371); >+ stringBuffer.append(TEXT_408); > stringBuffer.append(next.getUniqueIdentifier()); >- stringBuffer.append(TEXT_372); >+ stringBuffer.append(TEXT_409); > if (next.getDomainMetaClass().isExternalInterface()) { >- stringBuffer.append(TEXT_373); >+ stringBuffer.append(TEXT_410); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_374); >+ stringBuffer.append(TEXT_411); > } >- stringBuffer.append(TEXT_375); >+ stringBuffer.append(TEXT_412); > > TypeModelFacet facet = next.getModelFacet(); > GenFeature childFeature = facet.getChildMetaFeature(); > GenFeature containmentFeature = facet.getContainmentMetaFeature(); >+ { >+ GenFeature _feature = containmentFeature; >+ String _ownerInstance = "parent.getElement()"; >+ String _exceedsUpperBound = "this.domainModelAddCommand = null;this.notationAddCommand = null;return;"; >+ GenClass _ownerGenClass = null; >+ >+ stringBuffer.append(TEXT_413); >+ >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ >+ stringBuffer.append(TEXT_414); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >+ stringBuffer.append(TEXT_415); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_416); >+ >+ } else { >+ >+ stringBuffer.append(TEXT_417); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_418); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_419); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_420); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_421); >+ >+ } >+} >+ >+ >+ } > if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { >+ GenFeature _feature = childFeature; >+ String _ownerInstance = "parent.getElement()"; >+ String _exceedsUpperBound = "this.domainModelAddCommand = null;this.notationAddCommand = null;return;"; >+ GenClass _ownerGenClass = null; >+ >+ stringBuffer.append(TEXT_422); >+ >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ >+ stringBuffer.append(TEXT_423); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >+ stringBuffer.append(TEXT_424); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_425); >+ >+ } else { > >- stringBuffer.append(TEXT_376); >+ stringBuffer.append(TEXT_426); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_427); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_428); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_429); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_430); >+ >+ } >+} >+ >+ stringBuffer.append(TEXT_431); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_377); >+ stringBuffer.append(TEXT_432); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_378); >+ stringBuffer.append(TEXT_433); > stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_379); >- stringBuffer.append(resolvedSemanticElement); >- stringBuffer.append(TEXT_380); >+ stringBuffer.append(TEXT_434); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_381); >+ stringBuffer.append(TEXT_435); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_382); >+ stringBuffer.append(TEXT_436); > stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_383); >- stringBuffer.append(resolvedSemanticElement); >- stringBuffer.append(TEXT_384); >+ stringBuffer.append(TEXT_437); > stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_385); >+ stringBuffer.append(TEXT_438); > stringBuffer.append(childFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_386); >+ stringBuffer.append(TEXT_439); > > } else { > >- stringBuffer.append(TEXT_387); >+ stringBuffer.append(TEXT_440); > stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_388); >- stringBuffer.append(resolvedSemanticElement); >- stringBuffer.append(TEXT_389); >+ stringBuffer.append(TEXT_441); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_390); >+ stringBuffer.append(TEXT_442); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_391); >+ stringBuffer.append(TEXT_443); > > } > >@@ -1578,42 +1828,42 @@ > defaultHeight = defSizeAttrs.getHeight(); > } > >- stringBuffer.append(TEXT_392); >+ stringBuffer.append(TEXT_444); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Dimension")); >- stringBuffer.append(TEXT_393); >+ stringBuffer.append(TEXT_445); > stringBuffer.append(defaultWidth); >- stringBuffer.append(TEXT_394); >+ stringBuffer.append(TEXT_446); > stringBuffer.append(defaultHeight); >- stringBuffer.append(TEXT_395); >+ stringBuffer.append(TEXT_447); > > } > >- stringBuffer.append(TEXT_396); >+ stringBuffer.append(TEXT_448); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand")); >- stringBuffer.append(TEXT_397); >+ stringBuffer.append(TEXT_449); > if (next.getDomainMetaClass().isExternalInterface()) { >- stringBuffer.append(TEXT_398); >+ stringBuffer.append(TEXT_450); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_399); >+ stringBuffer.append(TEXT_451); > } >- stringBuffer.append(TEXT_400); >+ stringBuffer.append(TEXT_452); > if(!isListLayout) { >- stringBuffer.append(TEXT_401); >+ stringBuffer.append(TEXT_453); > } else { >- stringBuffer.append(TEXT_402); >+ stringBuffer.append(TEXT_454); > } >- stringBuffer.append(TEXT_403); >+ stringBuffer.append(TEXT_455); > stringBuffer.append(importManager.getImportedName(next.getNotationViewFactoryQualifiedClassName())); >- stringBuffer.append(TEXT_404); >+ stringBuffer.append(TEXT_456); > > } > > > } > >- stringBuffer.append(TEXT_405); >+ stringBuffer.append(TEXT_457); > importManager.emitSortedImports(); >- stringBuffer.append(TEXT_406); >+ stringBuffer.append(TEXT_458); > return stringBuffer.toString(); > } > } >Index: src-templates/org/eclipse/gmf/codegen/templates/lite/parts/DiagramEditPartGenerator.java >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/DiagramEditPartGenerator.java,v >retrieving revision 1.14 >diff -u -r1.14 DiagramEditPartGenerator.java >--- src-templates/org/eclipse/gmf/codegen/templates/lite/parts/DiagramEditPartGenerator.java 9 Oct 2006 17:03:14 -0000 1.14 >+++ src-templates/org/eclipse/gmf/codegen/templates/lite/parts/DiagramEditPartGenerator.java 11 Oct 2006 14:02:54 -0000 >@@ -110,507 +110,559 @@ > protected final String TEXT_91 = ".UNSET_VALUE));"; > protected final String TEXT_92 = NL + "\t\t\t\t\tbreak;"; > protected final String TEXT_93 = NL + "\t\t\t\t\t}\t"; >- protected final String TEXT_94 = NL + "\t\t\t\t\tresult.append("; >- protected final String TEXT_95 = ".create(" + NL + "\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t"; >- protected final String TEXT_96 = ".getElement(), "; >- protected final String TEXT_97 = ".eINSTANCE.get"; >- protected final String TEXT_98 = "(), element));"; >- protected final String TEXT_99 = NL + "\t\t\t\t\tresult.append("; >- protected final String TEXT_100 = ".create(" + NL + "\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t"; >- protected final String TEXT_101 = ".getElement(), "; >- protected final String TEXT_102 = ".eINSTANCE.get"; >- protected final String TEXT_103 = "(), element));"; >- protected final String TEXT_104 = NL + "\t\t\t\t\tresult.append("; >- protected final String TEXT_105 = ".create(editingDomain, childNode.eContainer(), childNode.eContainmentFeature(), childNode));" + NL + "\t\t\t\t\tif (newVisualID == visualID) {" + NL + "\t\t\t\t\t\tresult.append("; >- protected final String TEXT_106 = ".create(editingDomain, "; >- protected final String TEXT_107 = ", "; >- protected final String TEXT_108 = ".eINSTANCE.getView_PersistedChildren(), childNode));" + NL + "\t\t\t\t\t\tresult.append(new "; >- protected final String TEXT_109 = "(childNode, "; >- protected final String TEXT_110 = "null"; >- protected final String TEXT_111 = "("; >- protected final String TEXT_112 = ") constraint"; >- protected final String TEXT_113 = "));" + NL + "\t\t\t\t\t} else {"; >- protected final String TEXT_114 = NL + "\t\t\t\t\t\tresult.append(new "; >- protected final String TEXT_115 = "("; >- protected final String TEXT_116 = ", element, "; >- protected final String TEXT_117 = "null"; >- protected final String TEXT_118 = "(("; >- protected final String TEXT_119 = ") constraint).getCopy().union(new "; >- protected final String TEXT_120 = "("; >- protected final String TEXT_121 = ", "; >- protected final String TEXT_122 = "))"; >- protected final String TEXT_123 = ", "; >- protected final String TEXT_124 = ".INSTANCE));"; >- protected final String TEXT_125 = NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tcommand = result;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;"; >- protected final String TEXT_126 = NL + "\t\t\t}" + NL + "\t\t\tif (command != null) {" + NL + "\t\t\t\treturn new "; >- protected final String TEXT_127 = "(editingDomain, command);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "\treturn "; >- protected final String TEXT_128 = ".INSTANCE;" + NL + "}"; >- protected final String TEXT_129 = NL; >- protected final String TEXT_130 = NL + "protected "; >- protected final String TEXT_131 = " getCloneCommand("; >- protected final String TEXT_132 = " request) {" + NL + "\t"; >- protected final String TEXT_133 = " editParts = request.getEditParts();" + NL + "\t"; >- protected final String TEXT_134 = " command = new "; >- protected final String TEXT_135 = "();" + NL + "\tcommand.setDebugLabel(\"Clone in ConstrainedLayoutEditPolicy\");//$NON-NLS-1$" + NL + "\t"; >- protected final String TEXT_136 = " childPart;" + NL + "\t"; >- protected final String TEXT_137 = " r;" + NL + "\tObject constraint;" + NL + "" + NL + "\tfor (int i = 0; i < editParts.size(); i++) {" + NL + "\t\tchildPart = ("; >- protected final String TEXT_138 = ")editParts.get(i);" + NL + "\t\tr = childPart.getFigure().getBounds().getCopy();" + NL + "\t\t//convert r to absolute from childpart figure" + NL + "\t\tchildPart.getFigure().translateToAbsolute(r);" + NL + "\t\tr = request.getTransformedRectangle(r);" + NL + "\t\t//convert this figure to relative " + NL + "\t\tgetLayoutContainer().translateToRelative(r);" + NL + "\t\tgetLayoutContainer().translateFromParent(r);" + NL + "\t\tr.translate(getLayoutOrigin().getNegated());" + NL + "\t\tconstraint = getConstraintFor(r);" + NL + "\t\tcommand.add(createCloneCommand(childPart," + NL + "\t\t\ttranslateToModelConstraint(constraint)));" + NL + "\t}" + NL + "\treturn command.unwrap();" + NL + "}" + NL + "protected "; >- protected final String TEXT_139 = " createCloneCommand(final "; >- protected final String TEXT_140 = " child, final Object constraint) {" + NL + "\tif (child.getModel() instanceof "; >- protected final String TEXT_141 = ") {" + NL + "\t\tfinal "; >- protected final String TEXT_142 = " childNode = ("; >- protected final String TEXT_143 = ") child.getModel();" + NL + "\t\tfinal "; >- protected final String TEXT_144 = " editingDomain = "; >- protected final String TEXT_145 = ".getEditingDomain(childNode.getDiagram().getElement());" + NL + "\t\tString modelID = "; >- protected final String TEXT_146 = ".getModelID(childNode);" + NL + "\t\tif ("; >- protected final String TEXT_147 = ".MODEL_ID.equals(modelID)) {" + NL + "\t\t\tfinal int newVisualID = "; >- protected final String TEXT_148 = ".INSTANCE.getNodeVisualID("; >- protected final String TEXT_149 = ", childNode.getElement());" + NL + "\t\t\t"; >- protected final String TEXT_150 = " command = null;" + NL + "\t\t\tswitch (newVisualID) {"; >- protected final String TEXT_151 = NL + "\t\t\tcase "; >- protected final String TEXT_152 = ".VISUAL_ID:" + NL + "\t\t\t\tcommand = new "; >- protected final String TEXT_153 = "() {" + NL + "\t\t\t\t\tprivate "; >- protected final String TEXT_154 = " afterCopyCommand;" + NL + "\t\t\t\t\tprotected "; >- protected final String TEXT_155 = " createCommand() {" + NL + "\t\t\t\t\t\t"; >- protected final String TEXT_156 = " element = childNode.getElement();" + NL + "\t\t\t\t\t\t//We are being optimistic here about whether further commands can be executed." + NL + "\t\t\t\t\t\t//Otherwise, we would have to execute the CopyCommand on every mouse move, which could be much too expensive. " + NL + "\t\t\t\t\t\treturn "; >- protected final String TEXT_157 = ".create(editingDomain, element);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void execute() {" + NL + "\t\t\t\t\t\tsuper.execute();" + NL + "\t\t\t\t\t\tfinal "; >- protected final String TEXT_158 = " results = super.getResult();" + NL + "\t\t\t\t\t\tassert results.size() == 1;" + NL + "\t\t\t\t\t\t"; >- protected final String TEXT_159 = " result = ("; >- protected final String TEXT_160 = ") results.iterator().next();" + NL + "\t\t\t\t\t\tafterCopyCommand = new "; >- protected final String TEXT_161 = "();"; >- protected final String TEXT_162 = NL + "\t\t\t\t\t\tafterCopyCommand.append("; >- protected final String TEXT_163 = ".create(" + NL + "\t\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t\t"; >- protected final String TEXT_164 = ".getElement(), "; >- protected final String TEXT_165 = ".eINSTANCE.get"; >- protected final String TEXT_166 = "(), result));"; >- protected final String TEXT_167 = NL + "\t\t\t\t\t\tafterCopyCommand.append("; >- protected final String TEXT_168 = ".create(" + NL + "\t\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t\t"; >- protected final String TEXT_169 = ".getElement(), "; >- protected final String TEXT_170 = ".eINSTANCE.get"; >- protected final String TEXT_171 = "(), result));"; >- protected final String TEXT_172 = NL + "\t\t\t\t\t\tafterCopyCommand.append(new "; >- protected final String TEXT_173 = "("; >- protected final String TEXT_174 = ", result, "; >- protected final String TEXT_175 = "null"; >- protected final String TEXT_176 = "(("; >- protected final String TEXT_177 = ") constraint).getCopy().union(new "; >- protected final String TEXT_178 = "("; >- protected final String TEXT_179 = ", "; >- protected final String TEXT_180 = "))"; >- protected final String TEXT_181 = ", "; >- protected final String TEXT_182 = ".INSTANCE));" + NL + "\t\t\t\t\t\tif (afterCopyCommand.canExecute()) {" + NL + "\t\t\t\t\t\t\tafterCopyCommand.execute();" + NL + "\t\t\t\t\t\t} else {" + NL + "\t\t\t\t\t\t\tassert false;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void undo() {" + NL + "\t\t\t\t\t\tafterCopyCommand.undo();" + NL + "\t\t\t\t\t\tsuper.undo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void redo() {" + NL + "\t\t\t\t\t\tsuper.redo();" + NL + "\t\t\t\t\t\tafterCopyCommand.redo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "\t\t\t\tbreak;"; >- protected final String TEXT_183 = NL + "\t\t\t}" + NL + "\t\t\tif (command != null) {" + NL + "\t\t\t\treturn new "; >- protected final String TEXT_184 = "(editingDomain, command);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "\treturn "; >- protected final String TEXT_185 = ".INSTANCE;" + NL + "}"; >- protected final String TEXT_186 = NL + "\t\t\tprotected "; >- protected final String TEXT_187 = " createChangeConstraintCommand(final "; >- protected final String TEXT_188 = " request, final "; >- protected final String TEXT_189 = " child, Object constraint) {"; >- protected final String TEXT_190 = NL; >- protected final String TEXT_191 = "\t\t\t\tfinal "; >- protected final String TEXT_192 = " node = ("; >- protected final String TEXT_193 = ") child.getModel();" + NL + "\t\t\t\t"; >- protected final String TEXT_194 = " emfCommand = new "; >- protected final String TEXT_195 = "(node, request, (("; >- protected final String TEXT_196 = ")child).getFigure());" + NL + "\t\t\t\treturn new "; >- protected final String TEXT_197 = "("; >- protected final String TEXT_198 = ".getEditingDomain(node.getDiagram().getElement()), emfCommand);" + NL + "\t\t\t}" + NL + "\t\t\tprotected Command createChangeConstraintCommand("; >- protected final String TEXT_199 = " child, Object constraint) {" + NL + "\t\t\t\tassert false;" + NL + "\t\t\t\treturn "; >- protected final String TEXT_200 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t});" + NL + "\t\tinstallNotationModelRefresher();"; >- protected final String TEXT_201 = NL + "\t\tinstallLinkNotationModelRefresher();"; >- protected final String TEXT_202 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected IFigure createFigure() {" + NL + "\t\tIFigure f = new FreeformLayer();" + NL + "\t\tf.setBorder(new MarginBorder(5));" + NL + "\t\tf.setLayoutManager(new FreeformLayout());" + NL + "\t\treturn f;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Object getAdapter(Class key) {" + NL + "\t\tif ("; >- protected final String TEXT_203 = ".class == key) {" + NL + "\t\t\treturn new "; >- protected final String TEXT_204 = "(this);" + NL + "\t\t}" + NL + "\t\tif ("; >- protected final String TEXT_205 = ".class == key) {" + NL + "\t\t\treturn getTreeEditPartAdapter();" + NL + "\t\t}"; >- protected final String TEXT_206 = NL + "\t\treturn super.getAdapter(key);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate TreeEditPartAdapter myTreeEditPartAdapter;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate TreeEditPartAdapter getTreeEditPartAdapter() {" + NL + "\t\tif (myTreeEditPartAdapter == null) {" + NL + "\t\t\tmyTreeEditPartAdapter = new TreeEditPartAdapter();" + NL + "\t\t}" + NL + "\t\treturn myTreeEditPartAdapter;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected List getModelChildren() {" + NL + "\t\treturn getDiagram().getVisibleChildren();" + NL + "\t}" + NL; >- protected final String TEXT_207 = NL; >- protected final String TEXT_208 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_209 = "static "; >- protected final String TEXT_210 = "class Create"; >- protected final String TEXT_211 = "Command extends "; >- protected final String TEXT_212 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; >- protected final String TEXT_213 = " notationAddCommand;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Create"; >- protected final String TEXT_214 = "Command("; >- protected final String TEXT_215 = " parent, "; >- protected final String TEXT_216 = " request"; >- protected final String TEXT_217 = ", "; >- protected final String TEXT_218 = " constraint"; >- protected final String TEXT_219 = ") {" + NL + "\t\t\t"; >- protected final String TEXT_220 = " domainModelEditDomain = "; >- protected final String TEXT_221 = ".getEditingDomain(parent.getDiagram().getElement());"; >- protected final String TEXT_222 = NL + "\t\t\t"; >- protected final String TEXT_223 = " createdDomainElement = "; >- protected final String TEXT_224 = ".eINSTANCE.create(" + NL + "\t\t\t\t"; >- protected final String TEXT_225 = ".eINSTANCE.get"; >- protected final String TEXT_226 = "());"; >- protected final String TEXT_227 = NL + "\t\t\t"; >- protected final String TEXT_228 = " createdDomainElement = "; >- protected final String TEXT_229 = ".eINSTANCE.create"; >- protected final String TEXT_230 = "();"; >- protected final String TEXT_231 = NL + "\t\t\t"; >- protected final String TEXT_232 = NL + "\t\t\t"; >- protected final String TEXT_233 = "."; >- protected final String TEXT_234 = ".initializeElement("; >- protected final String TEXT_235 = "("; >- protected final String TEXT_236 = ") "; >- protected final String TEXT_237 = "createdDomainElement);"; >- protected final String TEXT_238 = NL + "\t\t\t"; >- protected final String TEXT_239 = " compoundCommand = new "; >- protected final String TEXT_240 = "();" + NL + "\t\t\tcompoundCommand.append("; >- protected final String TEXT_241 = ".create(domainModelEditDomain, "; >- protected final String TEXT_242 = ", " + NL + "\t\t\t\t"; >- protected final String TEXT_243 = ".eINSTANCE.get"; >- protected final String TEXT_244 = "(), createdDomainElement));" + NL + "\t\t\tcompoundCommand.append("; >- protected final String TEXT_245 = ".create(domainModelEditDomain, "; >- protected final String TEXT_246 = ", " + NL + "\t\t\t\t"; >- protected final String TEXT_247 = ".eINSTANCE.get"; >- protected final String TEXT_248 = "(), createdDomainElement));" + NL + "\t\t\tthis.domainModelAddCommand = compoundCommand;"; >- protected final String TEXT_249 = NL + "\t\t\tthis.domainModelAddCommand = "; >- protected final String TEXT_250 = ".create(domainModelEditDomain, "; >- protected final String TEXT_251 = ", " + NL + "\t\t\t\t"; >- protected final String TEXT_252 = ".eINSTANCE.get"; >- protected final String TEXT_253 = "(), createdDomainElement);"; >- protected final String TEXT_254 = NL + "\t\t\tconstraint = constraint.union(new "; >- protected final String TEXT_255 = "("; >- protected final String TEXT_256 = ", "; >- protected final String TEXT_257 = "));"; >- protected final String TEXT_258 = NL + "\t\t\tthis.notationAddCommand = new "; >- protected final String TEXT_259 = "(parent, "; >- protected final String TEXT_260 = "("; >- protected final String TEXT_261 = ") "; >- protected final String TEXT_262 = "createdDomainElement, " + NL + "\t\t\t\t"; >- protected final String TEXT_263 = "constraint"; >- protected final String TEXT_264 = "null"; >- protected final String TEXT_265 = ", "; >- protected final String TEXT_266 = ".INSTANCE);" + NL + "\t\t\trequest.setCreatedObject(notationAddCommand.getCreatedView());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final org.eclipse.emf.common.command.Command domainModelAddCommand;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canExecute() {" + NL + "\t\t\treturn domainModelAddCommand != null" + NL + "\t\t\t\t\t&& domainModelAddCommand.canExecute() && notationAddCommand != null && notationAddCommand.canExecute();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn domainModelAddCommand != null" + NL + "\t\t\t\t\t&& domainModelAddCommand.canUndo() && notationAddCommand != null && notationAddCommand.canUndo();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\tdomainModelAddCommand.execute();" + NL + "\t\t\tnotationAddCommand.execute();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\tnotationAddCommand.undo();" + NL + "\t\t\tdomainModelAddCommand.undo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\texecute();" + NL + "\t\t}" + NL + "\t}"; >- protected final String TEXT_267 = NL; >- protected final String TEXT_268 = NL; >- protected final String TEXT_269 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_270 = " structuralFeatures2Refresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Refresher getRefresher("; >- protected final String TEXT_271 = " feature, "; >- protected final String TEXT_272 = " msg) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\treturn (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t}" + NL + "" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void createRefreshers() {" + NL + "\t\tstructuralFeatures2Refresher = new HashMap();"; >- protected final String TEXT_273 = NL; >- protected final String TEXT_274 = "\t\tRefresher childrenRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshChildren();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; >- protected final String TEXT_275 = ".eINSTANCE.getView_PersistedChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; >- protected final String TEXT_276 = ".eINSTANCE.getView_TransientChildren(), childrenRefresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void activate() {" + NL + "\t\tsuper.activate();" + NL + "\t\tif (!getDiagram().eAdapters().contains(getUpdateManager())) {" + NL + "\t\t\tgetDiagram().eAdapters().add(getUpdateManager());" + NL + "\t\t}" + NL + "\t\tif (!getDiagram().getElement().eAdapters().contains(domainModelRefresher)) {" + NL + "\t\t\tgetDiagram().getElement().eAdapters().add(domainModelRefresher);" + NL + "\t\t}" + NL + "\t\tinstallNotationModelRefresher();"; >- protected final String TEXT_277 = NL + "\t\tinstallLinkNotationModelRefresher();"; >- protected final String TEXT_278 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void deactivate() {"; >- protected final String TEXT_279 = NL + "\t\tuninstallLinkNotationModelRefresher();"; >- protected final String TEXT_280 = NL + "\t\tuninstallNotationModelRefresher();" + NL + "\t\tgetDiagram().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\tgetDiagram().eAdapters().remove(getUpdateManager());" + NL + "\t\tsuper.deactivate();" + NL + "\t}" + NL; >- protected final String TEXT_281 = NL; >- protected final String TEXT_282 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void installNotationModelRefresher() {" + NL + "\t\t"; >- protected final String TEXT_283 = " refresher = getNotationModelRefresher();" + NL + "\t\tif (refresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >- protected final String TEXT_284 = " domainModelEditDomain = "; >- protected final String TEXT_285 = ".getEditingDomain("; >- protected final String TEXT_286 = ".getElement());" + NL + "\t\trefresher.install(domainModelEditDomain);" + NL + "\t\trefreshNotationModel();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void uninstallNotationModelRefresher() {" + NL + "\t\tgetNotationModelRefresher().uninstall();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_287 = " notationModelRefresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_288 = " getNotationModelRefresher() {" + NL + "\t\tif (notationModelRefresher == null) {" + NL + "\t\t\tnotationModelRefresher = new NotationModelRefresher();" + NL + "\t\t}" + NL + "\t\treturn notationModelRefresher;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class NotationModelRefresher extends "; >- protected final String TEXT_289 = " {"; >- protected final String TEXT_290 = NL + NL + "\t\t/**" + NL + "\t\t * NB: Children of this element are selected based on constraint declared in "; >- protected final String TEXT_291 = ". " + NL + "\t\t * Since no assumptions may be made concerning the runtime behavior of the constraint, <b>any</b> non-touch notification may result in " + NL + "\t\t * notational model having to be updated." + NL + "\t\t * <p/>User is encouraged to change implementation of this method to provide an optimization if it is safe to assume that not all notifications" + NL + "\t\t * result in such an update." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >- protected final String TEXT_292 = " getConstrainedChildrenFilter() {" + NL + "\t\t\treturn "; >- protected final String TEXT_293 = ".NOT_TOUCH;" + NL + "\t\t}"; >- protected final String TEXT_294 = NL + NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly affect the notational model" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_295 = " createFilter() {"; >- protected final String TEXT_296 = NL + "\t\t\t"; >- protected final String TEXT_297 = " filter = "; >- protected final String TEXT_298 = ".createFeatureFilter("; >- protected final String TEXT_299 = ".eINSTANCE.get"; >- protected final String TEXT_300 = "());"; >- protected final String TEXT_301 = NL + "\t\t\tfilter = filter.or("; >- protected final String TEXT_302 = ".createFeatureFilter("; >- protected final String TEXT_303 = ".eINSTANCE.get"; >- protected final String TEXT_304 = "()));"; >- protected final String TEXT_305 = NL + "\t\t\tfilter = filter.and("; >- protected final String TEXT_306 = ".createNotifierFilter("; >- protected final String TEXT_307 = ".getElement()));"; >- protected final String TEXT_308 = NL + "\t\t\t"; >- protected final String TEXT_309 = " filter = "; >- protected final String TEXT_310 = ".createNotifierFilter("; >- protected final String TEXT_311 = ".getElement());"; >- protected final String TEXT_312 = NL + "\t\t\tfilter = getConstrainedChildrenFilter().or(filter);"; >- protected final String TEXT_313 = NL + "\t\t\t"; >- protected final String TEXT_314 = " filter = getConstrainedChildrenFilter();"; >- protected final String TEXT_315 = NL + "\t\t\t"; >- protected final String TEXT_316 = " filter = "; >- protected final String TEXT_317 = ".NOT_TOUCH;"; >- protected final String TEXT_318 = NL + "\t\t\treturn filter;"; >- protected final String TEXT_319 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_320 = " getCreateNotationalElementCommand("; >- protected final String TEXT_321 = " descriptor) {"; >- protected final String TEXT_322 = NL; >- protected final String TEXT_323 = "\t\t\t"; >- protected final String TEXT_324 = " domainElement = descriptor.getElement();" + NL + "\t\t\tint nodeVisualID = descriptor.getVisualID();" + NL + "\t\t\tswitch (nodeVisualID) {"; >- protected final String TEXT_325 = NL + "\t\t\tcase "; >- protected final String TEXT_326 = ".VISUAL_ID:" + NL + "\t\t\t\tif (domainElement instanceof "; >- protected final String TEXT_327 = ") {" + NL + "\t\t\t\t\treturn new "; >- protected final String TEXT_328 = "("; >- protected final String TEXT_329 = ", domainElement, "; >- protected final String TEXT_330 = "new "; >- protected final String TEXT_331 = "(0, 0, "; >- protected final String TEXT_332 = ", "; >- protected final String TEXT_333 = ")"; >- protected final String TEXT_334 = NL + "null"; >- protected final String TEXT_335 = ", "; >- protected final String TEXT_336 = ".INSTANCE);" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn null;"; >- protected final String TEXT_337 = NL + "\t\t\tdefault:" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}"; >- protected final String TEXT_338 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_339 = " getSemanticChildNodes() {"; >- protected final String TEXT_340 = NL; >- protected final String TEXT_341 = NL + "\treturn "; >- protected final String TEXT_342 = ".EMPTY_LIST;"; >- protected final String TEXT_343 = NL + "\t"; >- protected final String TEXT_344 = " result = new "; >- protected final String TEXT_345 = "();"; >- protected final String TEXT_346 = NL + "\t"; >- protected final String TEXT_347 = " viewObject = "; >- protected final String TEXT_348 = ";" + NL + "\t"; >- protected final String TEXT_349 = " modelObject = viewObject.getElement();" + NL + "\t"; >- protected final String TEXT_350 = " nextValue;" + NL + "\tint nodeVID;"; >- protected final String TEXT_351 = NL + "\tfor("; >- protected final String TEXT_352 = " it = "; >- protected final String TEXT_353 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = ("; >- protected final String TEXT_354 = ") it.next();"; >- protected final String TEXT_355 = NL + "\tnextValue = ("; >- protected final String TEXT_356 = ")"; >- protected final String TEXT_357 = ";"; >- protected final String TEXT_358 = NL + "\tnodeVID = "; >- protected final String TEXT_359 = ".INSTANCE.getNodeVisualID(viewObject, nextValue);"; >- protected final String TEXT_360 = NL + "\tswitch (nodeVID) {"; >- protected final String TEXT_361 = NL + "\tcase "; >- protected final String TEXT_362 = ".VISUAL_ID: {"; >- protected final String TEXT_363 = NL + "\tif ("; >- protected final String TEXT_364 = ".VISUAL_ID == nodeVID) {"; >- protected final String TEXT_365 = NL + "\t\tresult.add(new "; >- protected final String TEXT_366 = "(nextValue, nodeVID));"; >- protected final String TEXT_367 = NL + "\t\tbreak;" + NL + "\t\t}"; >- protected final String TEXT_368 = NL + "\t\t}"; >- protected final String TEXT_369 = NL + "\t}"; >- protected final String TEXT_370 = NL + "\t}"; >- protected final String TEXT_371 = NL + "\treturn result;"; >- protected final String TEXT_372 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Returns whether a notational element should be created for the given domain element. " + NL + "\t\t * The generated code always returns "; >- protected final String TEXT_373 = ". " + NL + "\t\t * User can change implementation of this method to handle a more sophisticated logic." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean shouldCreateView("; >- protected final String TEXT_374 = " descriptor) {" + NL + "\t\t\treturn "; >- protected final String TEXT_375 = ";" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_376 = " getHost() {" + NL + "\t\t\treturn "; >- protected final String TEXT_377 = ";" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshNotationModel() {" + NL + "\t\t"; >- protected final String TEXT_378 = " childRefresher = getNotationModelRefresher();" + NL + "\t\tif (!childRefresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >- protected final String TEXT_379 = " command = childRefresher.buildRefreshNotationModelCommand();" + NL + "\t\tif (command == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >- protected final String TEXT_380 = " domainModelEditDomain = "; >- protected final String TEXT_381 = ".getEditingDomain("; >- protected final String TEXT_382 = ".getElement());" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(new "; >- protected final String TEXT_383 = "(domainModelEditDomain, command));" + NL + "\t}" + NL + NL; >- protected final String TEXT_384 = NL; >- protected final String TEXT_385 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void installLinkNotationModelRefresher() {" + NL + "\t\tLinkNotationModelRefresher refresher = getLinkNotationModelRefresher();" + NL + "\t\tif (refresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >- protected final String TEXT_386 = " domainModelEditDomain = "; >- protected final String TEXT_387 = ".getEditingDomain("; >- protected final String TEXT_388 = ".getElement());" + NL + "\t\trefresher.install(domainModelEditDomain);" + NL + "\t\trefreshLinkNotationModel();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void uninstallLinkNotationModelRefresher() {" + NL + "\t\tgetLinkNotationModelRefresher().uninstall();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate LinkNotationModelRefresher linkNotationModelRefresher;" + NL + "" + NL + "\t/**" + NL + "\t * Service to find a notational element that corresponds to the given underlying domain element. " + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_389 = " viewService;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_390 = " getViewService() {" + NL + "\t\tif (viewService == null) {" + NL + "\t\t\tviewService = new "; >- protected final String TEXT_391 = "(getViewer());" + NL + "\t\t}" + NL + "\t\treturn viewService;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate LinkNotationModelRefresher getLinkNotationModelRefresher() {" + NL + "\t\tif (linkNotationModelRefresher == null) {" + NL + "\t\t\tlinkNotationModelRefresher = new LinkNotationModelRefresher(getViewService());" + NL + "\t\t}" + NL + "\t\treturn linkNotationModelRefresher;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class LinkNotationModelRefresher extends "; >- protected final String TEXT_392 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic LinkNotationModelRefresher("; >- protected final String TEXT_393 = " viewService) {" + NL + "\t\t\tsuper(viewService);" + NL + "\t\t}"; >- protected final String TEXT_394 = NL + NL + "\t\t/**" + NL + "\t\t * NB: Child links of this element are selected based on constraint declared in "; >- protected final String TEXT_395 = ". " + NL + "\t\t * Since no assumptions may be made concerning the runtime behavior of the constraint, <b>any</b> non-touch notification may result in " + NL + "\t\t * notational model having to be updated." + NL + "\t\t * <p/>User is encouraged to change implementation of this method to provide an optimization if it is safe to assume that not all notifications" + NL + "\t\t * result in such an update." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >- protected final String TEXT_396 = " getConstrainedChildLinksFilter() {" + NL + "\t\t\treturn "; >- protected final String TEXT_397 = ".NOT_TOUCH;" + NL + "\t\t}"; >- protected final String TEXT_398 = NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly result in uncontained links. " + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >- protected final String TEXT_399 = " createUncontainedLinksFilter() {" + NL + "\t\t\treturn "; >- protected final String TEXT_400 = ".createEventTypeFilter("; >- protected final String TEXT_401 = ".SET).or(" + NL + "\t\t\t\t"; >- protected final String TEXT_402 = ".createEventTypeFilter("; >- protected final String TEXT_403 = ".UNSET).or(" + NL + "\t\t\t\t"; >- protected final String TEXT_404 = ".createEventTypeFilter("; >- protected final String TEXT_405 = ".REMOVE).or(" + NL + "\t\t\t\t"; >- protected final String TEXT_406 = ".createEventTypeFilter("; >- protected final String TEXT_407 = ".REMOVE_MANY)" + NL + "\t\t\t)));" + NL + "\t\t}"; >- protected final String TEXT_408 = NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly affect the notational model" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_409 = " createFilter() {"; >- protected final String TEXT_410 = NL; >- protected final String TEXT_411 = NL + "\t\t\t"; >- protected final String TEXT_412 = " filter = "; >- protected final String TEXT_413 = ".createFeatureFilter("; >- protected final String TEXT_414 = ".eINSTANCE.get"; >- protected final String TEXT_415 = "());"; >- protected final String TEXT_416 = NL + "\t\t\tfilter = filter.or("; >- protected final String TEXT_417 = ".createFeatureFilter("; >- protected final String TEXT_418 = ".eINSTANCE.get"; >- protected final String TEXT_419 = "()));"; >- protected final String TEXT_420 = NL; >- protected final String TEXT_421 = NL + "\t\t\t"; >- protected final String TEXT_422 = " filter = "; >- protected final String TEXT_423 = ".createFeatureFilter("; >- protected final String TEXT_424 = ".eINSTANCE.get"; >- protected final String TEXT_425 = "());"; >- protected final String TEXT_426 = NL + "\t\t\tfilter = filter.or("; >- protected final String TEXT_427 = ".createFeatureFilter("; >- protected final String TEXT_428 = ".eINSTANCE.get"; >- protected final String TEXT_429 = "()));"; >- protected final String TEXT_430 = NL; >- protected final String TEXT_431 = NL + "\t\t\t"; >- protected final String TEXT_432 = " filter = "; >- protected final String TEXT_433 = ".createFeatureFilter("; >- protected final String TEXT_434 = ".eINSTANCE.get"; >- protected final String TEXT_435 = "());"; >- protected final String TEXT_436 = NL + "\t\t\tfilter = filter.or("; >- protected final String TEXT_437 = ".createFeatureFilter("; >- protected final String TEXT_438 = ".eINSTANCE.get"; >- protected final String TEXT_439 = "()));"; >- protected final String TEXT_440 = NL; >- protected final String TEXT_441 = NL + "\t\t\t"; >- protected final String TEXT_442 = " filter = "; >- protected final String TEXT_443 = ".createFeatureFilter("; >- protected final String TEXT_444 = ".eINSTANCE.get"; >- protected final String TEXT_445 = "());"; >- protected final String TEXT_446 = NL + "\t\t\tfilter = filter.or("; >- protected final String TEXT_447 = ".createFeatureFilter("; >- protected final String TEXT_448 = ".eINSTANCE.get"; >- protected final String TEXT_449 = "()));"; >- protected final String TEXT_450 = NL + "\t\t\tfilter = getConstrainedChildLinksFilter().or(filter);"; >- protected final String TEXT_451 = NL + "\t\t\t"; >- protected final String TEXT_452 = " filter = getConstrainedChildLinksFilter();"; >- protected final String TEXT_453 = NL + "\t\t\tfilter = filter.or(createUncontainedLinksFilter());"; >- protected final String TEXT_454 = NL + "\t\t\t"; >- protected final String TEXT_455 = " filter = createUncontainedLinksFilter();"; >- protected final String TEXT_456 = NL + "\t\t\t"; >- protected final String TEXT_457 = " filter = "; >- protected final String TEXT_458 = ".NOT_TOUCH;"; >- protected final String TEXT_459 = NL + "\t\t\treturn filter;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t \t * @generated" + NL + "\t \t */" + NL + "\t\tprotected "; >- protected final String TEXT_460 = " getCreateNotationalElementCommand("; >- protected final String TEXT_461 = " descriptor) {" + NL + "\t\t\t"; >- protected final String TEXT_462 = " linkDescriptor = ("; >- protected final String TEXT_463 = ") descriptor;"; >- protected final String TEXT_464 = NL; >- protected final String TEXT_465 = "\t\t\t"; >- protected final String TEXT_466 = " sourceView = getViewService().findView(linkDescriptor.getSource());" + NL + "\t\t\t"; >- protected final String TEXT_467 = " targetView = getViewService().findView(linkDescriptor.getDestination());" + NL + "\t\t\t"; >- protected final String TEXT_468 = " decorator = null;" + NL + "\t\t\tif (sourceView == null || targetView == null) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tswitch (linkDescriptor.getVisualID()) {"; >- protected final String TEXT_469 = NL + "\t\t\tcase "; >- protected final String TEXT_470 = ".VISUAL_ID:" + NL + "\t\t\t\tif (linkDescriptor.getElement() instanceof "; >- protected final String TEXT_471 = ") {" + NL + "\t\t\t\t\tdecorator = "; >- protected final String TEXT_472 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;"; >- protected final String TEXT_473 = NL + "\t\t\tcase "; >- protected final String TEXT_474 = ".VISUAL_ID:" + NL + "\t\t\t\tif (linkDescriptor.getElement() == null) {" + NL + "\t\t\t\t\tdecorator = "; >- protected final String TEXT_475 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;"; >- protected final String TEXT_476 = NL + "\t\t\t}" + NL + "\t\t\tif (decorator == null) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\treturn new "; >- protected final String TEXT_477 = "("; >- protected final String TEXT_478 = ", linkDescriptor.getElement(), sourceView, targetView, decorator);"; >- protected final String TEXT_479 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_480 = " getSemanticChildLinks() {"; >- protected final String TEXT_481 = NL; >- protected final String TEXT_482 = "\t"; >- protected final String TEXT_483 = " result = new "; >- protected final String TEXT_484 = "();"; >- protected final String TEXT_485 = NL + "\t"; >- protected final String TEXT_486 = " modelObject = "; >- protected final String TEXT_487 = ".getElement();" + NL + "\t"; >- protected final String TEXT_488 = " nextValue;"; >- protected final String TEXT_489 = NL + "\tint linkVID;"; >- protected final String TEXT_490 = NL + "\tfor("; >- protected final String TEXT_491 = " it = "; >- protected final String TEXT_492 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = ("; >- protected final String TEXT_493 = ") it.next();"; >- protected final String TEXT_494 = NL + "\tnextValue = ("; >- protected final String TEXT_495 = ")"; >- protected final String TEXT_496 = ";"; >- protected final String TEXT_497 = NL + "\tlinkVID = "; >- protected final String TEXT_498 = ".INSTANCE.getLinkWithClassVisualID(nextValue);"; >- protected final String TEXT_499 = NL + "\tswitch (linkVID) {"; >- protected final String TEXT_500 = NL + "\tcase "; >- protected final String TEXT_501 = ".VISUAL_ID: {"; >- protected final String TEXT_502 = NL + "\tif ("; >- protected final String TEXT_503 = ".VISUAL_ID == linkVID) {"; >- protected final String TEXT_504 = NL + "\t\t"; >- protected final String TEXT_505 = " source = ("; >- protected final String TEXT_506 = ")"; >- protected final String TEXT_507 = ";"; >- protected final String TEXT_508 = NL + "\t\t"; >- protected final String TEXT_509 = " source = "; >- protected final String TEXT_510 = ".getElement();"; >- protected final String TEXT_511 = NL + "\t\t"; >- protected final String TEXT_512 = " target = ("; >- protected final String TEXT_513 = ")"; >- protected final String TEXT_514 = ";"; >- protected final String TEXT_515 = NL + "\t\t"; >- protected final String TEXT_516 = " target = "; >- protected final String TEXT_517 = ".getElement();"; >- protected final String TEXT_518 = NL + "\t\tif (source != null && target != null) {" + NL + "\t\t\tresult.add(new "; >- protected final String TEXT_519 = "(source, target, nextValue, linkVID));" + NL + "\t\t}"; >- protected final String TEXT_520 = NL + "\t\tbreak;" + NL + "\t}"; >- protected final String TEXT_521 = NL + "\t}"; >- protected final String TEXT_522 = NL + "\t}"; >- protected final String TEXT_523 = NL + "\t}"; >- protected final String TEXT_524 = NL + "\tfor("; >- protected final String TEXT_525 = " it = "; >- protected final String TEXT_526 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = ("; >- protected final String TEXT_527 = ") it.next();"; >- protected final String TEXT_528 = NL + "\tnextValue = ("; >- protected final String TEXT_529 = ")"; >- protected final String TEXT_530 = ";"; >- protected final String TEXT_531 = NL + "\tif (nextValue != null) {"; >- protected final String TEXT_532 = NL + "\t\tresult.add(new "; >- protected final String TEXT_533 = "(modelObject, nextValue, null, "; >- protected final String TEXT_534 = ".VISUAL_ID));"; >- protected final String TEXT_535 = NL + "\t}"; >- protected final String TEXT_536 = NL + "\t}"; >- protected final String TEXT_537 = NL + "\treturn result;"; >- protected final String TEXT_538 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_539 = " getNotationalChildLinks() {" + NL + "\t\t\t"; >- protected final String TEXT_540 = " result = new "; >- protected final String TEXT_541 = "();" + NL + "\t\t\t"; >- protected final String TEXT_542 = " allLinks = "; >- protected final String TEXT_543 = ".getEdges();" + NL + "\t\t\tfor("; >- protected final String TEXT_544 = " it = allLinks.iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t"; >- protected final String TEXT_545 = " next = ("; >- protected final String TEXT_546 = ") it.next();"; >- protected final String TEXT_547 = NL + "\t\t\t\tif (next.isSetElement() && next.getElement() != null && next.getElement().eResource() == null) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; >- protected final String TEXT_548 = " source = next.getSource();" + NL + "\t\t\t\tif (source == null || (source.isSetElement() && source.getElement() != null && source.getElement().eResource() == null)) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; >- protected final String TEXT_549 = " target = next.getTarget();" + NL + "\t\t\t\tif (target == null || (target.isSetElement() && target.getElement() != null && target.getElement().eResource() == null)) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}"; >- protected final String TEXT_550 = NL + "\t\t\t\tif (!next.isSetElement() || next.getElement() == null) {" + NL + "\t\t\t\t\tif (next.getSource() == "; >- protected final String TEXT_551 = ") {" + NL + "\t\t\t\t\t\tint linkVID = "; >- protected final String TEXT_552 = ".getVisualID(next);" + NL + "\t\t\t\t\t\tswitch (linkVID) {"; >- protected final String TEXT_553 = NL + "\t\t\t\t\t\tcase "; >- protected final String TEXT_554 = ".VISUAL_ID:"; >- protected final String TEXT_555 = NL + "\t\t\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}"; >- protected final String TEXT_556 = NL + "\t\t\t\t} else {"; >- protected final String TEXT_557 = NL + "\t\t\t\t}"; >- protected final String TEXT_558 = NL + "\t\t\t\tif (next.isSetElement() && next.getElement() != null) {"; >- protected final String TEXT_559 = NL + "\t\t\t\t\tif (next.getElement().eContainer() == "; >- protected final String TEXT_560 = ".getElement()) {" + NL + "\t\t\t\t\t\tint linkVID = "; >- protected final String TEXT_561 = ".getVisualID(next);" + NL + "\t\t\t\t\t\tswitch (linkVID) {"; >- protected final String TEXT_562 = NL + "\t\t\t\t\t\tcase "; >- protected final String TEXT_563 = ".VISUAL_ID:"; >- protected final String TEXT_564 = NL + "\t\t\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}"; >- protected final String TEXT_565 = NL + "\t\t\t}" + NL + "\t\t\treturn result;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Returns whether a notational edge should be created for the given domain element. " + NL + "\t\t * The generated code always returns "; >- protected final String TEXT_566 = ". " + NL + "\t\t * User can change implementation of this method to handle a more sophisticated logic." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean shouldCreateView("; >- protected final String TEXT_567 = " descriptor) {" + NL + "\t\t\treturn "; >- protected final String TEXT_568 = ";" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_569 = " getHost() {" + NL + "\t\t\treturn "; >- protected final String TEXT_570 = ";" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshLinkNotationModel() {" + NL + "\t\t"; >- protected final String TEXT_571 = " linkRefresher = getLinkNotationModelRefresher();" + NL + "\t\tif (!linkRefresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >- protected final String TEXT_572 = " command = linkRefresher.buildRefreshNotationModelCommand();" + NL + "\t\tif (command == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >- protected final String TEXT_573 = " domainModelEditDomain = "; >- protected final String TEXT_574 = ".getEditingDomain("; >- protected final String TEXT_575 = ".getElement());" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(new "; >- protected final String TEXT_576 = "(domainModelEditDomain, command));" + NL + "\t}"; >- protected final String TEXT_577 = NL; >- protected final String TEXT_578 = NL; >- protected final String TEXT_579 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_580 = " domainModelRefresher = new "; >- protected final String TEXT_581 = "(this);" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_582 = " updateManager;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_583 = " getUpdateManager() {" + NL + "\t\tif (updateManager == null) {" + NL + "\t\t\tupdateManager = new "; >- protected final String TEXT_584 = "(getViewer());" + NL + "\t\t}" + NL + "\t\treturn updateManager;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class TreeEditPartAdapter extends "; >- protected final String TEXT_585 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic TreeEditPartAdapter() {" + NL + "\t\t\tsuper(getDiagram(), "; >- protected final String TEXT_586 = ".getInstance().getItemProvidersAdapterFactory());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected void createEditPolicies() {" + NL + "\t\t\tinstallEditPolicy(EditPolicy.COMPONENT_ROLE, new RootComponentEditPolicy());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void activate() {" + NL + "\t\t\tsuper.activate();" + NL + "\t\t\tif (!getDiagram().eAdapters().contains(getTreeUpdateManager())) {" + NL + "\t\t\t\tgetDiagram().eAdapters().add(getTreeUpdateManager());" + NL + "\t\t\t}" + NL + "\t\t\tif (!getDiagram().getElement().eAdapters().contains(domainModelRefresher)) {" + NL + "\t\t\t\tgetDiagram().getElement().eAdapters().add(domainModelRefresher);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void deactivate() {" + NL + "\t\t\tgetDiagram().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\t\tgetDiagram().eAdapters().remove(getTreeUpdateManager());" + NL + "\t\t\tsuper.deactivate();" + NL + "\t\t}" + NL; >- protected final String TEXT_587 = NL; >- protected final String TEXT_588 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_589 = " domainModelRefresher = new "; >- protected final String TEXT_590 = "(this);" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >- protected final String TEXT_591 = " treeUpdateManager;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >- protected final String TEXT_592 = " getTreeUpdateManager() {" + NL + "\t\t\tif (treeUpdateManager == null) {" + NL + "\t\t\t\ttreeUpdateManager = new "; >- protected final String TEXT_593 = "(getViewer());" + NL + "\t\t\t}" + NL + "\t\t\treturn treeUpdateManager;" + NL + "\t\t}" + NL + "\t}" + NL + "}"; >- protected final String TEXT_594 = NL; >+ protected final String TEXT_94 = NL; >+ protected final String TEXT_95 = NL + "\t\tif ("; >+ protected final String TEXT_96 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_97 = NL + "\t\t}"; >+ protected final String TEXT_98 = NL + "\t\tif ("; >+ protected final String TEXT_99 = ".size() >= "; >+ protected final String TEXT_100 = ".eINSTANCE.get"; >+ protected final String TEXT_101 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_102 = NL + "\t\t}"; >+ protected final String TEXT_103 = NL + "\t\t\t\t\tresult.append("; >+ protected final String TEXT_104 = ".create(" + NL + "\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_105 = ".getElement(), "; >+ protected final String TEXT_106 = ".eINSTANCE.get"; >+ protected final String TEXT_107 = "(), element));"; >+ protected final String TEXT_108 = NL; >+ protected final String TEXT_109 = NL + "\t\tif ("; >+ protected final String TEXT_110 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_111 = NL + "\t\t}"; >+ protected final String TEXT_112 = NL + "\t\tif ("; >+ protected final String TEXT_113 = ".size() >= "; >+ protected final String TEXT_114 = ".eINSTANCE.get"; >+ protected final String TEXT_115 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_116 = NL + "\t\t}"; >+ protected final String TEXT_117 = NL + "\t\t\t\t\tresult.append("; >+ protected final String TEXT_118 = ".create(" + NL + "\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_119 = ".getElement(), "; >+ protected final String TEXT_120 = ".eINSTANCE.get"; >+ protected final String TEXT_121 = "(), element));"; >+ protected final String TEXT_122 = NL + "\t\t\t\t\tresult.append("; >+ protected final String TEXT_123 = ".create(editingDomain, childNode.eContainer(), childNode.eContainmentFeature(), childNode));" + NL + "\t\t\t\t\tif (newVisualID == visualID) {" + NL + "\t\t\t\t\t\tresult.append("; >+ protected final String TEXT_124 = ".create(editingDomain, "; >+ protected final String TEXT_125 = ", "; >+ protected final String TEXT_126 = ".eINSTANCE.getView_PersistedChildren(), childNode));" + NL + "\t\t\t\t\t\tresult.append(new "; >+ protected final String TEXT_127 = "(childNode, "; >+ protected final String TEXT_128 = "null"; >+ protected final String TEXT_129 = "("; >+ protected final String TEXT_130 = ") constraint"; >+ protected final String TEXT_131 = "));" + NL + "\t\t\t\t\t} else {"; >+ protected final String TEXT_132 = NL + "\t\t\t\t\t\tresult.append(new "; >+ protected final String TEXT_133 = "("; >+ protected final String TEXT_134 = ", element, "; >+ protected final String TEXT_135 = "null"; >+ protected final String TEXT_136 = "(("; >+ protected final String TEXT_137 = ") constraint).getCopy().union(new "; >+ protected final String TEXT_138 = "("; >+ protected final String TEXT_139 = ", "; >+ protected final String TEXT_140 = "))"; >+ protected final String TEXT_141 = ", "; >+ protected final String TEXT_142 = ".INSTANCE));"; >+ protected final String TEXT_143 = NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tcommand = result;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;"; >+ protected final String TEXT_144 = NL + "\t\t\t}" + NL + "\t\t\tif (command != null) {" + NL + "\t\t\t\treturn new "; >+ protected final String TEXT_145 = "(editingDomain, command);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "\treturn "; >+ protected final String TEXT_146 = ".INSTANCE;" + NL + "}"; >+ protected final String TEXT_147 = NL; >+ protected final String TEXT_148 = NL + "protected "; >+ protected final String TEXT_149 = " getCloneCommand("; >+ protected final String TEXT_150 = " request) {" + NL + "\t"; >+ protected final String TEXT_151 = " editParts = request.getEditParts();" + NL + "\t"; >+ protected final String TEXT_152 = " command = new "; >+ protected final String TEXT_153 = "();" + NL + "\tcommand.setDebugLabel(\"Clone in ConstrainedLayoutEditPolicy\");//$NON-NLS-1$" + NL + "\t"; >+ protected final String TEXT_154 = " childPart;" + NL + "\t"; >+ protected final String TEXT_155 = " r;" + NL + "\tObject constraint;" + NL + "" + NL + "\tfor (int i = 0; i < editParts.size(); i++) {" + NL + "\t\tchildPart = ("; >+ protected final String TEXT_156 = ")editParts.get(i);" + NL + "\t\tr = childPart.getFigure().getBounds().getCopy();" + NL + "\t\t//convert r to absolute from childpart figure" + NL + "\t\tchildPart.getFigure().translateToAbsolute(r);" + NL + "\t\tr = request.getTransformedRectangle(r);" + NL + "\t\t//convert this figure to relative " + NL + "\t\tgetLayoutContainer().translateToRelative(r);" + NL + "\t\tgetLayoutContainer().translateFromParent(r);" + NL + "\t\tr.translate(getLayoutOrigin().getNegated());" + NL + "\t\tconstraint = getConstraintFor(r);" + NL + "\t\tcommand.add(createCloneCommand(childPart," + NL + "\t\t\ttranslateToModelConstraint(constraint)));" + NL + "\t}" + NL + "\treturn command.unwrap();" + NL + "}" + NL + "protected "; >+ protected final String TEXT_157 = " createCloneCommand(final "; >+ protected final String TEXT_158 = " child, final Object constraint) {" + NL + "\tif (child.getModel() instanceof "; >+ protected final String TEXT_159 = ") {" + NL + "\t\tfinal "; >+ protected final String TEXT_160 = " childNode = ("; >+ protected final String TEXT_161 = ") child.getModel();" + NL + "\t\tfinal "; >+ protected final String TEXT_162 = " editingDomain = "; >+ protected final String TEXT_163 = ".getEditingDomain(childNode.getDiagram().getElement());" + NL + "\t\tString modelID = "; >+ protected final String TEXT_164 = ".getModelID(childNode);" + NL + "\t\tif ("; >+ protected final String TEXT_165 = ".MODEL_ID.equals(modelID)) {" + NL + "\t\t\tfinal int newVisualID = "; >+ protected final String TEXT_166 = ".INSTANCE.getNodeVisualID("; >+ protected final String TEXT_167 = ", childNode.getElement());" + NL + "\t\t\t"; >+ protected final String TEXT_168 = " command = null;" + NL + "\t\t\tswitch (newVisualID) {"; >+ protected final String TEXT_169 = NL + "\t\t\tcase "; >+ protected final String TEXT_170 = ".VISUAL_ID:" + NL + "\t\t\t\tcommand = new "; >+ protected final String TEXT_171 = "() {" + NL + "\t\t\t\t\tprivate "; >+ protected final String TEXT_172 = " afterCopyCommand;" + NL + "\t\t\t\t\tprotected "; >+ protected final String TEXT_173 = " createCommand() {" + NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_174 = " element = childNode.getElement();" + NL + "\t\t\t\t\t\t//We are being optimistic here about whether further commands can be executed." + NL + "\t\t\t\t\t\t//Otherwise, we would have to execute the CopyCommand on every mouse move, which could be much too expensive. " + NL + "\t\t\t\t\t\treturn "; >+ protected final String TEXT_175 = ".create(editingDomain, element);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tprotected boolean prepare() {" + NL + "\t\t\t\t\t\tif (!super.prepare()) {" + NL + "\t\t\t\t\t\t\treturn false;" + NL + "\t\t\t\t\t\t}"; >+ protected final String TEXT_176 = NL; >+ protected final String TEXT_177 = NL + "\t\tif ("; >+ protected final String TEXT_178 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_179 = NL + "\t\t}"; >+ protected final String TEXT_180 = NL + "\t\tif ("; >+ protected final String TEXT_181 = ".size() >= "; >+ protected final String TEXT_182 = ".eINSTANCE.get"; >+ protected final String TEXT_183 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_184 = NL + "\t\t}"; >+ protected final String TEXT_185 = NL; >+ protected final String TEXT_186 = NL + "\t\tif ("; >+ protected final String TEXT_187 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_188 = NL + "\t\t}"; >+ protected final String TEXT_189 = NL + "\t\tif ("; >+ protected final String TEXT_190 = ".size() >= "; >+ protected final String TEXT_191 = ".eINSTANCE.get"; >+ protected final String TEXT_192 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_193 = NL + "\t\t}"; >+ protected final String TEXT_194 = NL + "\t\t\t\t\t\treturn true;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void execute() {" + NL + "\t\t\t\t\t\tsuper.execute();" + NL + "\t\t\t\t\t\tfinal "; >+ protected final String TEXT_195 = " results = super.getResult();" + NL + "\t\t\t\t\t\tassert results.size() == 1;" + NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_196 = " result = ("; >+ protected final String TEXT_197 = ") results.iterator().next();" + NL + "\t\t\t\t\t\tafterCopyCommand = new "; >+ protected final String TEXT_198 = "();"; >+ protected final String TEXT_199 = NL + "\t\t\t\t\t\tafterCopyCommand.append("; >+ protected final String TEXT_200 = ".create(" + NL + "\t\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t\t"; >+ protected final String TEXT_201 = ".getElement(), "; >+ protected final String TEXT_202 = ".eINSTANCE.get"; >+ protected final String TEXT_203 = "(), result));"; >+ protected final String TEXT_204 = NL + "\t\t\t\t\t\tafterCopyCommand.append("; >+ protected final String TEXT_205 = ".create(" + NL + "\t\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t\t"; >+ protected final String TEXT_206 = ".getElement(), "; >+ protected final String TEXT_207 = ".eINSTANCE.get"; >+ protected final String TEXT_208 = "(), result));"; >+ protected final String TEXT_209 = NL + "\t\t\t\t\t\tafterCopyCommand.append(new "; >+ protected final String TEXT_210 = "("; >+ protected final String TEXT_211 = ", result, "; >+ protected final String TEXT_212 = "null"; >+ protected final String TEXT_213 = "(("; >+ protected final String TEXT_214 = ") constraint).getCopy().union(new "; >+ protected final String TEXT_215 = "("; >+ protected final String TEXT_216 = ", "; >+ protected final String TEXT_217 = "))"; >+ protected final String TEXT_218 = ", "; >+ protected final String TEXT_219 = ".INSTANCE));" + NL + "\t\t\t\t\t\tif (afterCopyCommand.canExecute()) {" + NL + "\t\t\t\t\t\t\tafterCopyCommand.execute();" + NL + "\t\t\t\t\t\t} else {" + NL + "\t\t\t\t\t\t\tassert false;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void undo() {" + NL + "\t\t\t\t\t\tafterCopyCommand.undo();" + NL + "\t\t\t\t\t\tsuper.undo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void redo() {" + NL + "\t\t\t\t\t\tsuper.redo();" + NL + "\t\t\t\t\t\tafterCopyCommand.redo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "\t\t\t\tbreak;"; >+ protected final String TEXT_220 = NL + "\t\t\t}" + NL + "\t\t\tif (command != null) {" + NL + "\t\t\t\treturn new "; >+ protected final String TEXT_221 = "(editingDomain, command);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "\treturn "; >+ protected final String TEXT_222 = ".INSTANCE;" + NL + "}"; >+ protected final String TEXT_223 = NL + "\t\t\tprotected "; >+ protected final String TEXT_224 = " createChangeConstraintCommand(final "; >+ protected final String TEXT_225 = " request, final "; >+ protected final String TEXT_226 = " child, Object constraint) {"; >+ protected final String TEXT_227 = NL; >+ protected final String TEXT_228 = "\t\t\t\tfinal "; >+ protected final String TEXT_229 = " node = ("; >+ protected final String TEXT_230 = ") child.getModel();" + NL + "\t\t\t\t"; >+ protected final String TEXT_231 = " emfCommand = new "; >+ protected final String TEXT_232 = "(node, request, (("; >+ protected final String TEXT_233 = ")child).getFigure());" + NL + "\t\t\t\treturn new "; >+ protected final String TEXT_234 = "("; >+ protected final String TEXT_235 = ".getEditingDomain(node.getDiagram().getElement()), emfCommand);" + NL + "\t\t\t}" + NL + "\t\t\tprotected Command createChangeConstraintCommand("; >+ protected final String TEXT_236 = " child, Object constraint) {" + NL + "\t\t\t\tassert false;" + NL + "\t\t\t\treturn "; >+ protected final String TEXT_237 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t});" + NL + "\t\tinstallNotationModelRefresher();"; >+ protected final String TEXT_238 = NL + "\t\tinstallLinkNotationModelRefresher();"; >+ protected final String TEXT_239 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected IFigure createFigure() {" + NL + "\t\tIFigure f = new FreeformLayer();" + NL + "\t\tf.setBorder(new MarginBorder(5));" + NL + "\t\tf.setLayoutManager(new FreeformLayout());" + NL + "\t\treturn f;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Object getAdapter(Class key) {" + NL + "\t\tif ("; >+ protected final String TEXT_240 = ".class == key) {" + NL + "\t\t\treturn new "; >+ protected final String TEXT_241 = "(this);" + NL + "\t\t}" + NL + "\t\tif ("; >+ protected final String TEXT_242 = ".class == key) {" + NL + "\t\t\treturn getTreeEditPartAdapter();" + NL + "\t\t}"; >+ protected final String TEXT_243 = NL + "\t\treturn super.getAdapter(key);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate TreeEditPartAdapter myTreeEditPartAdapter;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate TreeEditPartAdapter getTreeEditPartAdapter() {" + NL + "\t\tif (myTreeEditPartAdapter == null) {" + NL + "\t\t\tmyTreeEditPartAdapter = new TreeEditPartAdapter();" + NL + "\t\t}" + NL + "\t\treturn myTreeEditPartAdapter;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected List getModelChildren() {" + NL + "\t\treturn getDiagram().getVisibleChildren();" + NL + "\t}" + NL; >+ protected final String TEXT_244 = NL; >+ protected final String TEXT_245 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_246 = "static "; >+ protected final String TEXT_247 = "class Create"; >+ protected final String TEXT_248 = "Command extends "; >+ protected final String TEXT_249 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; >+ protected final String TEXT_250 = " notationAddCommand;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Create"; >+ protected final String TEXT_251 = "Command("; >+ protected final String TEXT_252 = " parent, "; >+ protected final String TEXT_253 = " request"; >+ protected final String TEXT_254 = ", "; >+ protected final String TEXT_255 = " constraint"; >+ protected final String TEXT_256 = ") {" + NL + "\t\t\t"; >+ protected final String TEXT_257 = " domainModelEditDomain = "; >+ protected final String TEXT_258 = ".getEditingDomain(parent.getDiagram().getElement());"; >+ protected final String TEXT_259 = NL + "\t\t\t"; >+ protected final String TEXT_260 = " createdDomainElement = "; >+ protected final String TEXT_261 = ".eINSTANCE.create(" + NL + "\t\t\t\t"; >+ protected final String TEXT_262 = ".eINSTANCE.get"; >+ protected final String TEXT_263 = "());"; >+ protected final String TEXT_264 = NL + "\t\t\t"; >+ protected final String TEXT_265 = " createdDomainElement = "; >+ protected final String TEXT_266 = ".eINSTANCE.create"; >+ protected final String TEXT_267 = "();"; >+ protected final String TEXT_268 = NL + "\t\t\t"; >+ protected final String TEXT_269 = NL + "\t\t\t"; >+ protected final String TEXT_270 = "."; >+ protected final String TEXT_271 = ".initializeElement("; >+ protected final String TEXT_272 = "("; >+ protected final String TEXT_273 = ") "; >+ protected final String TEXT_274 = "createdDomainElement);"; >+ protected final String TEXT_275 = NL; >+ protected final String TEXT_276 = NL + "\t\tif ("; >+ protected final String TEXT_277 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_278 = NL + "\t\t}"; >+ protected final String TEXT_279 = NL + "\t\tif ("; >+ protected final String TEXT_280 = ".size() >= "; >+ protected final String TEXT_281 = ".eINSTANCE.get"; >+ protected final String TEXT_282 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_283 = NL + "\t\t}"; >+ protected final String TEXT_284 = NL; >+ protected final String TEXT_285 = NL + "\t\tif ("; >+ protected final String TEXT_286 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_287 = NL + "\t\t}"; >+ protected final String TEXT_288 = NL + "\t\tif ("; >+ protected final String TEXT_289 = ".size() >= "; >+ protected final String TEXT_290 = ".eINSTANCE.get"; >+ protected final String TEXT_291 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_292 = NL + "\t\t}"; >+ protected final String TEXT_293 = NL + "\t\t\t"; >+ protected final String TEXT_294 = " compoundCommand = new "; >+ protected final String TEXT_295 = "();" + NL + "\t\t\tcompoundCommand.append("; >+ protected final String TEXT_296 = ".create(domainModelEditDomain, parent.getElement(), " + NL + "\t\t\t\t"; >+ protected final String TEXT_297 = ".eINSTANCE.get"; >+ protected final String TEXT_298 = "(), createdDomainElement));" + NL + "\t\t\tcompoundCommand.append("; >+ protected final String TEXT_299 = ".create(domainModelEditDomain, parent.getElement(), " + NL + "\t\t\t\t"; >+ protected final String TEXT_300 = ".eINSTANCE.get"; >+ protected final String TEXT_301 = "(), createdDomainElement));" + NL + "\t\t\tthis.domainModelAddCommand = compoundCommand;"; >+ protected final String TEXT_302 = NL + "\t\t\tthis.domainModelAddCommand = "; >+ protected final String TEXT_303 = ".create(domainModelEditDomain, parent.getElement(), " + NL + "\t\t\t\t"; >+ protected final String TEXT_304 = ".eINSTANCE.get"; >+ protected final String TEXT_305 = "(), createdDomainElement);"; >+ protected final String TEXT_306 = NL + "\t\t\tconstraint = constraint.union(new "; >+ protected final String TEXT_307 = "("; >+ protected final String TEXT_308 = ", "; >+ protected final String TEXT_309 = "));"; >+ protected final String TEXT_310 = NL + "\t\t\tthis.notationAddCommand = new "; >+ protected final String TEXT_311 = "(parent, "; >+ protected final String TEXT_312 = "("; >+ protected final String TEXT_313 = ") "; >+ protected final String TEXT_314 = "createdDomainElement, " + NL + "\t\t\t\t"; >+ protected final String TEXT_315 = "constraint"; >+ protected final String TEXT_316 = "null"; >+ protected final String TEXT_317 = ", "; >+ protected final String TEXT_318 = ".INSTANCE);" + NL + "\t\t\trequest.setCreatedObject(notationAddCommand.getCreatedView());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final org.eclipse.emf.common.command.Command domainModelAddCommand;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canExecute() {" + NL + "\t\t\treturn domainModelAddCommand != null" + NL + "\t\t\t\t\t&& domainModelAddCommand.canExecute() && notationAddCommand != null && notationAddCommand.canExecute();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn domainModelAddCommand != null" + NL + "\t\t\t\t\t&& domainModelAddCommand.canUndo() && notationAddCommand != null && notationAddCommand.canUndo();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\tdomainModelAddCommand.execute();" + NL + "\t\t\tnotationAddCommand.execute();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\tnotationAddCommand.undo();" + NL + "\t\t\tdomainModelAddCommand.undo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\texecute();" + NL + "\t\t}" + NL + "\t}"; >+ protected final String TEXT_319 = NL; >+ protected final String TEXT_320 = NL; >+ protected final String TEXT_321 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_322 = " structuralFeatures2Refresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Refresher getRefresher("; >+ protected final String TEXT_323 = " feature, "; >+ protected final String TEXT_324 = " msg) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\treturn (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t}" + NL + "" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void createRefreshers() {" + NL + "\t\tstructuralFeatures2Refresher = new HashMap();"; >+ protected final String TEXT_325 = NL; >+ protected final String TEXT_326 = "\t\tRefresher childrenRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshChildren();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; >+ protected final String TEXT_327 = ".eINSTANCE.getView_PersistedChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; >+ protected final String TEXT_328 = ".eINSTANCE.getView_TransientChildren(), childrenRefresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void activate() {" + NL + "\t\tsuper.activate();" + NL + "\t\tif (!getDiagram().eAdapters().contains(getUpdateManager())) {" + NL + "\t\t\tgetDiagram().eAdapters().add(getUpdateManager());" + NL + "\t\t}" + NL + "\t\tif (!getDiagram().getElement().eAdapters().contains(domainModelRefresher)) {" + NL + "\t\t\tgetDiagram().getElement().eAdapters().add(domainModelRefresher);" + NL + "\t\t}" + NL + "\t\tinstallNotationModelRefresher();"; >+ protected final String TEXT_329 = NL + "\t\tinstallLinkNotationModelRefresher();"; >+ protected final String TEXT_330 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void deactivate() {"; >+ protected final String TEXT_331 = NL + "\t\tuninstallLinkNotationModelRefresher();"; >+ protected final String TEXT_332 = NL + "\t\tuninstallNotationModelRefresher();" + NL + "\t\tgetDiagram().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\tgetDiagram().eAdapters().remove(getUpdateManager());" + NL + "\t\tsuper.deactivate();" + NL + "\t}" + NL; >+ protected final String TEXT_333 = NL; >+ protected final String TEXT_334 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void installNotationModelRefresher() {" + NL + "\t\t"; >+ protected final String TEXT_335 = " refresher = getNotationModelRefresher();" + NL + "\t\tif (refresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >+ protected final String TEXT_336 = " domainModelEditDomain = "; >+ protected final String TEXT_337 = ".getEditingDomain("; >+ protected final String TEXT_338 = ".getElement());" + NL + "\t\trefresher.install(domainModelEditDomain);" + NL + "\t\trefreshNotationModel();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void uninstallNotationModelRefresher() {" + NL + "\t\tgetNotationModelRefresher().uninstall();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_339 = " notationModelRefresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_340 = " getNotationModelRefresher() {" + NL + "\t\tif (notationModelRefresher == null) {" + NL + "\t\t\tnotationModelRefresher = new NotationModelRefresher();" + NL + "\t\t}" + NL + "\t\treturn notationModelRefresher;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class NotationModelRefresher extends "; >+ protected final String TEXT_341 = " {"; >+ protected final String TEXT_342 = NL + NL + "\t\t/**" + NL + "\t\t * NB: Children of this element are selected based on constraint declared in "; >+ protected final String TEXT_343 = ". " + NL + "\t\t * Since no assumptions may be made concerning the runtime behavior of the constraint, <b>any</b> non-touch notification may result in " + NL + "\t\t * notational model having to be updated." + NL + "\t\t * <p/>User is encouraged to change implementation of this method to provide an optimization if it is safe to assume that not all notifications" + NL + "\t\t * result in such an update." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >+ protected final String TEXT_344 = " getConstrainedChildrenFilter() {" + NL + "\t\t\treturn "; >+ protected final String TEXT_345 = ".NOT_TOUCH;" + NL + "\t\t}"; >+ protected final String TEXT_346 = NL + NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly affect the notational model" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_347 = " createFilter() {"; >+ protected final String TEXT_348 = NL + "\t\t\t"; >+ protected final String TEXT_349 = " filter = "; >+ protected final String TEXT_350 = ".createFeatureFilter("; >+ protected final String TEXT_351 = ".eINSTANCE.get"; >+ protected final String TEXT_352 = "());"; >+ protected final String TEXT_353 = NL + "\t\t\tfilter = filter.or("; >+ protected final String TEXT_354 = ".createFeatureFilter("; >+ protected final String TEXT_355 = ".eINSTANCE.get"; >+ protected final String TEXT_356 = "()));"; >+ protected final String TEXT_357 = NL + "\t\t\tfilter = filter.and("; >+ protected final String TEXT_358 = ".createNotifierFilter("; >+ protected final String TEXT_359 = ".getElement()));"; >+ protected final String TEXT_360 = NL + "\t\t\t"; >+ protected final String TEXT_361 = " filter = "; >+ protected final String TEXT_362 = ".createNotifierFilter("; >+ protected final String TEXT_363 = ".getElement());"; >+ protected final String TEXT_364 = NL + "\t\t\tfilter = getConstrainedChildrenFilter().or(filter);"; >+ protected final String TEXT_365 = NL + "\t\t\t"; >+ protected final String TEXT_366 = " filter = getConstrainedChildrenFilter();"; >+ protected final String TEXT_367 = NL + "\t\t\t"; >+ protected final String TEXT_368 = " filter = "; >+ protected final String TEXT_369 = ".NOT_TOUCH;"; >+ protected final String TEXT_370 = NL + "\t\t\treturn filter;"; >+ protected final String TEXT_371 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_372 = " getCreateNotationalElementCommand("; >+ protected final String TEXT_373 = " descriptor) {"; >+ protected final String TEXT_374 = NL; >+ protected final String TEXT_375 = "\t\t\t"; >+ protected final String TEXT_376 = " domainElement = descriptor.getElement();" + NL + "\t\t\tint nodeVisualID = descriptor.getVisualID();" + NL + "\t\t\tswitch (nodeVisualID) {"; >+ protected final String TEXT_377 = NL + "\t\t\tcase "; >+ protected final String TEXT_378 = ".VISUAL_ID:" + NL + "\t\t\t\tif (domainElement instanceof "; >+ protected final String TEXT_379 = ") {" + NL + "\t\t\t\t\treturn new "; >+ protected final String TEXT_380 = "("; >+ protected final String TEXT_381 = ", domainElement, "; >+ protected final String TEXT_382 = "new "; >+ protected final String TEXT_383 = "(0, 0, "; >+ protected final String TEXT_384 = ", "; >+ protected final String TEXT_385 = ")"; >+ protected final String TEXT_386 = NL + "null"; >+ protected final String TEXT_387 = ", "; >+ protected final String TEXT_388 = ".INSTANCE);" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn null;"; >+ protected final String TEXT_389 = NL + "\t\t\tdefault:" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}"; >+ protected final String TEXT_390 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_391 = " getSemanticChildNodes() {"; >+ protected final String TEXT_392 = NL; >+ protected final String TEXT_393 = NL + "\treturn "; >+ protected final String TEXT_394 = ".EMPTY_LIST;"; >+ protected final String TEXT_395 = NL + "\t"; >+ protected final String TEXT_396 = " result = new "; >+ protected final String TEXT_397 = "();"; >+ protected final String TEXT_398 = NL + "\t"; >+ protected final String TEXT_399 = " viewObject = "; >+ protected final String TEXT_400 = ";" + NL + "\t"; >+ protected final String TEXT_401 = " modelObject = viewObject.getElement();" + NL + "\t"; >+ protected final String TEXT_402 = " nextValue;" + NL + "\tint nodeVID;"; >+ protected final String TEXT_403 = NL + "\tfor("; >+ protected final String TEXT_404 = " it = "; >+ protected final String TEXT_405 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = ("; >+ protected final String TEXT_406 = ") it.next();"; >+ protected final String TEXT_407 = NL + "\tnextValue = ("; >+ protected final String TEXT_408 = ")"; >+ protected final String TEXT_409 = ";"; >+ protected final String TEXT_410 = NL + "\tnodeVID = "; >+ protected final String TEXT_411 = ".INSTANCE.getNodeVisualID(viewObject, nextValue);"; >+ protected final String TEXT_412 = NL + "\tswitch (nodeVID) {"; >+ protected final String TEXT_413 = NL + "\tcase "; >+ protected final String TEXT_414 = ".VISUAL_ID: {"; >+ protected final String TEXT_415 = NL + "\tif ("; >+ protected final String TEXT_416 = ".VISUAL_ID == nodeVID) {"; >+ protected final String TEXT_417 = NL + "\t\tresult.add(new "; >+ protected final String TEXT_418 = "(nextValue, nodeVID));"; >+ protected final String TEXT_419 = NL + "\t\tbreak;" + NL + "\t\t}"; >+ protected final String TEXT_420 = NL + "\t\t}"; >+ protected final String TEXT_421 = NL + "\t}"; >+ protected final String TEXT_422 = NL + "\t}"; >+ protected final String TEXT_423 = NL + "\treturn result;"; >+ protected final String TEXT_424 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Returns whether a notational element should be created for the given domain element. " + NL + "\t\t * The generated code always returns "; >+ protected final String TEXT_425 = ". " + NL + "\t\t * User can change implementation of this method to handle a more sophisticated logic." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean shouldCreateView("; >+ protected final String TEXT_426 = " descriptor) {" + NL + "\t\t\treturn "; >+ protected final String TEXT_427 = ";" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_428 = " getHost() {" + NL + "\t\t\treturn "; >+ protected final String TEXT_429 = ";" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshNotationModel() {" + NL + "\t\t"; >+ protected final String TEXT_430 = " childRefresher = getNotationModelRefresher();" + NL + "\t\tif (!childRefresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >+ protected final String TEXT_431 = " command = childRefresher.buildRefreshNotationModelCommand();" + NL + "\t\tif (command == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >+ protected final String TEXT_432 = " domainModelEditDomain = "; >+ protected final String TEXT_433 = ".getEditingDomain("; >+ protected final String TEXT_434 = ".getElement());" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(new "; >+ protected final String TEXT_435 = "(domainModelEditDomain, command));" + NL + "\t}" + NL + NL; >+ protected final String TEXT_436 = NL; >+ protected final String TEXT_437 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void installLinkNotationModelRefresher() {" + NL + "\t\tLinkNotationModelRefresher refresher = getLinkNotationModelRefresher();" + NL + "\t\tif (refresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >+ protected final String TEXT_438 = " domainModelEditDomain = "; >+ protected final String TEXT_439 = ".getEditingDomain("; >+ protected final String TEXT_440 = ".getElement());" + NL + "\t\trefresher.install(domainModelEditDomain);" + NL + "\t\trefreshLinkNotationModel();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void uninstallLinkNotationModelRefresher() {" + NL + "\t\tgetLinkNotationModelRefresher().uninstall();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate LinkNotationModelRefresher linkNotationModelRefresher;" + NL + "" + NL + "\t/**" + NL + "\t * Service to find a notational element that corresponds to the given underlying domain element. " + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_441 = " viewService;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_442 = " getViewService() {" + NL + "\t\tif (viewService == null) {" + NL + "\t\t\tviewService = new "; >+ protected final String TEXT_443 = "(getViewer());" + NL + "\t\t}" + NL + "\t\treturn viewService;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate LinkNotationModelRefresher getLinkNotationModelRefresher() {" + NL + "\t\tif (linkNotationModelRefresher == null) {" + NL + "\t\t\tlinkNotationModelRefresher = new LinkNotationModelRefresher(getViewService());" + NL + "\t\t}" + NL + "\t\treturn linkNotationModelRefresher;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class LinkNotationModelRefresher extends "; >+ protected final String TEXT_444 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic LinkNotationModelRefresher("; >+ protected final String TEXT_445 = " viewService) {" + NL + "\t\t\tsuper(viewService);" + NL + "\t\t}"; >+ protected final String TEXT_446 = NL + NL + "\t\t/**" + NL + "\t\t * NB: Child links of this element are selected based on constraint declared in "; >+ protected final String TEXT_447 = ". " + NL + "\t\t * Since no assumptions may be made concerning the runtime behavior of the constraint, <b>any</b> non-touch notification may result in " + NL + "\t\t * notational model having to be updated." + NL + "\t\t * <p/>User is encouraged to change implementation of this method to provide an optimization if it is safe to assume that not all notifications" + NL + "\t\t * result in such an update." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >+ protected final String TEXT_448 = " getConstrainedChildLinksFilter() {" + NL + "\t\t\treturn "; >+ protected final String TEXT_449 = ".NOT_TOUCH;" + NL + "\t\t}"; >+ protected final String TEXT_450 = NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly result in uncontained links. " + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >+ protected final String TEXT_451 = " createUncontainedLinksFilter() {" + NL + "\t\t\treturn "; >+ protected final String TEXT_452 = ".createEventTypeFilter("; >+ protected final String TEXT_453 = ".SET).or(" + NL + "\t\t\t\t"; >+ protected final String TEXT_454 = ".createEventTypeFilter("; >+ protected final String TEXT_455 = ".UNSET).or(" + NL + "\t\t\t\t"; >+ protected final String TEXT_456 = ".createEventTypeFilter("; >+ protected final String TEXT_457 = ".REMOVE).or(" + NL + "\t\t\t\t"; >+ protected final String TEXT_458 = ".createEventTypeFilter("; >+ protected final String TEXT_459 = ".REMOVE_MANY)" + NL + "\t\t\t)));" + NL + "\t\t}"; >+ protected final String TEXT_460 = NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly affect the notational model" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_461 = " createFilter() {"; >+ protected final String TEXT_462 = NL; >+ protected final String TEXT_463 = NL + "\t\t\t"; >+ protected final String TEXT_464 = " filter = "; >+ protected final String TEXT_465 = ".createFeatureFilter("; >+ protected final String TEXT_466 = ".eINSTANCE.get"; >+ protected final String TEXT_467 = "());"; >+ protected final String TEXT_468 = NL + "\t\t\tfilter = filter.or("; >+ protected final String TEXT_469 = ".createFeatureFilter("; >+ protected final String TEXT_470 = ".eINSTANCE.get"; >+ protected final String TEXT_471 = "()));"; >+ protected final String TEXT_472 = NL; >+ protected final String TEXT_473 = NL + "\t\t\t"; >+ protected final String TEXT_474 = " filter = "; >+ protected final String TEXT_475 = ".createFeatureFilter("; >+ protected final String TEXT_476 = ".eINSTANCE.get"; >+ protected final String TEXT_477 = "());"; >+ protected final String TEXT_478 = NL + "\t\t\tfilter = filter.or("; >+ protected final String TEXT_479 = ".createFeatureFilter("; >+ protected final String TEXT_480 = ".eINSTANCE.get"; >+ protected final String TEXT_481 = "()));"; >+ protected final String TEXT_482 = NL; >+ protected final String TEXT_483 = NL + "\t\t\t"; >+ protected final String TEXT_484 = " filter = "; >+ protected final String TEXT_485 = ".createFeatureFilter("; >+ protected final String TEXT_486 = ".eINSTANCE.get"; >+ protected final String TEXT_487 = "());"; >+ protected final String TEXT_488 = NL + "\t\t\tfilter = filter.or("; >+ protected final String TEXT_489 = ".createFeatureFilter("; >+ protected final String TEXT_490 = ".eINSTANCE.get"; >+ protected final String TEXT_491 = "()));"; >+ protected final String TEXT_492 = NL; >+ protected final String TEXT_493 = NL + "\t\t\t"; >+ protected final String TEXT_494 = " filter = "; >+ protected final String TEXT_495 = ".createFeatureFilter("; >+ protected final String TEXT_496 = ".eINSTANCE.get"; >+ protected final String TEXT_497 = "());"; >+ protected final String TEXT_498 = NL + "\t\t\tfilter = filter.or("; >+ protected final String TEXT_499 = ".createFeatureFilter("; >+ protected final String TEXT_500 = ".eINSTANCE.get"; >+ protected final String TEXT_501 = "()));"; >+ protected final String TEXT_502 = NL + "\t\t\tfilter = getConstrainedChildLinksFilter().or(filter);"; >+ protected final String TEXT_503 = NL + "\t\t\t"; >+ protected final String TEXT_504 = " filter = getConstrainedChildLinksFilter();"; >+ protected final String TEXT_505 = NL + "\t\t\tfilter = filter.or(createUncontainedLinksFilter());"; >+ protected final String TEXT_506 = NL + "\t\t\t"; >+ protected final String TEXT_507 = " filter = createUncontainedLinksFilter();"; >+ protected final String TEXT_508 = NL + "\t\t\t"; >+ protected final String TEXT_509 = " filter = "; >+ protected final String TEXT_510 = ".NOT_TOUCH;"; >+ protected final String TEXT_511 = NL + "\t\t\treturn filter;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t \t * @generated" + NL + "\t \t */" + NL + "\t\tprotected "; >+ protected final String TEXT_512 = " getCreateNotationalElementCommand("; >+ protected final String TEXT_513 = " descriptor) {" + NL + "\t\t\t"; >+ protected final String TEXT_514 = " linkDescriptor = ("; >+ protected final String TEXT_515 = ") descriptor;"; >+ protected final String TEXT_516 = NL; >+ protected final String TEXT_517 = "\t\t\t"; >+ protected final String TEXT_518 = " sourceView = getViewService().findView(linkDescriptor.getSource());" + NL + "\t\t\t"; >+ protected final String TEXT_519 = " targetView = getViewService().findView(linkDescriptor.getDestination());" + NL + "\t\t\t"; >+ protected final String TEXT_520 = " decorator = null;" + NL + "\t\t\tif (sourceView == null || targetView == null) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tswitch (linkDescriptor.getVisualID()) {"; >+ protected final String TEXT_521 = NL + "\t\t\tcase "; >+ protected final String TEXT_522 = ".VISUAL_ID:" + NL + "\t\t\t\tif (linkDescriptor.getElement() instanceof "; >+ protected final String TEXT_523 = ") {" + NL + "\t\t\t\t\tdecorator = "; >+ protected final String TEXT_524 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;"; >+ protected final String TEXT_525 = NL + "\t\t\tcase "; >+ protected final String TEXT_526 = ".VISUAL_ID:" + NL + "\t\t\t\tif (linkDescriptor.getElement() == null) {" + NL + "\t\t\t\t\tdecorator = "; >+ protected final String TEXT_527 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;"; >+ protected final String TEXT_528 = NL + "\t\t\t}" + NL + "\t\t\tif (decorator == null) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\treturn new "; >+ protected final String TEXT_529 = "("; >+ protected final String TEXT_530 = ", linkDescriptor.getElement(), sourceView, targetView, decorator);"; >+ protected final String TEXT_531 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_532 = " getSemanticChildLinks() {"; >+ protected final String TEXT_533 = NL; >+ protected final String TEXT_534 = "\t"; >+ protected final String TEXT_535 = " result = new "; >+ protected final String TEXT_536 = "();"; >+ protected final String TEXT_537 = NL + "\t"; >+ protected final String TEXT_538 = " modelObject = "; >+ protected final String TEXT_539 = ".getElement();" + NL + "\t"; >+ protected final String TEXT_540 = " nextValue;"; >+ protected final String TEXT_541 = NL + "\tint linkVID;"; >+ protected final String TEXT_542 = NL + "\tfor("; >+ protected final String TEXT_543 = " it = "; >+ protected final String TEXT_544 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = ("; >+ protected final String TEXT_545 = ") it.next();"; >+ protected final String TEXT_546 = NL + "\tnextValue = ("; >+ protected final String TEXT_547 = ")"; >+ protected final String TEXT_548 = ";"; >+ protected final String TEXT_549 = NL + "\tlinkVID = "; >+ protected final String TEXT_550 = ".INSTANCE.getLinkWithClassVisualID(nextValue);"; >+ protected final String TEXT_551 = NL + "\tswitch (linkVID) {"; >+ protected final String TEXT_552 = NL + "\tcase "; >+ protected final String TEXT_553 = ".VISUAL_ID: {"; >+ protected final String TEXT_554 = NL + "\tif ("; >+ protected final String TEXT_555 = ".VISUAL_ID == linkVID) {"; >+ protected final String TEXT_556 = NL + "\t\t"; >+ protected final String TEXT_557 = " source = ("; >+ protected final String TEXT_558 = ")"; >+ protected final String TEXT_559 = ";"; >+ protected final String TEXT_560 = NL + "\t\t"; >+ protected final String TEXT_561 = " source = "; >+ protected final String TEXT_562 = ".getElement();"; >+ protected final String TEXT_563 = NL + "\t\t"; >+ protected final String TEXT_564 = " target = ("; >+ protected final String TEXT_565 = ")"; >+ protected final String TEXT_566 = ";"; >+ protected final String TEXT_567 = NL + "\t\t"; >+ protected final String TEXT_568 = " target = "; >+ protected final String TEXT_569 = ".getElement();"; >+ protected final String TEXT_570 = NL + "\t\tif (source != null && target != null) {" + NL + "\t\t\tresult.add(new "; >+ protected final String TEXT_571 = "(source, target, nextValue, linkVID));" + NL + "\t\t}"; >+ protected final String TEXT_572 = NL + "\t\tbreak;" + NL + "\t}"; >+ protected final String TEXT_573 = NL + "\t}"; >+ protected final String TEXT_574 = NL + "\t}"; >+ protected final String TEXT_575 = NL + "\t}"; >+ protected final String TEXT_576 = NL + "\tfor("; >+ protected final String TEXT_577 = " it = "; >+ protected final String TEXT_578 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = ("; >+ protected final String TEXT_579 = ") it.next();"; >+ protected final String TEXT_580 = NL + "\tnextValue = ("; >+ protected final String TEXT_581 = ")"; >+ protected final String TEXT_582 = ";"; >+ protected final String TEXT_583 = NL + "\tif (nextValue != null) {"; >+ protected final String TEXT_584 = NL + "\t\tresult.add(new "; >+ protected final String TEXT_585 = "(modelObject, nextValue, null, "; >+ protected final String TEXT_586 = ".VISUAL_ID));"; >+ protected final String TEXT_587 = NL + "\t}"; >+ protected final String TEXT_588 = NL + "\t}"; >+ protected final String TEXT_589 = NL + "\treturn result;"; >+ protected final String TEXT_590 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_591 = " getNotationalChildLinks() {" + NL + "\t\t\t"; >+ protected final String TEXT_592 = " result = new "; >+ protected final String TEXT_593 = "();" + NL + "\t\t\t"; >+ protected final String TEXT_594 = " allLinks = "; >+ protected final String TEXT_595 = ".getEdges();" + NL + "\t\t\tfor("; >+ protected final String TEXT_596 = " it = allLinks.iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t"; >+ protected final String TEXT_597 = " next = ("; >+ protected final String TEXT_598 = ") it.next();"; >+ protected final String TEXT_599 = NL + "\t\t\t\tif (next.isSetElement() && next.getElement() != null && next.getElement().eResource() == null) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; >+ protected final String TEXT_600 = " source = next.getSource();" + NL + "\t\t\t\tif (source == null || (source.isSetElement() && source.getElement() != null && source.getElement().eResource() == null)) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; >+ protected final String TEXT_601 = " target = next.getTarget();" + NL + "\t\t\t\tif (target == null || (target.isSetElement() && target.getElement() != null && target.getElement().eResource() == null)) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}"; >+ protected final String TEXT_602 = NL + "\t\t\t\tif (!next.isSetElement() || next.getElement() == null) {" + NL + "\t\t\t\t\tif (next.getSource() == "; >+ protected final String TEXT_603 = ") {" + NL + "\t\t\t\t\t\tint linkVID = "; >+ protected final String TEXT_604 = ".getVisualID(next);" + NL + "\t\t\t\t\t\tswitch (linkVID) {"; >+ protected final String TEXT_605 = NL + "\t\t\t\t\t\tcase "; >+ protected final String TEXT_606 = ".VISUAL_ID:"; >+ protected final String TEXT_607 = NL + "\t\t\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}"; >+ protected final String TEXT_608 = NL + "\t\t\t\t} else {"; >+ protected final String TEXT_609 = NL + "\t\t\t\t}"; >+ protected final String TEXT_610 = NL + "\t\t\t\tif (next.isSetElement() && next.getElement() != null) {"; >+ protected final String TEXT_611 = NL + "\t\t\t\t\tif (next.getElement().eContainer() == "; >+ protected final String TEXT_612 = ".getElement()) {" + NL + "\t\t\t\t\t\tint linkVID = "; >+ protected final String TEXT_613 = ".getVisualID(next);" + NL + "\t\t\t\t\t\tswitch (linkVID) {"; >+ protected final String TEXT_614 = NL + "\t\t\t\t\t\tcase "; >+ protected final String TEXT_615 = ".VISUAL_ID:"; >+ protected final String TEXT_616 = NL + "\t\t\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}"; >+ protected final String TEXT_617 = NL + "\t\t\t}" + NL + "\t\t\treturn result;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Returns whether a notational edge should be created for the given domain element. " + NL + "\t\t * The generated code always returns "; >+ protected final String TEXT_618 = ". " + NL + "\t\t * User can change implementation of this method to handle a more sophisticated logic." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean shouldCreateView("; >+ protected final String TEXT_619 = " descriptor) {" + NL + "\t\t\treturn "; >+ protected final String TEXT_620 = ";" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_621 = " getHost() {" + NL + "\t\t\treturn "; >+ protected final String TEXT_622 = ";" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshLinkNotationModel() {" + NL + "\t\t"; >+ protected final String TEXT_623 = " linkRefresher = getLinkNotationModelRefresher();" + NL + "\t\tif (!linkRefresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >+ protected final String TEXT_624 = " command = linkRefresher.buildRefreshNotationModelCommand();" + NL + "\t\tif (command == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >+ protected final String TEXT_625 = " domainModelEditDomain = "; >+ protected final String TEXT_626 = ".getEditingDomain("; >+ protected final String TEXT_627 = ".getElement());" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(new "; >+ protected final String TEXT_628 = "(domainModelEditDomain, command));" + NL + "\t}"; >+ protected final String TEXT_629 = NL; >+ protected final String TEXT_630 = NL; >+ protected final String TEXT_631 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_632 = " domainModelRefresher = new "; >+ protected final String TEXT_633 = "(this);" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_634 = " updateManager;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_635 = " getUpdateManager() {" + NL + "\t\tif (updateManager == null) {" + NL + "\t\t\tupdateManager = new "; >+ protected final String TEXT_636 = "(getViewer());" + NL + "\t\t}" + NL + "\t\treturn updateManager;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class TreeEditPartAdapter extends "; >+ protected final String TEXT_637 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic TreeEditPartAdapter() {" + NL + "\t\t\tsuper(getDiagram(), "; >+ protected final String TEXT_638 = ".getInstance().getItemProvidersAdapterFactory());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected void createEditPolicies() {" + NL + "\t\t\tinstallEditPolicy(EditPolicy.COMPONENT_ROLE, new RootComponentEditPolicy());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void activate() {" + NL + "\t\t\tsuper.activate();" + NL + "\t\t\tif (!getDiagram().eAdapters().contains(getTreeUpdateManager())) {" + NL + "\t\t\t\tgetDiagram().eAdapters().add(getTreeUpdateManager());" + NL + "\t\t\t}" + NL + "\t\t\tif (!getDiagram().getElement().eAdapters().contains(domainModelRefresher)) {" + NL + "\t\t\t\tgetDiagram().getElement().eAdapters().add(domainModelRefresher);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void deactivate() {" + NL + "\t\t\tgetDiagram().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\t\tgetDiagram().eAdapters().remove(getTreeUpdateManager());" + NL + "\t\t\tsuper.deactivate();" + NL + "\t\t}" + NL; >+ protected final String TEXT_639 = NL; >+ protected final String TEXT_640 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_641 = " domainModelRefresher = new "; >+ protected final String TEXT_642 = "(this);" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >+ protected final String TEXT_643 = " treeUpdateManager;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >+ protected final String TEXT_644 = " getTreeUpdateManager() {" + NL + "\t\t\tif (treeUpdateManager == null) {" + NL + "\t\t\t\ttreeUpdateManager = new "; >+ protected final String TEXT_645 = "(getViewer());" + NL + "\t\t\t}" + NL + "\t\t\treturn treeUpdateManager;" + NL + "\t\t}" + NL + "\t}" + NL + "}"; >+ protected final String TEXT_646 = NL; > > public String generate(Object argument) > { >@@ -1009,50 +1061,116 @@ > GenFeature childFeature = facet.getChildMetaFeature(); > GenFeature containmentFeature = facet.getContainmentMetaFeature(); > if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { >+ GenFeature _feature = childFeature; >+ String _ownerInstance = _getViewCode + ".getElement()"; >+ String _exceedsUpperBound = "return " + importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand") + ".INSTANCE;"; >+ GenClass _ownerGenClass = null; > > stringBuffer.append(TEXT_94); >- stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >+ >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ > stringBuffer.append(TEXT_95); >- stringBuffer.append(_getViewCode); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); > stringBuffer.append(TEXT_96); >- stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(_exceedsUpperBound); > stringBuffer.append(TEXT_97); >- stringBuffer.append(childFeature.getFeatureAccessorName()); >+ >+ } else { >+ > stringBuffer.append(TEXT_98); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_99); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_100); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_101); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_102); >+ >+ } >+} >+ >+ stringBuffer.append(TEXT_103); >+ stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >+ stringBuffer.append(TEXT_104); >+ stringBuffer.append(_getViewCode); >+ stringBuffer.append(TEXT_105); >+ stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_106); >+ stringBuffer.append(childFeature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_107); > > } >+ { >+ GenFeature _feature = containmentFeature; >+ String _ownerInstance = _getViewCode + ".getElement()"; >+ String _exceedsUpperBound = "return " + importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand") + ".INSTANCE;"; >+ GenClass _ownerGenClass = null; > >- stringBuffer.append(TEXT_99); >+ stringBuffer.append(TEXT_108); >+ >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ >+ stringBuffer.append(TEXT_109); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >+ stringBuffer.append(TEXT_110); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_111); >+ >+ } else { >+ >+ stringBuffer.append(TEXT_112); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_113); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_114); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_115); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_116); >+ >+ } >+} >+ >+ >+ } >+ >+ stringBuffer.append(TEXT_117); > stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_100); >+ stringBuffer.append(TEXT_118); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_101); >+ stringBuffer.append(TEXT_119); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_102); >+ stringBuffer.append(TEXT_120); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_103); >+ stringBuffer.append(TEXT_121); > > } //local declaration for related nodes. > >- stringBuffer.append(TEXT_104); >+ stringBuffer.append(TEXT_122); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_105); >+ stringBuffer.append(TEXT_123); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); >- stringBuffer.append(TEXT_106); >+ stringBuffer.append(TEXT_124); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_107); >+ stringBuffer.append(TEXT_125); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_108); >+ stringBuffer.append(TEXT_126); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.SetBoundsCommand")); >- stringBuffer.append(TEXT_109); >+ stringBuffer.append(TEXT_127); > if (isListLayout) { >- stringBuffer.append(TEXT_110); >+ stringBuffer.append(TEXT_128); > } else { >- stringBuffer.append(TEXT_111); >+ stringBuffer.append(TEXT_129); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >- stringBuffer.append(TEXT_112); >+ stringBuffer.append(TEXT_130); > } >- stringBuffer.append(TEXT_113); >+ stringBuffer.append(TEXT_131); > > { > int defaultWidth = 40; >@@ -1063,90 +1181,90 @@ > defaultHeight = defSizeAttrs.getHeight(); > } > >- stringBuffer.append(TEXT_114); >+ stringBuffer.append(TEXT_132); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand")); >- stringBuffer.append(TEXT_115); >+ stringBuffer.append(TEXT_133); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_116); >+ stringBuffer.append(TEXT_134); > if (isListLayout) { >- stringBuffer.append(TEXT_117); >+ stringBuffer.append(TEXT_135); > } else { >- stringBuffer.append(TEXT_118); >+ stringBuffer.append(TEXT_136); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >- stringBuffer.append(TEXT_119); >+ stringBuffer.append(TEXT_137); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Dimension")); >- stringBuffer.append(TEXT_120); >+ stringBuffer.append(TEXT_138); > stringBuffer.append(defaultWidth); >- stringBuffer.append(TEXT_121); >+ stringBuffer.append(TEXT_139); > stringBuffer.append(defaultHeight); >- stringBuffer.append(TEXT_122); >+ stringBuffer.append(TEXT_140); > } >- stringBuffer.append(TEXT_123); >+ stringBuffer.append(TEXT_141); > stringBuffer.append(importManager.getImportedName(next.getNotationViewFactoryQualifiedClassName())); >- stringBuffer.append(TEXT_124); >+ stringBuffer.append(TEXT_142); > > } > >- stringBuffer.append(TEXT_125); >+ stringBuffer.append(TEXT_143); > > } //for > >- stringBuffer.append(TEXT_126); >+ stringBuffer.append(TEXT_144); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_127); >+ stringBuffer.append(TEXT_145); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_128); >+ stringBuffer.append(TEXT_146); > > } //if (!childNodes.isEmpty()) in createAddCommand > >- stringBuffer.append(TEXT_129); >+ stringBuffer.append(TEXT_147); > > /* delegation from getCloneCommand to createCloneCommand is 100% analogous to delegation from getAddCommand() to createAddCommand() in ConstrainedLayoutEditPolicy. */ > > > if (!childNodes.isEmpty()) { > >- stringBuffer.append(TEXT_130); >+ stringBuffer.append(TEXT_148); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); >- stringBuffer.append(TEXT_131); >+ stringBuffer.append(TEXT_149); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ChangeBoundsRequest")); >- stringBuffer.append(TEXT_132); >+ stringBuffer.append(TEXT_150); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_133); >+ stringBuffer.append(TEXT_151); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.CompoundCommand")); >- stringBuffer.append(TEXT_134); >+ stringBuffer.append(TEXT_152); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.CompoundCommand")); >- stringBuffer.append(TEXT_135); >+ stringBuffer.append(TEXT_153); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); >- stringBuffer.append(TEXT_136); >+ stringBuffer.append(TEXT_154); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >- stringBuffer.append(TEXT_137); >+ stringBuffer.append(TEXT_155); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); >- stringBuffer.append(TEXT_138); >+ stringBuffer.append(TEXT_156); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); >- stringBuffer.append(TEXT_139); >+ stringBuffer.append(TEXT_157); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); >- stringBuffer.append(TEXT_140); >+ stringBuffer.append(TEXT_158); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); >- stringBuffer.append(TEXT_141); >+ stringBuffer.append(TEXT_159); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); >- stringBuffer.append(TEXT_142); >+ stringBuffer.append(TEXT_160); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); >- stringBuffer.append(TEXT_143); >+ stringBuffer.append(TEXT_161); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_144); >+ stringBuffer.append(TEXT_162); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_145); >+ stringBuffer.append(TEXT_163); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_146); >+ stringBuffer.append(TEXT_164); > stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_147); >+ stringBuffer.append(TEXT_165); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_148); >+ stringBuffer.append(TEXT_166); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_149); >+ stringBuffer.append(TEXT_167); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_150); >+ stringBuffer.append(TEXT_168); > > for(Iterator it = childNodes.iterator(); it.hasNext(); ) { > GenNode next = (GenNode) it.next(); >@@ -1154,51 +1272,124 @@ > GenFeature childFeature = facet.getChildMetaFeature(); > GenFeature containmentFeature = facet.getContainmentMetaFeature(); > >- stringBuffer.append(TEXT_151); >+ stringBuffer.append(TEXT_169); > stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_152); >+ stringBuffer.append(TEXT_170); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CommandWrapper")); >- stringBuffer.append(TEXT_153); >+ stringBuffer.append(TEXT_171); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_154); >+ stringBuffer.append(TEXT_172); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_155); >+ stringBuffer.append(TEXT_173); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_156); >+ stringBuffer.append(TEXT_174); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.CopyCommand")); >- stringBuffer.append(TEXT_157); >+ stringBuffer.append(TEXT_175); >+ >+ if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { >+ GenFeature _feature = childFeature; >+ String _ownerInstance = _getViewCode + ".getElement()"; >+ String _exceedsUpperBound = "return false;"; >+ GenClass _ownerGenClass = null; >+ >+ stringBuffer.append(TEXT_176); >+ >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ >+ stringBuffer.append(TEXT_177); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >+ stringBuffer.append(TEXT_178); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_179); >+ >+ } else { >+ >+ stringBuffer.append(TEXT_180); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_181); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_182); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_183); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_184); >+ >+ } >+} >+ >+ >+ } >+ { >+ GenFeature _feature = containmentFeature; >+ String _ownerInstance = _getViewCode + ".getElement()"; >+ String _exceedsUpperBound = "return false;"; >+ GenClass _ownerGenClass = null; >+ >+ stringBuffer.append(TEXT_185); >+ >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ >+ stringBuffer.append(TEXT_186); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >+ stringBuffer.append(TEXT_187); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_188); >+ >+ } else { >+ >+ stringBuffer.append(TEXT_189); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_190); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_191); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_192); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_193); >+ >+ } >+} >+ >+ >+ } >+ >+ stringBuffer.append(TEXT_194); > stringBuffer.append(importManager.getImportedName("java.util.Collection")); >- stringBuffer.append(TEXT_158); >+ stringBuffer.append(TEXT_195); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_159); >+ stringBuffer.append(TEXT_196); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_160); >+ stringBuffer.append(TEXT_197); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_161); >+ stringBuffer.append(TEXT_198); > > if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { > >- stringBuffer.append(TEXT_162); >+ stringBuffer.append(TEXT_199); > stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_163); >+ stringBuffer.append(TEXT_200); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_164); >+ stringBuffer.append(TEXT_201); > stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_165); >+ stringBuffer.append(TEXT_202); > stringBuffer.append(childFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_166); >+ stringBuffer.append(TEXT_203); > > } > >- stringBuffer.append(TEXT_167); >+ stringBuffer.append(TEXT_204); > stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_168); >+ stringBuffer.append(TEXT_205); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_169); >+ stringBuffer.append(TEXT_206); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_170); >+ stringBuffer.append(TEXT_207); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_171); >+ stringBuffer.append(TEXT_208); > > { > int defaultWidth = 40; >@@ -1209,204 +1400,263 @@ > defaultHeight = defSizeAttrs.getHeight(); > } > >- stringBuffer.append(TEXT_172); >+ stringBuffer.append(TEXT_209); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand")); >- stringBuffer.append(TEXT_173); >+ stringBuffer.append(TEXT_210); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_174); >+ stringBuffer.append(TEXT_211); > if (isListLayout) { >- stringBuffer.append(TEXT_175); >+ stringBuffer.append(TEXT_212); > } else { >- stringBuffer.append(TEXT_176); >+ stringBuffer.append(TEXT_213); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >- stringBuffer.append(TEXT_177); >+ stringBuffer.append(TEXT_214); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Dimension")); >- stringBuffer.append(TEXT_178); >+ stringBuffer.append(TEXT_215); > stringBuffer.append(defaultWidth); >- stringBuffer.append(TEXT_179); >+ stringBuffer.append(TEXT_216); > stringBuffer.append(defaultHeight); >- stringBuffer.append(TEXT_180); >+ stringBuffer.append(TEXT_217); > } >- stringBuffer.append(TEXT_181); >+ stringBuffer.append(TEXT_218); > stringBuffer.append(importManager.getImportedName(next.getNotationViewFactoryQualifiedClassName())); >- stringBuffer.append(TEXT_182); >+ stringBuffer.append(TEXT_219); > > } > } //for > >- stringBuffer.append(TEXT_183); >+ stringBuffer.append(TEXT_220); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_184); >+ stringBuffer.append(TEXT_221); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_185); >+ stringBuffer.append(TEXT_222); > > } //if (!childNodes.isEmpty()) > > > } > >- stringBuffer.append(TEXT_186); >+ stringBuffer.append(TEXT_223); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); >- stringBuffer.append(TEXT_187); >+ stringBuffer.append(TEXT_224); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ChangeBoundsRequest")); >- stringBuffer.append(TEXT_188); >+ stringBuffer.append(TEXT_225); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); >- stringBuffer.append(TEXT_189); >- stringBuffer.append(TEXT_190); >- stringBuffer.append(TEXT_191); >+ stringBuffer.append(TEXT_226); >+ stringBuffer.append(TEXT_227); >+ stringBuffer.append(TEXT_228); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); >- stringBuffer.append(TEXT_192); >+ stringBuffer.append(TEXT_229); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); >- stringBuffer.append(TEXT_193); >+ stringBuffer.append(TEXT_230); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_194); >+ stringBuffer.append(TEXT_231); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.ChangeBoundsCommand")); >- stringBuffer.append(TEXT_195); >+ stringBuffer.append(TEXT_232); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); >- stringBuffer.append(TEXT_196); >+ stringBuffer.append(TEXT_233); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_197); >+ stringBuffer.append(TEXT_234); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_198); >+ stringBuffer.append(TEXT_235); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); >- stringBuffer.append(TEXT_199); >+ stringBuffer.append(TEXT_236); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_200); >+ stringBuffer.append(TEXT_237); > > //link notation model refresher should always be installed for the diagram edit part, because it tracks the uncontained links > //if (myHelper.containsLinks()) { > >- stringBuffer.append(TEXT_201); >+ stringBuffer.append(TEXT_238); > > //} > >- stringBuffer.append(TEXT_202); >+ stringBuffer.append(TEXT_239); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.SnapToHelper")); >- stringBuffer.append(TEXT_203); >+ stringBuffer.append(TEXT_240); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.SnapToGrid")); >- stringBuffer.append(TEXT_204); >+ stringBuffer.append(TEXT_241); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.TreeEditPart")); >- stringBuffer.append(TEXT_205); >+ stringBuffer.append(TEXT_242); > /*@ include file="adapters/propertySource.javajetinc"*/ >- stringBuffer.append(TEXT_206); >+ stringBuffer.append(TEXT_243); > > for(Iterator it = childNodes.iterator(); it.hasNext(); ) { > GenTopLevelNode next = (GenTopLevelNode)it.next(); > boolean isStatic = true; > boolean isListLayout = false; >- String resolvedSemanticElement = "parent.getElement()"; > >- stringBuffer.append(TEXT_207); >+ stringBuffer.append(TEXT_244); > > if (genDiagram.getPalette() != null) { > >- stringBuffer.append(TEXT_208); >+ stringBuffer.append(TEXT_245); > if (isStatic) { >- stringBuffer.append(TEXT_209); >+ stringBuffer.append(TEXT_246); > } >- stringBuffer.append(TEXT_210); >+ stringBuffer.append(TEXT_247); > stringBuffer.append(next.getDomainMetaClass().getName()); > stringBuffer.append(next.getVisualID()); >- stringBuffer.append(TEXT_211); >+ stringBuffer.append(TEXT_248); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); >- stringBuffer.append(TEXT_212); >+ stringBuffer.append(TEXT_249); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand")); >- stringBuffer.append(TEXT_213); >+ stringBuffer.append(TEXT_250); > stringBuffer.append(next.getDomainMetaClass().getName()); > stringBuffer.append(next.getVisualID()); >- stringBuffer.append(TEXT_214); >+ stringBuffer.append(TEXT_251); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_215); >+ stringBuffer.append(TEXT_252); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateRequestEx")); >- stringBuffer.append(TEXT_216); >+ stringBuffer.append(TEXT_253); > if (!isListLayout) { >- stringBuffer.append(TEXT_217); >+ stringBuffer.append(TEXT_254); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >- stringBuffer.append(TEXT_218); >+ stringBuffer.append(TEXT_255); > } >- stringBuffer.append(TEXT_219); >+ stringBuffer.append(TEXT_256); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_220); >+ stringBuffer.append(TEXT_257); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_221); >+ stringBuffer.append(TEXT_258); > > if (next.getDomainMetaClass().isMapEntry()) { > /*Workaround for Ecore example: map entries cannot be created using factory, only using reflective EFactory.create() method*/ > >- stringBuffer.append(TEXT_222); >+ stringBuffer.append(TEXT_259); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_223); >+ stringBuffer.append(TEXT_260); > stringBuffer.append(importManager.getImportedName(next.getDomainMetaClass().getGenPackage().getQualifiedFactoryInterfaceName())); >- stringBuffer.append(TEXT_224); >+ stringBuffer.append(TEXT_261); > stringBuffer.append(importManager.getImportedName(next.getDomainMetaClass().getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_225); >+ stringBuffer.append(TEXT_262); > stringBuffer.append(next.getDomainMetaClass().getClassifierAccessorName()); >- stringBuffer.append(TEXT_226); >+ stringBuffer.append(TEXT_263); > > } else { > >- stringBuffer.append(TEXT_227); >+ stringBuffer.append(TEXT_264); > stringBuffer.append(importManager.getImportedName(next.getDomainMetaClass().getQualifiedInterfaceName())); >- stringBuffer.append(TEXT_228); >+ stringBuffer.append(TEXT_265); > stringBuffer.append(importManager.getImportedName(next.getDomainMetaClass().getGenPackage().getQualifiedFactoryInterfaceName())); >- stringBuffer.append(TEXT_229); >+ stringBuffer.append(TEXT_266); > stringBuffer.append(next.getDomainMetaClass().getClassifierAccessorName()); >- stringBuffer.append(TEXT_230); >+ stringBuffer.append(TEXT_267); > > } > >- stringBuffer.append(TEXT_231); >+ stringBuffer.append(TEXT_268); > /*XXX: Class name DomainElementInitializer should be user-customizable*/ >- stringBuffer.append(TEXT_232); >+ stringBuffer.append(TEXT_269); > stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")); >- stringBuffer.append(TEXT_233); >+ stringBuffer.append(TEXT_270); > stringBuffer.append(next.getUniqueIdentifier()); >- stringBuffer.append(TEXT_234); >+ stringBuffer.append(TEXT_271); > if (next.getDomainMetaClass().isExternalInterface()) { >- stringBuffer.append(TEXT_235); >+ stringBuffer.append(TEXT_272); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_236); >+ stringBuffer.append(TEXT_273); > } >- stringBuffer.append(TEXT_237); >+ stringBuffer.append(TEXT_274); > > TypeModelFacet facet = next.getModelFacet(); > GenFeature childFeature = facet.getChildMetaFeature(); > GenFeature containmentFeature = facet.getContainmentMetaFeature(); >+ { >+ GenFeature _feature = containmentFeature; >+ String _ownerInstance = "parent.getElement()"; >+ String _exceedsUpperBound = "this.domainModelAddCommand = null;this.notationAddCommand = null;return;"; >+ GenClass _ownerGenClass = null; >+ >+ stringBuffer.append(TEXT_275); >+ >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ >+ stringBuffer.append(TEXT_276); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >+ stringBuffer.append(TEXT_277); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_278); >+ >+ } else { >+ >+ stringBuffer.append(TEXT_279); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_280); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_281); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_282); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_283); >+ >+ } >+} >+ >+ >+ } > if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { >+ GenFeature _feature = childFeature; >+ String _ownerInstance = "parent.getElement()"; >+ String _exceedsUpperBound = "this.domainModelAddCommand = null;this.notationAddCommand = null;return;"; >+ GenClass _ownerGenClass = null; > >- stringBuffer.append(TEXT_238); >+ stringBuffer.append(TEXT_284); >+ >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ >+ stringBuffer.append(TEXT_285); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >+ stringBuffer.append(TEXT_286); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_287); >+ >+ } else { >+ >+ stringBuffer.append(TEXT_288); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_289); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_290); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_291); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_292); >+ >+ } >+} >+ >+ stringBuffer.append(TEXT_293); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_239); >+ stringBuffer.append(TEXT_294); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_240); >+ stringBuffer.append(TEXT_295); > stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_241); >- stringBuffer.append(resolvedSemanticElement); >- stringBuffer.append(TEXT_242); >+ stringBuffer.append(TEXT_296); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_243); >+ stringBuffer.append(TEXT_297); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_244); >+ stringBuffer.append(TEXT_298); > stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_245); >- stringBuffer.append(resolvedSemanticElement); >- stringBuffer.append(TEXT_246); >+ stringBuffer.append(TEXT_299); > stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_247); >+ stringBuffer.append(TEXT_300); > stringBuffer.append(childFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_248); >+ stringBuffer.append(TEXT_301); > > } else { > >- stringBuffer.append(TEXT_249); >+ stringBuffer.append(TEXT_302); > stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_250); >- stringBuffer.append(resolvedSemanticElement); >- stringBuffer.append(TEXT_251); >+ stringBuffer.append(TEXT_303); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_252); >+ stringBuffer.append(TEXT_304); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_253); >+ stringBuffer.append(TEXT_305); > > } > >@@ -1420,72 +1670,72 @@ > defaultHeight = defSizeAttrs.getHeight(); > } > >- stringBuffer.append(TEXT_254); >+ stringBuffer.append(TEXT_306); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Dimension")); >- stringBuffer.append(TEXT_255); >+ stringBuffer.append(TEXT_307); > stringBuffer.append(defaultWidth); >- stringBuffer.append(TEXT_256); >+ stringBuffer.append(TEXT_308); > stringBuffer.append(defaultHeight); >- stringBuffer.append(TEXT_257); >+ stringBuffer.append(TEXT_309); > > } > >- stringBuffer.append(TEXT_258); >+ stringBuffer.append(TEXT_310); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand")); >- stringBuffer.append(TEXT_259); >+ stringBuffer.append(TEXT_311); > if (next.getDomainMetaClass().isExternalInterface()) { >- stringBuffer.append(TEXT_260); >+ stringBuffer.append(TEXT_312); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_261); >+ stringBuffer.append(TEXT_313); > } >- stringBuffer.append(TEXT_262); >+ stringBuffer.append(TEXT_314); > if(!isListLayout) { >- stringBuffer.append(TEXT_263); >+ stringBuffer.append(TEXT_315); > } else { >- stringBuffer.append(TEXT_264); >+ stringBuffer.append(TEXT_316); > } >- stringBuffer.append(TEXT_265); >+ stringBuffer.append(TEXT_317); > stringBuffer.append(importManager.getImportedName(next.getNotationViewFactoryQualifiedClassName())); >- stringBuffer.append(TEXT_266); >+ stringBuffer.append(TEXT_318); > > } > > > } > >- stringBuffer.append(TEXT_267); >- stringBuffer.append(TEXT_268); >- stringBuffer.append(TEXT_269); >+ stringBuffer.append(TEXT_319); >+ stringBuffer.append(TEXT_320); >+ stringBuffer.append(TEXT_321); > stringBuffer.append(importManager.getImportedName("java.util.HashMap")); >- stringBuffer.append(TEXT_270); >+ stringBuffer.append(TEXT_322); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); >- stringBuffer.append(TEXT_271); >+ stringBuffer.append(TEXT_323); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); >- stringBuffer.append(TEXT_272); >- stringBuffer.append(TEXT_273); >- stringBuffer.append(TEXT_274); >+ stringBuffer.append(TEXT_324); >+ stringBuffer.append(TEXT_325); >+ stringBuffer.append(TEXT_326); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_275); >+ stringBuffer.append(TEXT_327); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_276); >+ stringBuffer.append(TEXT_328); > > //link notation model refresher should always be installed for the diagram edit part, because it tracks the uncontained links > //if (myHelper.containsLinks()) { > >- stringBuffer.append(TEXT_277); >+ stringBuffer.append(TEXT_329); > > //} > >- stringBuffer.append(TEXT_278); >+ stringBuffer.append(TEXT_330); > > //link notation model refresher should always be installed/uninstalled for the diagram edit part, because it tracks the uncontained links > //if (myHelper.containsLinks()) { > >- stringBuffer.append(TEXT_279); >+ stringBuffer.append(TEXT_331); > > //} > >- stringBuffer.append(TEXT_280); >+ stringBuffer.append(TEXT_332); > > { > String _getDiagramCode = "getDiagram()"; >@@ -1493,22 +1743,22 @@ > boolean isListLayout = false; > final boolean _includeUncontainedLinks = true; > >- stringBuffer.append(TEXT_281); >- stringBuffer.append(TEXT_282); >+ stringBuffer.append(TEXT_333); >+ stringBuffer.append(TEXT_334); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher")); >- stringBuffer.append(TEXT_283); >+ stringBuffer.append(TEXT_335); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_284); >+ stringBuffer.append(TEXT_336); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_285); >+ stringBuffer.append(TEXT_337); > stringBuffer.append(_getDiagramCode); >- stringBuffer.append(TEXT_286); >+ stringBuffer.append(TEXT_338); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher")); >- stringBuffer.append(TEXT_287); >+ stringBuffer.append(TEXT_339); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher")); >- stringBuffer.append(TEXT_288); >+ stringBuffer.append(TEXT_340); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher")); >- stringBuffer.append(TEXT_289); >+ stringBuffer.append(TEXT_341); > > boolean hasConstraintsInChildren = false; > for (Iterator it = childNodes.iterator(); it.hasNext(); ) { >@@ -1523,19 +1773,19 @@ > > if (hasConstraintsInChildren) { > >- stringBuffer.append(TEXT_290); >+ stringBuffer.append(TEXT_342); > stringBuffer.append(genDiagram.getVisualIDRegistryQualifiedClassName()); >- stringBuffer.append(TEXT_291); >+ stringBuffer.append(TEXT_343); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_292); >+ stringBuffer.append(TEXT_344); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_293); >+ stringBuffer.append(TEXT_345); > > } > >- stringBuffer.append(TEXT_294); >+ stringBuffer.append(TEXT_346); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_295); >+ stringBuffer.append(TEXT_347); > > { > boolean hasDeclaredFilter = false; >@@ -1554,25 +1804,25 @@ > if (!hasDeclaredFilter) { > hasDeclaredFilter = true; > >- stringBuffer.append(TEXT_296); >+ stringBuffer.append(TEXT_348); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_297); >+ stringBuffer.append(TEXT_349); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_298); >+ stringBuffer.append(TEXT_350); > stringBuffer.append(importManager.getImportedName(childMetaFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_299); >+ stringBuffer.append(TEXT_351); > stringBuffer.append(childMetaFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_300); >+ stringBuffer.append(TEXT_352); > > } else { > >- stringBuffer.append(TEXT_301); >+ stringBuffer.append(TEXT_353); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_302); >+ stringBuffer.append(TEXT_354); > stringBuffer.append(importManager.getImportedName(childMetaFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_303); >+ stringBuffer.append(TEXT_355); > stringBuffer.append(childMetaFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_304); >+ stringBuffer.append(TEXT_356); > > } > } //for >@@ -1580,22 +1830,22 @@ > > if (hasDeclaredFilter) { > >- stringBuffer.append(TEXT_305); >+ stringBuffer.append(TEXT_357); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_306); >+ stringBuffer.append(TEXT_358); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_307); >+ stringBuffer.append(TEXT_359); > > } else { > hasDeclaredFilter = true; > >- stringBuffer.append(TEXT_308); >+ stringBuffer.append(TEXT_360); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_309); >+ stringBuffer.append(TEXT_361); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_310); >+ stringBuffer.append(TEXT_362); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_311); >+ stringBuffer.append(TEXT_363); > > } > >@@ -1604,43 +1854,43 @@ > if (hasDeclaredFilter) { > hasDeclaredFilter = true; > >- stringBuffer.append(TEXT_312); >+ stringBuffer.append(TEXT_364); > > } else { > >- stringBuffer.append(TEXT_313); >+ stringBuffer.append(TEXT_365); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_314); >+ stringBuffer.append(TEXT_366); > > } > } > if (!hasDeclaredFilter) { > >- stringBuffer.append(TEXT_315); >+ stringBuffer.append(TEXT_367); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_316); >+ stringBuffer.append(TEXT_368); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_317); >+ stringBuffer.append(TEXT_369); > > } > >- stringBuffer.append(TEXT_318); >+ stringBuffer.append(TEXT_370); > > } //local declaration of hasDeclaredFilter > >- stringBuffer.append(TEXT_319); >+ stringBuffer.append(TEXT_371); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); >- stringBuffer.append(TEXT_320); >+ stringBuffer.append(TEXT_372); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); >- stringBuffer.append(TEXT_321); >+ stringBuffer.append(TEXT_373); > > { > String _parentNode = "getHost()"; > >- stringBuffer.append(TEXT_322); >- stringBuffer.append(TEXT_323); >+ stringBuffer.append(TEXT_374); >+ stringBuffer.append(TEXT_375); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_324); >+ stringBuffer.append(TEXT_376); > > for (Iterator it = childNodes.iterator(); it.hasNext(); ) { > GenNode nextNode = (GenNode) it.next(); >@@ -1650,15 +1900,15 @@ > } > String childNodeInterfaceName = importManager.getImportedName(nextNode.getDomainMetaClass().getQualifiedInterfaceName()); > >- stringBuffer.append(TEXT_325); >+ stringBuffer.append(TEXT_377); > stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_326); >+ stringBuffer.append(TEXT_378); > stringBuffer.append(childNodeInterfaceName); >- stringBuffer.append(TEXT_327); >+ stringBuffer.append(TEXT_379); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand")); >- stringBuffer.append(TEXT_328); >+ stringBuffer.append(TEXT_380); > stringBuffer.append(_parentNode); >- stringBuffer.append(TEXT_329); >+ stringBuffer.append(TEXT_381); > > if (!isListLayout) { > int defaultWidth = 40; >@@ -1669,48 +1919,48 @@ > defaultHeight = defSizeAttrs.getHeight(); > } > >- stringBuffer.append(TEXT_330); >+ stringBuffer.append(TEXT_382); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >- stringBuffer.append(TEXT_331); >+ stringBuffer.append(TEXT_383); > stringBuffer.append(defaultWidth); >- stringBuffer.append(TEXT_332); >+ stringBuffer.append(TEXT_384); > stringBuffer.append(defaultHeight); >- stringBuffer.append(TEXT_333); >+ stringBuffer.append(TEXT_385); > > } else { > >- stringBuffer.append(TEXT_334); >+ stringBuffer.append(TEXT_386); > > } > >- stringBuffer.append(TEXT_335); >+ stringBuffer.append(TEXT_387); > stringBuffer.append(importManager.getImportedName(nextNode.getNotationViewFactoryQualifiedClassName())); >- stringBuffer.append(TEXT_336); >+ stringBuffer.append(TEXT_388); > > } > >- stringBuffer.append(TEXT_337); >+ stringBuffer.append(TEXT_389); > > } > >- stringBuffer.append(TEXT_338); >+ stringBuffer.append(TEXT_390); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_339); >- stringBuffer.append(TEXT_340); >+ stringBuffer.append(TEXT_391); >+ stringBuffer.append(TEXT_392); > > if (childNodes.size() == 0) { > >- stringBuffer.append(TEXT_341); >+ stringBuffer.append(TEXT_393); > stringBuffer.append(importManager.getImportedName("java.util.Collections")); >- stringBuffer.append(TEXT_342); >+ stringBuffer.append(TEXT_394); > > } else { > >- stringBuffer.append(TEXT_343); >+ stringBuffer.append(TEXT_395); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_344); >+ stringBuffer.append(TEXT_396); > stringBuffer.append(importManager.getImportedName("java.util.LinkedList")); >- stringBuffer.append(TEXT_345); >+ stringBuffer.append(TEXT_397); > > Map genFeature2genNodeMap = new LinkedHashMap(); > for (int nodeIndex = 0; nodeIndex < childNodes.size(); nodeIndex++) { >@@ -1728,15 +1978,15 @@ > Set entrySet = genFeature2genNodeMap.entrySet(); > if (entrySet.size() > 0) { > >- stringBuffer.append(TEXT_346); >+ stringBuffer.append(TEXT_398); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_347); >+ stringBuffer.append(TEXT_399); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_348); >+ stringBuffer.append(TEXT_400); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_349); >+ stringBuffer.append(TEXT_401); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_350); >+ stringBuffer.append(TEXT_402); > > } > for (Iterator entries = entrySet.iterator(); entries.hasNext();) { >@@ -1745,124 +1995,124 @@ > Collection genNodesCollection = (Collection) nextEntry.getValue(); > if (childMetaFeature.isListType()) { > >- stringBuffer.append(TEXT_351); >+ stringBuffer.append(TEXT_403); > stringBuffer.append(importManager.getImportedName("java.util.Iterator")); >- stringBuffer.append(TEXT_352); >+ stringBuffer.append(TEXT_404); > myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", childMetaFeature, null, true); >- stringBuffer.append(TEXT_353); >+ stringBuffer.append(TEXT_405); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_354); >+ stringBuffer.append(TEXT_406); > > } else { > >- stringBuffer.append(TEXT_355); >+ stringBuffer.append(TEXT_407); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_356); >+ stringBuffer.append(TEXT_408); > myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", childMetaFeature, null, false); >- stringBuffer.append(TEXT_357); >+ stringBuffer.append(TEXT_409); > > } > >- stringBuffer.append(TEXT_358); >+ stringBuffer.append(TEXT_410); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_359); >+ stringBuffer.append(TEXT_411); > > boolean generateSwitch = genNodesCollection.size() != 1; > if (generateSwitch) { > >- stringBuffer.append(TEXT_360); >+ stringBuffer.append(TEXT_412); > > } > for (Iterator genNodesIterator = genNodesCollection.iterator(); genNodesIterator.hasNext();) { > GenNode nextNode = (GenNode) genNodesIterator.next(); > if (generateSwitch) { > >- stringBuffer.append(TEXT_361); >+ stringBuffer.append(TEXT_413); > stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_362); >+ stringBuffer.append(TEXT_414); > > } else { > >- stringBuffer.append(TEXT_363); >+ stringBuffer.append(TEXT_415); > stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_364); >+ stringBuffer.append(TEXT_416); > > } > >- stringBuffer.append(TEXT_365); >+ stringBuffer.append(TEXT_417); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); >- stringBuffer.append(TEXT_366); >+ stringBuffer.append(TEXT_418); > > if (generateSwitch) { > >- stringBuffer.append(TEXT_367); >+ stringBuffer.append(TEXT_419); > > } else { > >- stringBuffer.append(TEXT_368); >+ stringBuffer.append(TEXT_420); > > } > } > if (generateSwitch) { > >- stringBuffer.append(TEXT_369); >+ stringBuffer.append(TEXT_421); > > } > if (childMetaFeature.isListType()) { > >- stringBuffer.append(TEXT_370); >+ stringBuffer.append(TEXT_422); > > } > } > >- stringBuffer.append(TEXT_371); >+ stringBuffer.append(TEXT_423); > > } > >- stringBuffer.append(TEXT_372); >+ stringBuffer.append(TEXT_424); > stringBuffer.append(genDiagram.isSynchronized()); >- stringBuffer.append(TEXT_373); >+ stringBuffer.append(TEXT_425); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); >- stringBuffer.append(TEXT_374); >+ stringBuffer.append(TEXT_426); > stringBuffer.append(genDiagram.isSynchronized()); >- stringBuffer.append(TEXT_375); >+ stringBuffer.append(TEXT_427); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_376); >+ stringBuffer.append(TEXT_428); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_377); >+ stringBuffer.append(TEXT_429); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.AbstractNotationModelRefresher")); >- stringBuffer.append(TEXT_378); >+ stringBuffer.append(TEXT_430); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_379); >+ stringBuffer.append(TEXT_431); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_380); >+ stringBuffer.append(TEXT_432); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_381); >+ stringBuffer.append(TEXT_433); > stringBuffer.append(_getDiagramCode); >- stringBuffer.append(TEXT_382); >+ stringBuffer.append(TEXT_434); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_383); >- stringBuffer.append(TEXT_384); >+ stringBuffer.append(TEXT_435); >+ stringBuffer.append(TEXT_436); > > if (myHelper.containsLinks() || _includeUncontainedLinks) { > >- stringBuffer.append(TEXT_385); >+ stringBuffer.append(TEXT_437); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_386); >+ stringBuffer.append(TEXT_438); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_387); >+ stringBuffer.append(TEXT_439); > stringBuffer.append(_getDiagramCode); >- stringBuffer.append(TEXT_388); >+ stringBuffer.append(TEXT_440); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService")); >- stringBuffer.append(TEXT_389); >+ stringBuffer.append(TEXT_441); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService")); >- stringBuffer.append(TEXT_390); >+ stringBuffer.append(TEXT_442); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.EditPartRegistryBasedViewService")); >- stringBuffer.append(TEXT_391); >+ stringBuffer.append(TEXT_443); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.OwnedLinksNotationModelRefresher")); >- stringBuffer.append(TEXT_392); >+ stringBuffer.append(TEXT_444); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService")); >- stringBuffer.append(TEXT_393); >+ stringBuffer.append(TEXT_445); > > boolean hasConstraintsInContainedLinks = false; > for (Iterator it = myHelper.getContainedTypeModelFacetLinks(); it.hasNext(); ) { >@@ -1875,42 +2125,42 @@ > } > if (hasConstraintsInContainedLinks) { > >- stringBuffer.append(TEXT_394); >+ stringBuffer.append(TEXT_446); > stringBuffer.append(genDiagram.getVisualIDRegistryQualifiedClassName()); >- stringBuffer.append(TEXT_395); >+ stringBuffer.append(TEXT_447); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_396); >+ stringBuffer.append(TEXT_448); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_397); >+ stringBuffer.append(TEXT_449); > > } > if (_includeUncontainedLinks) { > >- stringBuffer.append(TEXT_398); >+ stringBuffer.append(TEXT_450); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_399); >+ stringBuffer.append(TEXT_451); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_400); >+ stringBuffer.append(TEXT_452); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); >- stringBuffer.append(TEXT_401); >+ stringBuffer.append(TEXT_453); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_402); >+ stringBuffer.append(TEXT_454); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); >- stringBuffer.append(TEXT_403); >+ stringBuffer.append(TEXT_455); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_404); >+ stringBuffer.append(TEXT_456); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); >- stringBuffer.append(TEXT_405); >+ stringBuffer.append(TEXT_457); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_406); >+ stringBuffer.append(TEXT_458); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); >- stringBuffer.append(TEXT_407); >+ stringBuffer.append(TEXT_459); > > } > >- stringBuffer.append(TEXT_408); >+ stringBuffer.append(TEXT_460); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_409); >+ stringBuffer.append(TEXT_461); > > { > boolean hasDeclaredFilter = false; >@@ -1923,7 +2173,7 @@ > } > GenFeature _feature = modelFacet.getChildMetaFeature(); > >- stringBuffer.append(TEXT_410); >+ stringBuffer.append(TEXT_462); > > /* > * input: >@@ -1937,32 +2187,32 @@ > if (!hasDeclaredFilter) { > hasDeclaredFilter = true; > >- stringBuffer.append(TEXT_411); >+ stringBuffer.append(TEXT_463); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_412); >+ stringBuffer.append(TEXT_464); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_413); >+ stringBuffer.append(TEXT_465); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_414); >+ stringBuffer.append(TEXT_466); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_415); >+ stringBuffer.append(TEXT_467); > > } else { > >- stringBuffer.append(TEXT_416); >+ stringBuffer.append(TEXT_468); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_417); >+ stringBuffer.append(TEXT_469); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_418); >+ stringBuffer.append(TEXT_470); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_419); >+ stringBuffer.append(TEXT_471); > > } > > > _feature = modelFacet.getSourceMetaFeature(); > >- stringBuffer.append(TEXT_420); >+ stringBuffer.append(TEXT_472); > > /* > * input: >@@ -1976,32 +2226,32 @@ > if (!hasDeclaredFilter) { > hasDeclaredFilter = true; > >- stringBuffer.append(TEXT_421); >+ stringBuffer.append(TEXT_473); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_422); >+ stringBuffer.append(TEXT_474); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_423); >+ stringBuffer.append(TEXT_475); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_424); >+ stringBuffer.append(TEXT_476); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_425); >+ stringBuffer.append(TEXT_477); > > } else { > >- stringBuffer.append(TEXT_426); >+ stringBuffer.append(TEXT_478); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_427); >+ stringBuffer.append(TEXT_479); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_428); >+ stringBuffer.append(TEXT_480); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_429); >+ stringBuffer.append(TEXT_481); > > } > > > _feature = modelFacet.getTargetMetaFeature(); > >- stringBuffer.append(TEXT_430); >+ stringBuffer.append(TEXT_482); > > /* > * input: >@@ -2015,25 +2265,25 @@ > if (!hasDeclaredFilter) { > hasDeclaredFilter = true; > >- stringBuffer.append(TEXT_431); >+ stringBuffer.append(TEXT_483); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_432); >+ stringBuffer.append(TEXT_484); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_433); >+ stringBuffer.append(TEXT_485); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_434); >+ stringBuffer.append(TEXT_486); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_435); >+ stringBuffer.append(TEXT_487); > > } else { > >- stringBuffer.append(TEXT_436); >+ stringBuffer.append(TEXT_488); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_437); >+ stringBuffer.append(TEXT_489); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_438); >+ stringBuffer.append(TEXT_490); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_439); >+ stringBuffer.append(TEXT_491); > > } > >@@ -2043,7 +2293,7 @@ > GenLink nextLink = (GenLink) it.next(); > GenFeature _feature = ((FeatureModelFacet) nextLink.getModelFacet()).getMetaFeature(); > >- stringBuffer.append(TEXT_440); >+ stringBuffer.append(TEXT_492); > > /* > * input: >@@ -2057,25 +2307,25 @@ > if (!hasDeclaredFilter) { > hasDeclaredFilter = true; > >- stringBuffer.append(TEXT_441); >+ stringBuffer.append(TEXT_493); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_442); >+ stringBuffer.append(TEXT_494); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_443); >+ stringBuffer.append(TEXT_495); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_444); >+ stringBuffer.append(TEXT_496); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_445); >+ stringBuffer.append(TEXT_497); > > } else { > >- stringBuffer.append(TEXT_446); >+ stringBuffer.append(TEXT_498); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_447); >+ stringBuffer.append(TEXT_499); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_448); >+ stringBuffer.append(TEXT_500); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_449); >+ stringBuffer.append(TEXT_501); > > } > >@@ -2084,65 +2334,65 @@ > if (hasConstraintsInContainedLinks) { > if (hasDeclaredFilter) { > >- stringBuffer.append(TEXT_450); >+ stringBuffer.append(TEXT_502); > > } else { > hasDeclaredFilter = true; > >- stringBuffer.append(TEXT_451); >+ stringBuffer.append(TEXT_503); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_452); >+ stringBuffer.append(TEXT_504); > > } > } > if (_includeUncontainedLinks) { > if (hasDeclaredFilter) { > >- stringBuffer.append(TEXT_453); >+ stringBuffer.append(TEXT_505); > > } else { > hasDeclaredFilter = true; > >- stringBuffer.append(TEXT_454); >+ stringBuffer.append(TEXT_506); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_455); >+ stringBuffer.append(TEXT_507); > > } > } > if (!hasDeclaredFilter) { > >- stringBuffer.append(TEXT_456); >+ stringBuffer.append(TEXT_508); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_457); >+ stringBuffer.append(TEXT_509); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_458); >+ stringBuffer.append(TEXT_510); > > } > } //local declaration of hasDeclaredFilter > >- stringBuffer.append(TEXT_459); >+ stringBuffer.append(TEXT_511); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); >- stringBuffer.append(TEXT_460); >+ stringBuffer.append(TEXT_512); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); >- stringBuffer.append(TEXT_461); >+ stringBuffer.append(TEXT_513); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); >- stringBuffer.append(TEXT_462); >+ stringBuffer.append(TEXT_514); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); >- stringBuffer.append(TEXT_463); >+ stringBuffer.append(TEXT_515); > > { > Iterator _containedTypeModelFacetLinks = myHelper.getContainedTypeModelFacetLinks(); > Iterator _containedFeatureModelFacetLinks = myHelper.getContainedFeatureModelFacetLinks(); > String _diagramCode = "getHost().getDiagram()"; > >- stringBuffer.append(TEXT_464); >- stringBuffer.append(TEXT_465); >+ stringBuffer.append(TEXT_516); >+ stringBuffer.append(TEXT_517); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_466); >+ stringBuffer.append(TEXT_518); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_467); >+ stringBuffer.append(TEXT_519); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IViewDecorator")); >- stringBuffer.append(TEXT_468); >+ stringBuffer.append(TEXT_520); > > for(Iterator it = _containedTypeModelFacetLinks; it.hasNext(); ) { > GenLink nextLink = (GenLink) it.next(); >@@ -2151,48 +2401,48 @@ > continue; > } > >- stringBuffer.append(TEXT_469); >+ stringBuffer.append(TEXT_521); > stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_470); >+ stringBuffer.append(TEXT_522); > stringBuffer.append(importManager.getImportedName(modelFacet.getMetaClass().getQualifiedInterfaceName())); >- stringBuffer.append(TEXT_471); >+ stringBuffer.append(TEXT_523); > stringBuffer.append(importManager.getImportedName(nextLink.getNotationViewFactoryQualifiedClassName())); >- stringBuffer.append(TEXT_472); >+ stringBuffer.append(TEXT_524); > > } > for(Iterator it = _containedFeatureModelFacetLinks; it.hasNext(); ) { > GenLink nextLink = (GenLink) it.next(); > >- stringBuffer.append(TEXT_473); >+ stringBuffer.append(TEXT_525); > stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_474); >+ stringBuffer.append(TEXT_526); > stringBuffer.append(importManager.getImportedName(nextLink.getNotationViewFactoryQualifiedClassName())); >- stringBuffer.append(TEXT_475); >+ stringBuffer.append(TEXT_527); > > } > >- stringBuffer.append(TEXT_476); >+ stringBuffer.append(TEXT_528); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalEdgeCommand")); >- stringBuffer.append(TEXT_477); >+ stringBuffer.append(TEXT_529); > stringBuffer.append(_diagramCode); >- stringBuffer.append(TEXT_478); >+ stringBuffer.append(TEXT_530); > > } > >- stringBuffer.append(TEXT_479); >+ stringBuffer.append(TEXT_531); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_480); >+ stringBuffer.append(TEXT_532); > > { > Iterator _containedTypeModelFacetLinks = myHelper.getContainedTypeModelFacetLinks(); > Iterator _containedFeatureModelFacetLinks = myHelper.getContainedFeatureModelFacetLinks(); > >- stringBuffer.append(TEXT_481); >- stringBuffer.append(TEXT_482); >+ stringBuffer.append(TEXT_533); >+ stringBuffer.append(TEXT_534); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_483); >+ stringBuffer.append(TEXT_535); > stringBuffer.append(importManager.getImportedName("java.util.LinkedList")); >- stringBuffer.append(TEXT_484); >+ stringBuffer.append(TEXT_536); > > Map genFeature2genLinkMap = new LinkedHashMap(); > for(Iterator it = _containedTypeModelFacetLinks; it.hasNext(); ) { >@@ -2215,18 +2465,18 @@ > } > if (!genFeature2genLinkMap.isEmpty() || !genFeature2featureGenLinkMap.isEmpty()) { > >- stringBuffer.append(TEXT_485); >+ stringBuffer.append(TEXT_537); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_486); >+ stringBuffer.append(TEXT_538); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_487); >+ stringBuffer.append(TEXT_539); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_488); >+ stringBuffer.append(TEXT_540); > > } > if (!genFeature2genLinkMap.isEmpty()) { > >- stringBuffer.append(TEXT_489); >+ stringBuffer.append(TEXT_541); > > } > for (Iterator entries = genFeature2genLinkMap.entrySet().iterator(); entries.hasNext();) { >@@ -2235,32 +2485,32 @@ > Collection genLinksCollection = (Collection) nextEntry.getValue(); > if (metaFeature.isListType()) { > >- stringBuffer.append(TEXT_490); >+ stringBuffer.append(TEXT_542); > stringBuffer.append(importManager.getImportedName("java.util.Iterator")); >- stringBuffer.append(TEXT_491); >+ stringBuffer.append(TEXT_543); > myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, true); >- stringBuffer.append(TEXT_492); >+ stringBuffer.append(TEXT_544); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_493); >+ stringBuffer.append(TEXT_545); > > } else { > >- stringBuffer.append(TEXT_494); >+ stringBuffer.append(TEXT_546); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_495); >+ stringBuffer.append(TEXT_547); > myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, false); >- stringBuffer.append(TEXT_496); >+ stringBuffer.append(TEXT_548); > > } > >- stringBuffer.append(TEXT_497); >+ stringBuffer.append(TEXT_549); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_498); >+ stringBuffer.append(TEXT_550); > > boolean generateSwitch = genLinksCollection.size() != 1; > if (generateSwitch) { > >- stringBuffer.append(TEXT_499); >+ stringBuffer.append(TEXT_551); > > } > for (Iterator genLinksIterator = genLinksCollection.iterator(); genLinksIterator.hasNext(); ) { >@@ -2268,67 +2518,67 @@ > TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) nextLink.getModelFacet(); > if (generateSwitch) { > >- stringBuffer.append(TEXT_500); >+ stringBuffer.append(TEXT_552); > stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_501); >+ stringBuffer.append(TEXT_553); > > } else { > >- stringBuffer.append(TEXT_502); >+ stringBuffer.append(TEXT_554); > stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_503); >+ stringBuffer.append(TEXT_555); > > } > if (modelFacet.getSourceMetaFeature() != null) { > >- stringBuffer.append(TEXT_504); >+ stringBuffer.append(TEXT_556); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_505); >+ stringBuffer.append(TEXT_557); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_506); >+ stringBuffer.append(TEXT_558); > myFeatureGetAccessorHelper.appendFeatureValueGetter("nextValue", modelFacet.getSourceMetaFeature(), null, false); >- stringBuffer.append(TEXT_507); >+ stringBuffer.append(TEXT_559); > > } else { > >- stringBuffer.append(TEXT_508); >+ stringBuffer.append(TEXT_560); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_509); >+ stringBuffer.append(TEXT_561); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_510); >+ stringBuffer.append(TEXT_562); > > } > if (modelFacet.getTargetMetaFeature() != null) { > >- stringBuffer.append(TEXT_511); >+ stringBuffer.append(TEXT_563); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_512); >+ stringBuffer.append(TEXT_564); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_513); >+ stringBuffer.append(TEXT_565); > myFeatureGetAccessorHelper.appendFeatureValueGetter("nextValue", modelFacet.getTargetMetaFeature(), null, false); >- stringBuffer.append(TEXT_514); >+ stringBuffer.append(TEXT_566); > > } else { > >- stringBuffer.append(TEXT_515); >+ stringBuffer.append(TEXT_567); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_516); >+ stringBuffer.append(TEXT_568); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_517); >+ stringBuffer.append(TEXT_569); > > } > >- stringBuffer.append(TEXT_518); >+ stringBuffer.append(TEXT_570); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); >- stringBuffer.append(TEXT_519); >+ stringBuffer.append(TEXT_571); > > if (generateSwitch) { > >- stringBuffer.append(TEXT_520); >+ stringBuffer.append(TEXT_572); > > } else { > >- stringBuffer.append(TEXT_521); >+ stringBuffer.append(TEXT_573); > > } > >@@ -2336,12 +2586,12 @@ > } //iterate over genLinksCollection > if (generateSwitch) { > >- stringBuffer.append(TEXT_522); >+ stringBuffer.append(TEXT_574); > > } > if (metaFeature.isListType()) { > >- stringBuffer.append(TEXT_523); >+ stringBuffer.append(TEXT_575); > > } > } >@@ -2351,192 +2601,192 @@ > Collection genLinksCollection = (Collection) nextEntry.getValue(); > if (metaFeature.isListType()) { > >- stringBuffer.append(TEXT_524); >+ stringBuffer.append(TEXT_576); > stringBuffer.append(importManager.getImportedName("java.util.Iterator")); >- stringBuffer.append(TEXT_525); >+ stringBuffer.append(TEXT_577); > myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, true); >- stringBuffer.append(TEXT_526); >+ stringBuffer.append(TEXT_578); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_527); >+ stringBuffer.append(TEXT_579); > > } else { > >- stringBuffer.append(TEXT_528); >+ stringBuffer.append(TEXT_580); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_529); >+ stringBuffer.append(TEXT_581); > myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, false); >- stringBuffer.append(TEXT_530); >+ stringBuffer.append(TEXT_582); > > } > >- stringBuffer.append(TEXT_531); >+ stringBuffer.append(TEXT_583); > > for (Iterator genLinksIterator = genLinksCollection.iterator(); genLinksIterator.hasNext(); ) { > GenLink nextLink = (GenLink) genLinksIterator.next(); > >- stringBuffer.append(TEXT_532); >+ stringBuffer.append(TEXT_584); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); >- stringBuffer.append(TEXT_533); >+ stringBuffer.append(TEXT_585); > stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_534); >+ stringBuffer.append(TEXT_586); > > } > >- stringBuffer.append(TEXT_535); >+ stringBuffer.append(TEXT_587); > > if (metaFeature.isListType()) { > >- stringBuffer.append(TEXT_536); >+ stringBuffer.append(TEXT_588); > > } > } > >- stringBuffer.append(TEXT_537); >+ stringBuffer.append(TEXT_589); > > } > >- stringBuffer.append(TEXT_538); >+ stringBuffer.append(TEXT_590); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_539); >+ stringBuffer.append(TEXT_591); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_540); >+ stringBuffer.append(TEXT_592); > stringBuffer.append(importManager.getImportedName("java.util.LinkedList")); >- stringBuffer.append(TEXT_541); >+ stringBuffer.append(TEXT_593); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_542); >+ stringBuffer.append(TEXT_594); > stringBuffer.append(_getDiagramCode); >- stringBuffer.append(TEXT_543); >+ stringBuffer.append(TEXT_595); > stringBuffer.append(importManager.getImportedName("java.util.Iterator")); >- stringBuffer.append(TEXT_544); >+ stringBuffer.append(TEXT_596); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); >- stringBuffer.append(TEXT_545); >+ stringBuffer.append(TEXT_597); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); >- stringBuffer.append(TEXT_546); >+ stringBuffer.append(TEXT_598); > > if (_includeUncontainedLinks) { > >- stringBuffer.append(TEXT_547); >+ stringBuffer.append(TEXT_599); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_548); >+ stringBuffer.append(TEXT_600); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_549); >+ stringBuffer.append(TEXT_601); > > } > if (myHelper.containsFeatureModelFacetLinks()) { > >- stringBuffer.append(TEXT_550); >+ stringBuffer.append(TEXT_602); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_551); >+ stringBuffer.append(TEXT_603); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_552); >+ stringBuffer.append(TEXT_604); > > for(Iterator it = myHelper.getContainedFeatureModelFacetLinks(); it.hasNext(); ) { > GenLink nextLink = (GenLink) it.next(); > >- stringBuffer.append(TEXT_553); >+ stringBuffer.append(TEXT_605); > stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_554); >+ stringBuffer.append(TEXT_606); > > } > >- stringBuffer.append(TEXT_555); >+ stringBuffer.append(TEXT_607); > > if (myHelper.containsTypeModelFacetLinks()) { > >- stringBuffer.append(TEXT_556); >+ stringBuffer.append(TEXT_608); > > } else { > >- stringBuffer.append(TEXT_557); >+ stringBuffer.append(TEXT_609); > > } > } > if (myHelper.containsTypeModelFacetLinks()) { > if (!myHelper.containsFeatureModelFacetLinks()) { > >- stringBuffer.append(TEXT_558); >+ stringBuffer.append(TEXT_610); > > } > >- stringBuffer.append(TEXT_559); >+ stringBuffer.append(TEXT_611); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_560); >+ stringBuffer.append(TEXT_612); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_561); >+ stringBuffer.append(TEXT_613); > > for(Iterator it = myHelper.getContainedTypeModelFacetLinks(); it.hasNext(); ) { > GenLink nextLink = (GenLink) it.next(); > >- stringBuffer.append(TEXT_562); >+ stringBuffer.append(TEXT_614); > stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_563); >+ stringBuffer.append(TEXT_615); > > } > >- stringBuffer.append(TEXT_564); >+ stringBuffer.append(TEXT_616); > > } > >- stringBuffer.append(TEXT_565); >+ stringBuffer.append(TEXT_617); > stringBuffer.append(genDiagram.isSynchronized()); >- stringBuffer.append(TEXT_566); >+ stringBuffer.append(TEXT_618); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); >- stringBuffer.append(TEXT_567); >+ stringBuffer.append(TEXT_619); > stringBuffer.append(genDiagram.isSynchronized()); >- stringBuffer.append(TEXT_568); >+ stringBuffer.append(TEXT_620); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_569); >+ stringBuffer.append(TEXT_621); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_570); >+ stringBuffer.append(TEXT_622); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.AbstractNotationModelRefresher")); >- stringBuffer.append(TEXT_571); >+ stringBuffer.append(TEXT_623); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_572); >+ stringBuffer.append(TEXT_624); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_573); >+ stringBuffer.append(TEXT_625); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_574); >+ stringBuffer.append(TEXT_626); > stringBuffer.append(_getDiagramCode); >- stringBuffer.append(TEXT_575); >+ stringBuffer.append(TEXT_627); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_576); >+ stringBuffer.append(TEXT_628); > > } > > > } > >- stringBuffer.append(TEXT_577); >- stringBuffer.append(TEXT_578); >- stringBuffer.append(TEXT_579); >+ stringBuffer.append(TEXT_629); >+ stringBuffer.append(TEXT_630); >+ stringBuffer.append(TEXT_631); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter")); >- stringBuffer.append(TEXT_580); >+ stringBuffer.append(TEXT_632); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter")); >- stringBuffer.append(TEXT_581); >+ stringBuffer.append(TEXT_633); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.UpdateManager")); >- stringBuffer.append(TEXT_582); >+ stringBuffer.append(TEXT_634); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.UpdateManager")); >- stringBuffer.append(TEXT_583); >+ stringBuffer.append(TEXT_635); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.UpdateManager")); >- stringBuffer.append(TEXT_584); >+ stringBuffer.append(TEXT_636); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.tree.BaseTreeEditPart")); >- stringBuffer.append(TEXT_585); >+ stringBuffer.append(TEXT_637); > stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); >- stringBuffer.append(TEXT_586); >- stringBuffer.append(TEXT_587); >- stringBuffer.append(TEXT_588); >+ stringBuffer.append(TEXT_638); >+ stringBuffer.append(TEXT_639); >+ stringBuffer.append(TEXT_640); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter")); >- stringBuffer.append(TEXT_589); >+ stringBuffer.append(TEXT_641); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter")); >- stringBuffer.append(TEXT_590); >+ stringBuffer.append(TEXT_642); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.UpdateManager")); >- stringBuffer.append(TEXT_591); >+ stringBuffer.append(TEXT_643); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.UpdateManager")); >- stringBuffer.append(TEXT_592); >+ stringBuffer.append(TEXT_644); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.UpdateManager")); >- stringBuffer.append(TEXT_593); >+ stringBuffer.append(TEXT_645); > importManager.emitSortedImports(); >- stringBuffer.append(TEXT_594); >+ stringBuffer.append(TEXT_646); > return stringBuffer.toString(); > } > } >Index: src-templates/org/eclipse/gmf/codegen/templates/lite/parts/NodeEditPartGenerator.java >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/NodeEditPartGenerator.java,v >retrieving revision 1.24 >diff -u -r1.24 NodeEditPartGenerator.java >--- src-templates/org/eclipse/gmf/codegen/templates/lite/parts/NodeEditPartGenerator.java 9 Oct 2006 17:03:14 -0000 1.24 >+++ src-templates/org/eclipse/gmf/codegen/templates/lite/parts/NodeEditPartGenerator.java 11 Oct 2006 14:02:54 -0000 >@@ -154,1525 +154,1631 @@ > protected final String TEXT_133 = ".UNSET_VALUE));"; > protected final String TEXT_134 = NL + "\t\t\t\t\tbreak;"; > protected final String TEXT_135 = NL + "\t\t\t\t\t}\t"; >- protected final String TEXT_136 = NL + "\t\t\t\t\tresult.append("; >- protected final String TEXT_137 = ".create(" + NL + "\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t"; >- protected final String TEXT_138 = ".getElement(), "; >- protected final String TEXT_139 = ".eINSTANCE.get"; >- protected final String TEXT_140 = "(), element));"; >- protected final String TEXT_141 = NL + "\t\t\t\t\tresult.append("; >- protected final String TEXT_142 = ".create(" + NL + "\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t"; >- protected final String TEXT_143 = ".getElement(), "; >- protected final String TEXT_144 = ".eINSTANCE.get"; >- protected final String TEXT_145 = "(), element));"; >- protected final String TEXT_146 = NL + "\t\t\t\t\tresult.append("; >- protected final String TEXT_147 = ".create(editingDomain, childNode.eContainer(), childNode.eContainmentFeature(), childNode));" + NL + "\t\t\t\t\tif (newVisualID == visualID) {" + NL + "\t\t\t\t\t\tresult.append("; >- protected final String TEXT_148 = ".create(editingDomain, "; >- protected final String TEXT_149 = ", "; >- protected final String TEXT_150 = ".eINSTANCE.getView_PersistedChildren(), childNode));" + NL + "\t\t\t\t\t\tresult.append(new "; >- protected final String TEXT_151 = "(childNode, "; >- protected final String TEXT_152 = "null"; >- protected final String TEXT_153 = "("; >- protected final String TEXT_154 = ") constraint"; >- protected final String TEXT_155 = "));" + NL + "\t\t\t\t\t} else {"; >- protected final String TEXT_156 = NL + "\t\t\t\t\t\tresult.append(new "; >- protected final String TEXT_157 = "("; >- protected final String TEXT_158 = ", element, "; >- protected final String TEXT_159 = "null"; >- protected final String TEXT_160 = "(("; >- protected final String TEXT_161 = ") constraint).getCopy().union(new "; >- protected final String TEXT_162 = "("; >- protected final String TEXT_163 = ", "; >- protected final String TEXT_164 = "))"; >- protected final String TEXT_165 = ", "; >- protected final String TEXT_166 = ".INSTANCE));"; >- protected final String TEXT_167 = NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tcommand = result;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;"; >- protected final String TEXT_168 = NL + "\t\t\t}" + NL + "\t\t\tif (command != null) {" + NL + "\t\t\t\treturn new "; >- protected final String TEXT_169 = "(editingDomain, command);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "\treturn "; >- protected final String TEXT_170 = ".INSTANCE;" + NL + "}"; >- protected final String TEXT_171 = NL; >- protected final String TEXT_172 = NL + "protected "; >- protected final String TEXT_173 = " getCloneCommand("; >- protected final String TEXT_174 = " request) {" + NL + "\t"; >- protected final String TEXT_175 = " editParts = request.getEditParts();" + NL + "\t"; >- protected final String TEXT_176 = " command = new "; >- protected final String TEXT_177 = "();" + NL + "\tcommand.setDebugLabel(\"Clone in ConstrainedLayoutEditPolicy\");//$NON-NLS-1$" + NL + "\t"; >- protected final String TEXT_178 = " childPart;" + NL + "\t"; >- protected final String TEXT_179 = " r;" + NL + "\tObject constraint;" + NL + "" + NL + "\tfor (int i = 0; i < editParts.size(); i++) {" + NL + "\t\tchildPart = ("; >- protected final String TEXT_180 = ")editParts.get(i);" + NL + "\t\tr = childPart.getFigure().getBounds().getCopy();" + NL + "\t\t//convert r to absolute from childpart figure" + NL + "\t\tchildPart.getFigure().translateToAbsolute(r);" + NL + "\t\tr = request.getTransformedRectangle(r);" + NL + "\t\t//convert this figure to relative " + NL + "\t\tgetLayoutContainer().translateToRelative(r);" + NL + "\t\tgetLayoutContainer().translateFromParent(r);" + NL + "\t\tr.translate(getLayoutOrigin().getNegated());" + NL + "\t\tconstraint = getConstraintFor(r);" + NL + "\t\tcommand.add(createCloneCommand(childPart," + NL + "\t\t\ttranslateToModelConstraint(constraint)));" + NL + "\t}" + NL + "\treturn command.unwrap();" + NL + "}" + NL + "protected "; >- protected final String TEXT_181 = " createCloneCommand(final "; >- protected final String TEXT_182 = " child, final Object constraint) {" + NL + "\tif (child.getModel() instanceof "; >- protected final String TEXT_183 = ") {" + NL + "\t\tfinal "; >- protected final String TEXT_184 = " childNode = ("; >- protected final String TEXT_185 = ") child.getModel();" + NL + "\t\tfinal "; >- protected final String TEXT_186 = " editingDomain = "; >- protected final String TEXT_187 = ".getEditingDomain(childNode.getDiagram().getElement());" + NL + "\t\tString modelID = "; >- protected final String TEXT_188 = ".getModelID(childNode);" + NL + "\t\tif ("; >- protected final String TEXT_189 = ".MODEL_ID.equals(modelID)) {" + NL + "\t\t\tfinal int newVisualID = "; >- protected final String TEXT_190 = ".INSTANCE.getNodeVisualID("; >- protected final String TEXT_191 = ", childNode.getElement());" + NL + "\t\t\t"; >- protected final String TEXT_192 = " command = null;" + NL + "\t\t\tswitch (newVisualID) {"; >- protected final String TEXT_193 = NL + "\t\t\tcase "; >- protected final String TEXT_194 = ".VISUAL_ID:" + NL + "\t\t\t\tcommand = new "; >- protected final String TEXT_195 = "() {" + NL + "\t\t\t\t\tprivate "; >- protected final String TEXT_196 = " afterCopyCommand;" + NL + "\t\t\t\t\tprotected "; >- protected final String TEXT_197 = " createCommand() {" + NL + "\t\t\t\t\t\t"; >- protected final String TEXT_198 = " element = childNode.getElement();" + NL + "\t\t\t\t\t\t//We are being optimistic here about whether further commands can be executed." + NL + "\t\t\t\t\t\t//Otherwise, we would have to execute the CopyCommand on every mouse move, which could be much too expensive. " + NL + "\t\t\t\t\t\treturn "; >- protected final String TEXT_199 = ".create(editingDomain, element);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void execute() {" + NL + "\t\t\t\t\t\tsuper.execute();" + NL + "\t\t\t\t\t\tfinal "; >- protected final String TEXT_200 = " results = super.getResult();" + NL + "\t\t\t\t\t\tassert results.size() == 1;" + NL + "\t\t\t\t\t\t"; >- protected final String TEXT_201 = " result = ("; >- protected final String TEXT_202 = ") results.iterator().next();" + NL + "\t\t\t\t\t\tafterCopyCommand = new "; >- protected final String TEXT_203 = "();"; >- protected final String TEXT_204 = NL + "\t\t\t\t\t\tafterCopyCommand.append("; >- protected final String TEXT_205 = ".create(" + NL + "\t\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t\t"; >- protected final String TEXT_206 = ".getElement(), "; >- protected final String TEXT_207 = ".eINSTANCE.get"; >- protected final String TEXT_208 = "(), result));"; >- protected final String TEXT_209 = NL + "\t\t\t\t\t\tafterCopyCommand.append("; >- protected final String TEXT_210 = ".create(" + NL + "\t\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t\t"; >- protected final String TEXT_211 = ".getElement(), "; >- protected final String TEXT_212 = ".eINSTANCE.get"; >- protected final String TEXT_213 = "(), result));"; >- protected final String TEXT_214 = NL + "\t\t\t\t\t\tafterCopyCommand.append(new "; >- protected final String TEXT_215 = "("; >- protected final String TEXT_216 = ", result, "; >- protected final String TEXT_217 = "null"; >- protected final String TEXT_218 = "(("; >- protected final String TEXT_219 = ") constraint).getCopy().union(new "; >- protected final String TEXT_220 = "("; >- protected final String TEXT_221 = ", "; >- protected final String TEXT_222 = "))"; >- protected final String TEXT_223 = ", "; >- protected final String TEXT_224 = ".INSTANCE));" + NL + "\t\t\t\t\t\tif (afterCopyCommand.canExecute()) {" + NL + "\t\t\t\t\t\t\tafterCopyCommand.execute();" + NL + "\t\t\t\t\t\t} else {" + NL + "\t\t\t\t\t\t\tassert false;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void undo() {" + NL + "\t\t\t\t\t\tafterCopyCommand.undo();" + NL + "\t\t\t\t\t\tsuper.undo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void redo() {" + NL + "\t\t\t\t\t\tsuper.redo();" + NL + "\t\t\t\t\t\tafterCopyCommand.redo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "\t\t\t\tbreak;"; >- protected final String TEXT_225 = NL + "\t\t\t}" + NL + "\t\t\tif (command != null) {" + NL + "\t\t\t\treturn new "; >- protected final String TEXT_226 = "(editingDomain, command);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "\treturn "; >- protected final String TEXT_227 = ".INSTANCE;" + NL + "}"; >- protected final String TEXT_228 = NL + "\t\t\tprotected "; >- protected final String TEXT_229 = " getCreateCommand("; >- protected final String TEXT_230 = " request) {"; >- protected final String TEXT_231 = NL + "\t\t\t\tif (request instanceof "; >- protected final String TEXT_232 = ") {" + NL + "\t\t\t\t\t"; >- protected final String TEXT_233 = " requestEx = ("; >- protected final String TEXT_234 = ") request;" + NL + "\t\t\t\t\tint[] visualIds = requestEx.getVisualIds();" + NL + "\t\t\t\t\t"; >- protected final String TEXT_235 = " result = new "; >- protected final String TEXT_236 = "();" + NL + "\t\t\t\t\tfor(int i = 0; i < visualIds.length; i++) {" + NL + "\t\t\t\t\t\tint nextVisualId = visualIds[i];" + NL + "\t\t\t\t\t\tswitch (nextVisualId) {"; >- protected final String TEXT_237 = NL + "\t\t\t\t\t\tcase "; >- protected final String TEXT_238 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\t\tresult.append(new Create"; >- protected final String TEXT_239 = "Command((View) getModel(), requestEx"; >- protected final String TEXT_240 = ", " + NL + "\t\t\t\t\t\t\t\t("; >- protected final String TEXT_241 = ")getConstraintFor(request)"; >- protected final String TEXT_242 = "));" + NL + "\t\t\t\t\t\t\tbreak;"; >- protected final String TEXT_243 = NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\treturn new "; >- protected final String TEXT_244 = "("; >- protected final String TEXT_245 = ".getEditingDomain(((View) getModel()).getDiagram().getElement()), result);" + NL + "\t\t\t\t}"; >- protected final String TEXT_246 = NL + "\t\t\t\treturn "; >- protected final String TEXT_247 = ".INSTANCE;" + NL + "\t\t\t}"; >- protected final String TEXT_248 = NL + "\t\t\tprotected "; >- protected final String TEXT_249 = " createChangeConstraintCommand(final "; >- protected final String TEXT_250 = " request, final "; >- protected final String TEXT_251 = " child, Object constraint) {" + NL + "\t\t\t\tif (!isDirectChild(child)) {" + NL + "\t\t\t\t\treturn "; >- protected final String TEXT_252 = ".INSTANCE;" + NL + "\t\t\t\t}"; >- protected final String TEXT_253 = NL; >- protected final String TEXT_254 = "\t\t\t\tfinal "; >- protected final String TEXT_255 = " node = ("; >- protected final String TEXT_256 = ") child.getModel();" + NL + "\t\t\t\t"; >- protected final String TEXT_257 = " emfCommand = new "; >- protected final String TEXT_258 = "(node, request, (("; >- protected final String TEXT_259 = ")child).getFigure());" + NL + "\t\t\t\treturn new "; >- protected final String TEXT_260 = "("; >- protected final String TEXT_261 = ".getEditingDomain(node.getDiagram().getElement()), emfCommand);" + NL + "\t\t\t}" + NL + "\t\t\tprotected Command createChangeConstraintCommand("; >- protected final String TEXT_262 = " child, Object constraint) {" + NL + "\t\t\t\tassert false;" + NL + "\t\t\t\treturn "; >- protected final String TEXT_263 = ".INSTANCE;" + NL + "\t\t\t}"; >- protected final String TEXT_264 = NL + "\t\t\tprotected Object getConstraintFor("; >- protected final String TEXT_265 = " rect) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tprotected Object getConstraintFor("; >- protected final String TEXT_266 = " point) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tprotected "; >- protected final String TEXT_267 = " createChangeConstraintCommand("; >- protected final String TEXT_268 = " child, Object constraint) {" + NL + "\t\t\t\treturn "; >- protected final String TEXT_269 = ".INSTANCE;" + NL + "\t\t\t}"; >- protected final String TEXT_270 = NL + "\t\t\tprotected "; >- protected final String TEXT_271 = " createChildEditPolicy("; >- protected final String TEXT_272 = " child) {"; >- protected final String TEXT_273 = NL + "\t\t\t\tif (isDirectChild(child)) {" + NL + "\t\t\t\t\treturn super.createChildEditPolicy(child);" + NL + "\t\t\t\t}"; >- protected final String TEXT_274 = NL + "\t\t\t\treturn new "; >- protected final String TEXT_275 = "() {" + NL + "\t\t\t\t\tpublic "; >- protected final String TEXT_276 = " getTargetEditPart("; >- protected final String TEXT_277 = " request) {" + NL + "\t\t\t\t\t\tif ("; >- protected final String TEXT_278 = ".REQ_SELECTION.equals(request.getType())) {" + NL + "\t\t\t\t\t\t\treturn "; >- protected final String TEXT_279 = ".this;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\treturn super.getTargetEditPart(request);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "\t\t\t}" + NL + "\t\t});" + NL + "\t\tinstallEditPolicy("; >- protected final String TEXT_280 = ".GRAPHICAL_NODE_ROLE, new "; >- protected final String TEXT_281 = "() {" + NL + "\t\t\tprotected "; >- protected final String TEXT_282 = " getReconnectTargetCommand("; >- protected final String TEXT_283 = " request) {"; >- protected final String TEXT_284 = " " + NL + "\t\t\t\treturn "; >- protected final String TEXT_285 = ".INSTANCE;"; >- protected final String TEXT_286 = NL + "\t\t\t\t"; >- protected final String TEXT_287 = " connection = request.getConnectionEditPart();" + NL + "\t\t\t\tif (connection.getModel() instanceof "; >- protected final String TEXT_288 = " == false) {" + NL + "\t\t\t\t\treturn "; >- protected final String TEXT_289 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; >- protected final String TEXT_290 = " edge = ("; >- protected final String TEXT_291 = ")connection.getModel();" + NL + "\t\t\t\tString modelID = "; >- protected final String TEXT_292 = ".getModelID(edge);" + NL + "\t\t\t\tif (!"; >- protected final String TEXT_293 = ".MODEL_ID.equals(modelID)) {" + NL + "\t\t\t\t\treturn "; >- protected final String TEXT_294 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; >- protected final String TEXT_295 = " result = null;" + NL + "\t\t\t\tint visualID = "; >- protected final String TEXT_296 = ".getVisualID(edge);" + NL + "\t\t\t\tswitch (visualID) {"; >- protected final String TEXT_297 = NL + "\t\t\t\tcase "; >- protected final String TEXT_298 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult = new Reconnect"; >- protected final String TEXT_299 = "TargetCommand(request);" + NL + "\t\t\t\t\tbreak;"; >- protected final String TEXT_300 = NL + "\t\t\t\t}" + NL + "\t\t\t\tif (result == null) {" + NL + "\t\t\t\t\treturn "; >- protected final String TEXT_301 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn new "; >- protected final String TEXT_302 = "("; >- protected final String TEXT_303 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);"; >- protected final String TEXT_304 = NL + "\t\t\t}" + NL + "\t\t\tprotected "; >- protected final String TEXT_305 = " getReconnectSourceCommand("; >- protected final String TEXT_306 = " request) {"; >- protected final String TEXT_307 = " " + NL + "\t\t\t\treturn "; >- protected final String TEXT_308 = ".INSTANCE;"; >- protected final String TEXT_309 = NL + "\t\t\t\t"; >- protected final String TEXT_310 = " connection = request.getConnectionEditPart();" + NL + "\t\t\t\tif (connection.getModel() instanceof "; >- protected final String TEXT_311 = " == false) {" + NL + "\t\t\t\t\treturn "; >- protected final String TEXT_312 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; >- protected final String TEXT_313 = " edge = ("; >- protected final String TEXT_314 = ")connection.getModel();" + NL + "\t\t\t\tString modelID = "; >- protected final String TEXT_315 = ".getModelID(edge);" + NL + "\t\t\t\tif (!"; >- protected final String TEXT_316 = ".MODEL_ID.equals(modelID)) {" + NL + "\t\t\t\t\treturn "; >- protected final String TEXT_317 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; >- protected final String TEXT_318 = " result = null;" + NL + "\t\t\t\tint visualID = "; >- protected final String TEXT_319 = ".getVisualID(edge);" + NL + "\t\t\t\tswitch (visualID) {"; >- protected final String TEXT_320 = NL + "\t\t\t\tcase "; >- protected final String TEXT_321 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult = new Reconnect"; >- protected final String TEXT_322 = "SourceCommand(request);" + NL + "\t\t\t\t\tbreak;"; >- protected final String TEXT_323 = NL + "\t\t\t\t}" + NL + "\t\t\t\tif (result == null) {" + NL + "\t\t\t\t\treturn "; >- protected final String TEXT_324 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn new "; >- protected final String TEXT_325 = "("; >- protected final String TEXT_326 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);"; >- protected final String TEXT_327 = NL + "\t\t\t}" + NL + "\t\t\tprotected "; >- protected final String TEXT_328 = " getConnectionCreateCommand("; >- protected final String TEXT_329 = " request) {"; >- protected final String TEXT_330 = NL + "\t\t\t\tif (request instanceof "; >- protected final String TEXT_331 = ") {" + NL + "\t\t\t\t\t"; >- protected final String TEXT_332 = " requestEx = ("; >- protected final String TEXT_333 = ") request;" + NL + "\t\t\t\t\tint[] visualIds = requestEx.getVisualIds();" + NL + "\t\t\t\t\t"; >- protected final String TEXT_334 = " result = new "; >- protected final String TEXT_335 = "();" + NL + "\t\t\t\t\tfor (int i = 0; i < visualIds.length; i++) {" + NL + "\t\t\t\t\t\tint nextVisualId = visualIds[i];" + NL + "\t\t\t\t\t\tswitch (nextVisualId) {"; >- protected final String TEXT_336 = NL + "\t\t\t\t\t\tcase "; >- protected final String TEXT_337 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\t\tresult.append(new Create"; >- protected final String TEXT_338 = "StartCommand(requestEx));" + NL + "\t\t\t\t\t\t\tbreak;"; >- protected final String TEXT_339 = NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tif (result.getCommandList().size() != 1 || !result.canExecute()) {" + NL + "\t\t\t\t\t\t//Cannot create several connections at once." + NL + "\t\t\t\t\t\t//returning an unexecutable command does not change cursor to \"No\"." + NL + "\t\t\t\t\t\treturn null;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\t"; >- protected final String TEXT_340 = " wrappedResult = new "; >- protected final String TEXT_341 = "("; >- protected final String TEXT_342 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);" + NL + "\t\t\t\t\trequest.setStartCommand(wrappedResult);" + NL + "\t\t\t\t\treturn wrappedResult;" + NL + "\t\t\t\t}"; >- protected final String TEXT_343 = NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tprotected "; >- protected final String TEXT_344 = " getConnectionCompleteCommand("; >- protected final String TEXT_345 = " request) {"; >- protected final String TEXT_346 = NL + "\t\t\t\tif (request.getStartCommand() == null || !request.getStartCommand().canExecute()) {" + NL + "\t\t\t\t\treturn "; >- protected final String TEXT_347 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tif (request instanceof "; >- protected final String TEXT_348 = ") {" + NL + "\t\t\t\t\t"; >- protected final String TEXT_349 = " requestEx = ("; >- protected final String TEXT_350 = ") request;" + NL + "\t\t\t\t\tint[] visualIds = requestEx.getVisualIds();" + NL + "\t\t\t\t\t"; >- protected final String TEXT_351 = " result = new "; >- protected final String TEXT_352 = "();" + NL + "\t\t\t\t\tfor (int i = 0; i < visualIds.length; i++) {" + NL + "\t\t\t\t\t\tint nextVisualId = visualIds[i];" + NL + "\t\t\t\t\t\tswitch (nextVisualId) {"; >- protected final String TEXT_353 = NL + "\t\t\t\t\t\tcase "; >- protected final String TEXT_354 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\t\tresult.append(new Create"; >- protected final String TEXT_355 = "Command(requestEx));" + NL + "\t\t\t\t\t\t\tbreak;"; >- protected final String TEXT_356 = NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tif (result.getCommandList().size() != 1) {" + NL + "\t\t\t\t\t\t//Cannot create several connections at once." + NL + "\t\t\t\t\t\treturn "; >- protected final String TEXT_357 = ".INSTANCE;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\treturn new "; >- protected final String TEXT_358 = "("; >- protected final String TEXT_359 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);" + NL + "\t\t\t\t}"; >- protected final String TEXT_360 = NL + "\t\t\t\treturn "; >- protected final String TEXT_361 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t});"; >- protected final String TEXT_362 = NL + "\t\t//This edit part understands the direct edit request and delegates it to the appropriate label, so no command is needed here." + NL + "\t\tinstallEditPolicy("; >- protected final String TEXT_363 = ".DIRECT_EDIT_ROLE, new "; >- protected final String TEXT_364 = "() {" + NL + "\t\t\tprotected void showCurrentEditValue("; >- protected final String TEXT_365 = " request) {" + NL + "\t\t\t}" + NL + "\t\t\tprotected "; >- protected final String TEXT_366 = " getDirectEditCommand("; >- protected final String TEXT_367 = " request) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t});"; >- protected final String TEXT_368 = NL + "\t\tinstallNotationModelRefresher();"; >- protected final String TEXT_369 = NL + "\t\tinstallLinkNotationModelRefresher();"; >- protected final String TEXT_370 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; >- protected final String TEXT_371 = " createFigure() {" + NL + "\t\t"; >- protected final String TEXT_372 = " invisibleRectangle = new "; >- protected final String TEXT_373 = "();" + NL + "\t\tinvisibleRectangle.setLayoutManager(new "; >- protected final String TEXT_374 = "());" + NL + "\t\t"; >- protected final String TEXT_375 = " shape = createNodeShape();" + NL + "\t\tinvisibleRectangle.add(shape);" + NL + "\t\tcontentPane = setupContentPane(shape);"; >- protected final String TEXT_376 = NL + "\t\tchildNodesPane = createChildNodesPane();" + NL + "\t\tshape.add(childNodesPane);"; >- protected final String TEXT_377 = NL + NL + "\t\t"; >- protected final String TEXT_378 = " decorationShape = createDecorationPane();" + NL + "\t\tif (decorationShape != null) {" + NL + "\t\t\tinvisibleRectangle.add(decorationShape);" + NL + "\t\t}" + NL + "" + NL + "\t\treturn invisibleRectangle;" + NL + "\t}" + NL; >- protected final String TEXT_379 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; >- protected final String TEXT_380 = " createChildNodesPane() {" + NL + "\t\t"; >- protected final String TEXT_381 = " result = new "; >- protected final String TEXT_382 = "();" + NL + "\t\tsetupContentPane(result);" + NL + "\t\treturn result;" + NL + "\t}"; >- protected final String TEXT_383 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; >- protected final String TEXT_384 = " createNodeShape() {"; >- protected final String TEXT_385 = NL + "\t\tprimaryShape = new "; >- protected final String TEXT_386 = "()"; >- protected final String TEXT_387 = " {" + NL + "\t\t\tprotected boolean useLocalCoordinates() {" + NL + "\t\t\t\treturn true;" + NL + "\t\t\t}" + NL + "\t\t}"; >- protected final String TEXT_388 = ";"; >- protected final String TEXT_389 = NL + "\t\tprimaryShape = "; >- protected final String TEXT_390 = ";"; >- protected final String TEXT_391 = NL + "\t\t"; >- protected final String TEXT_392 = " figure = new "; >- protected final String TEXT_393 = "();"; >- protected final String TEXT_394 = NL + " \t\tfigure.setUseLocalCoordinates(true);"; >- protected final String TEXT_395 = NL + " \t\tprimaryShape = figure;"; >- protected final String TEXT_396 = NL + "\t\treturn primaryShape;" + NL + "\t}"; >- protected final String TEXT_397 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; >- protected final String TEXT_398 = " getPrimaryShape() {" + NL + "\t\treturn ("; >- protected final String TEXT_399 = ") primaryShape;" + NL + "\t}"; >- protected final String TEXT_400 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_401 = " createDecorationPane() {" + NL + "\t\t"; >- protected final String TEXT_402 = " view = ("; >- protected final String TEXT_403 = ") getModel();" + NL + "\t\t"; >- protected final String TEXT_404 = " annotation = view.getEAnnotation(\"Shortcut\"); //$NON-NLS-1$" + NL + "\t\tif (annotation == null) {" + NL + "\t\t\treturn null;" + NL + "\t\t}" + NL + "\t\t" + NL + "\t\t"; >- protected final String TEXT_405 = " decorationPane = new "; >- protected final String TEXT_406 = "();" + NL + "\t\tdecorationPane.setLayoutManager(new "; >- protected final String TEXT_407 = "());" + NL + "" + NL + "\t\t"; >- protected final String TEXT_408 = " imageFigure = new "; >- protected final String TEXT_409 = "("; >- protected final String TEXT_410 = ".getInstance().getBundledImage(\"icons/shortcut.gif\"), "; >- protected final String TEXT_411 = ".EAST);" + NL + "\t\tdecorationPane.add(imageFigure, "; >- protected final String TEXT_412 = ".BOTTOM);" + NL + " \t\treturn decorationPane;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Default implementation treats passed figure as content pane." + NL + "\t * Respects layout one may have set for generated figure." + NL + "\t * @param nodeShape instance of generated figure class" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; >- protected final String TEXT_413 = " setupContentPane("; >- protected final String TEXT_414 = " nodeShape) {" + NL + "\t\tif (nodeShape.getLayoutManager() == null) {"; >- protected final String TEXT_415 = NL + "\t\t\t"; >- protected final String TEXT_416 = " layout = new "; >- protected final String TEXT_417 = "();" + NL + "\t\t\tlayout.setSpacing(5);" + NL + "\t\t\tnodeShape.setLayoutManager(layout);"; >- protected final String TEXT_418 = NL + "\t\tnodeShape.setLayoutManager(new "; >- protected final String TEXT_419 = "() {" + NL + "" + NL + "\t\t\tpublic Object getConstraint("; >- protected final String TEXT_420 = " figure) {" + NL + "\t\t\t\tObject result = constraints.get(figure);" + NL + "\t\t\t\tif (result == null) {" + NL + "\t\t\t\t\tresult = new "; >- protected final String TEXT_421 = "(0, 0, -1, -1);" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn result;" + NL + "\t\t\t}" + NL + "\t\t});"; >- protected final String TEXT_422 = NL + "\t\t}" + NL + "\t\treturn nodeShape; // use nodeShape itself as contentPane" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; >- protected final String TEXT_423 = " getContentPane() {" + NL + "\t\tif (contentPane == null) {" + NL + "\t\t\treturn super.getContentPane();" + NL + "\t\t}" + NL + "\t\treturn contentPane;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; >- protected final String TEXT_424 = " getDiagramNode() {" + NL + "\t\treturn ("; >- protected final String TEXT_425 = ") getModel();" + NL + "\t}" + NL; >- protected final String TEXT_426 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean addFixedChild("; >- protected final String TEXT_427 = " childEditPart) {"; >- protected final String TEXT_428 = NL + "\t\tif (childEditPart instanceof "; >- protected final String TEXT_429 = ") {" + NL + "\t\t\t(("; >- protected final String TEXT_430 = ") childEditPart)."; >- protected final String TEXT_431 = "(getPrimaryShape()."; >- protected final String TEXT_432 = "());" + NL + "\t\t\treturn true;" + NL + "\t\t}"; >- protected final String TEXT_433 = NL + "\t\tif (childEditPart instanceof "; >- protected final String TEXT_434 = ") {" + NL + "\t\t\t"; >- protected final String TEXT_435 = " pane = getPrimaryShape()."; >- protected final String TEXT_436 = "();" + NL + "\t\t\tsetupContentPane(pane); // FIXME each comparment should handle his content pane in his own way " + NL + "\t\t\tpane.add((("; >- protected final String TEXT_437 = ")childEditPart).getFigure());" + NL + "\t\t\treturn true;" + NL + "\t\t}\t"; >- protected final String TEXT_438 = NL + "\t\treturn false;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean removeFixedChild(EditPart childEditPart) {"; >- protected final String TEXT_439 = "\t\t" + NL + "\t\tif (childEditPart instanceof "; >- protected final String TEXT_440 = ") {" + NL + "\t\t\t"; >- protected final String TEXT_441 = " pane = getPrimaryShape()."; >- protected final String TEXT_442 = "();" + NL + "\t\t\tpane.remove((("; >- protected final String TEXT_443 = ")childEditPart).getFigure());" + NL + "\t\t\treturn true;" + NL + "\t\t}\t"; >- protected final String TEXT_444 = NL + "\t\treturn false;" + NL + "\t}"; >- protected final String TEXT_445 = NL + NL + "\t/**" + NL + "\t * Returns the label which should be direct-edited by default." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_446 = " getPrimaryLabelEditPart() {"; >- protected final String TEXT_447 = NL + "\t\tfor("; >- protected final String TEXT_448 = " it = getDiagramNode().getChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t"; >- protected final String TEXT_449 = " nextChild = ("; >- protected final String TEXT_450 = ")it.next();" + NL + "\t\t\tif ("; >- protected final String TEXT_451 = ".getVisualID(nextChild) == "; >- protected final String TEXT_452 = ".VISUAL_ID) {" + NL + "\t\t\t\treturn ("; >- protected final String TEXT_453 = ") getViewer().getEditPartRegistry().get(nextChild);" + NL + "\t\t\t}" + NL + "\t\t}"; >- protected final String TEXT_454 = NL + "\t\treturn null;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void performRequest("; >- protected final String TEXT_455 = " req) {" + NL + "\t\tif ("; >- protected final String TEXT_456 = ".REQ_DIRECT_EDIT == req.getType()) {" + NL + "\t\t\t"; >- protected final String TEXT_457 = " labelToEdit;" + NL + "\t\t\tif (req instanceof "; >- protected final String TEXT_458 = ") {" + NL + "\t\t\t\tlabelToEdit = getLabelEditPart(("; >- protected final String TEXT_459 = ")req);" + NL + "\t\t\t} else {" + NL + "\t\t\t\tlabelToEdit = getPrimaryLabelEditPart();" + NL + "\t\t\t}" + NL + "\t\t\tif (labelToEdit != null) {" + NL + "\t\t\t\tlabelToEdit.performRequest(req);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_460 = " getLabelEditPart("; >- protected final String TEXT_461 = " req) {" + NL + "\t\t"; >- protected final String TEXT_462 = " result = getViewer().findObjectAt(req.getLocation());" + NL + "\t\tif (result != null) {" + NL + "\t\t\t"; >- protected final String TEXT_463 = " view = ("; >- protected final String TEXT_464 = ") result.getModel();" + NL + "\t\t\tif (getDiagramNode().getChildren().contains(view)) {" + NL + "\t\t\t\tint visualId = "; >- protected final String TEXT_465 = ".getVisualID(view);" + NL + "\t\t\t\tswitch (visualId) {"; >- protected final String TEXT_466 = NL + "\t\t\t\tcase "; >- protected final String TEXT_467 = ".VISUAL_ID:" + NL + "\t\t\t\t\treturn result;"; >- protected final String TEXT_468 = NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn getPrimaryLabelEditPart();" + NL + "\t}" + NL; >- protected final String TEXT_469 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean isExternalLabel("; >- protected final String TEXT_470 = " childEditPart) {"; >- protected final String TEXT_471 = NL + "\t\tif (childEditPart instanceof "; >- protected final String TEXT_472 = ") {" + NL + "\t\t\treturn true;" + NL + "\t\t}"; >- protected final String TEXT_473 = NL + "\t\treturn false;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; >- protected final String TEXT_474 = " getExternalLabelsContainer() {" + NL + "\t\t"; >- protected final String TEXT_475 = " root = ("; >- protected final String TEXT_476 = ") getRoot();" + NL + "\t\treturn root.getLayer("; >- protected final String TEXT_477 = ".EXTERNAL_NODE_LABELS_LAYER);" + NL + "\t}" + NL; >- protected final String TEXT_478 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean isDirectChild("; >- protected final String TEXT_479 = " childEditPart) {"; >- protected final String TEXT_480 = NL + "\t\tif (childEditPart instanceof "; >- protected final String TEXT_481 = ") {" + NL + "\t\t\treturn true;" + NL + "\t\t}"; >- protected final String TEXT_482 = NL + "\t\treturn false;" + NL + "\t}"; >- protected final String TEXT_483 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void addChildVisual("; >- protected final String TEXT_484 = " childEditPart, int index) {"; >- protected final String TEXT_485 = NL + "\t\tif (isExternalLabel(childEditPart)) {" + NL + "\t\t\t"; >- protected final String TEXT_486 = " labelFigure = (("; >- protected final String TEXT_487 = ") childEditPart).getFigure();" + NL + "\t\t\tgetExternalLabelsContainer().add(labelFigure);" + NL + "\t\t\treturn;" + NL + "\t\t}"; >- protected final String TEXT_488 = NL + "\t\tif (addFixedChild(childEditPart)) {" + NL + "\t\t\treturn;" + NL + "\t\t}"; >- protected final String TEXT_489 = NL + "\t\tif (isDirectChild(childEditPart)) {" + NL + "\t\t\t"; >- protected final String TEXT_490 = " childFigure = (("; >- protected final String TEXT_491 = ") childEditPart).getFigure();" + NL + "\t\t\tchildNodesPane.add(childFigure);" + NL + "\t\t\treturn;" + NL + "\t\t}"; >- protected final String TEXT_492 = NL + "\t\tsuper.addChildVisual(childEditPart, -1);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void removeChildVisual("; >- protected final String TEXT_493 = " childEditPart) {"; >- protected final String TEXT_494 = NL + "\t\tif (isExternalLabel(childEditPart)) {" + NL + "\t\t\t"; >- protected final String TEXT_495 = " labelFigure = (("; >- protected final String TEXT_496 = ") childEditPart).getFigure();" + NL + "\t\t\tgetExternalLabelsContainer().remove(labelFigure);" + NL + "\t\t\treturn;" + NL + "\t\t}"; >- protected final String TEXT_497 = NL + "\t\tif (removeFixedChild(childEditPart)){" + NL + "\t\t\treturn;" + NL + "\t\t}"; >- protected final String TEXT_498 = NL + "\t\tif (isDirectChild(childEditPart)) {" + NL + "\t\t\t"; >- protected final String TEXT_499 = " childFigure = (("; >- protected final String TEXT_500 = ") childEditPart).getFigure();" + NL + "\t\t\tchildNodesPane.remove(childFigure);" + NL + "\t\t\treturn;" + NL + "\t\t}"; >- protected final String TEXT_501 = NL + "\t\tsuper.removeChildVisual(childEditPart);" + NL + "\t}"; >- protected final String TEXT_502 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void removeNotify() {" + NL + "\t\tfor ("; >- protected final String TEXT_503 = " it = getChildren().iterator(); it.hasNext();) {" + NL + "\t\t\t"; >- protected final String TEXT_504 = " childEditPart = ("; >- protected final String TEXT_505 = ") it.next();" + NL + "\t\t\tif (isExternalLabel(childEditPart)) {" + NL + "\t\t\t\tIFigure labelFigure = (("; >- protected final String TEXT_506 = ") childEditPart).getFigure();" + NL + "\t\t\t\tgetExternalLabelsContainer().remove(labelFigure);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\tsuper.removeNotify();" + NL + "\t}"; >- protected final String TEXT_507 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisuals() {" + NL + "\t\tsuper.refreshVisuals();" + NL + "\t\trefreshBounds();" + NL + "\t\trefreshBackgroundColor();" + NL + "\t\trefreshForegroundColor();" + NL + "\t\trefreshFont();" + NL + "\t\trefreshVisibility();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisibility() {" + NL + "\t\tboolean isVisible = getDiagramNode().isVisible();" + NL + "\t\tboolean wasVisible = getFigure().isVisible();" + NL + "\t\tif (isVisible == wasVisible) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\tif (!isVisible && (getSelected() != SELECTED_NONE)) {" + NL + "\t\t\tgetViewer().deselect(this);" + NL + "\t\t}" + NL + "" + NL + "\t\tgetFigure().setVisible(isVisible);" + NL + "\t\tgetFigure().revalidate();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshBounds() {" + NL + "\t\t"; >- protected final String TEXT_508 = " node = getDiagramNode();" + NL + "\t\tif (node.getLayoutConstraint() == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\tassert node.getLayoutConstraint() instanceof "; >- protected final String TEXT_509 = ";" + NL + "\t\t"; >- protected final String TEXT_510 = " bounds = ("; >- protected final String TEXT_511 = ") node.getLayoutConstraint();" + NL + "\t\tint x = bounds.getX();" + NL + "\t\tint y = bounds.getY();" + NL + "\t\tint width = bounds.getWidth();" + NL + "\t\tint height = bounds.getHeight();" + NL + "\t\tif (width < 0) {" + NL + "\t\t\tx -= width;" + NL + "\t\t\twidth = -width;" + NL + "\t\t}" + NL + "\t\tif (height < 0) {" + NL + "\t\t\ty -= height;" + NL + "\t\t\theight = -height;" + NL + "\t\t}" + NL + "\t\t(("; >- protected final String TEXT_512 = ") getParent()).setLayoutConstraint(this, getFigure(), " + NL + "\t\t\tnew "; >- protected final String TEXT_513 = "(x, y, width, height));" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; >- protected final String TEXT_514 = " getModelChildren() {" + NL + "\t\treturn getDiagramNode().getVisibleChildren();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; >- protected final String TEXT_515 = " getModelSourceConnections() {" + NL + "\t\treturn getDiagramNode().getSourceEdges();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; >- protected final String TEXT_516 = " getModelTargetConnections() {" + NL + "\t\treturn getDiagramNode().getTargetEdges();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; >- protected final String TEXT_517 = " getSourceConnectionAnchor("; >- protected final String TEXT_518 = " connection) {" + NL + "\t\treturn new "; >- protected final String TEXT_519 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; >- protected final String TEXT_520 = " getSourceConnectionAnchor("; >- protected final String TEXT_521 = " request) {" + NL + "\t\treturn new "; >- protected final String TEXT_522 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; >- protected final String TEXT_523 = " getTargetConnectionAnchor("; >- protected final String TEXT_524 = " connection) {" + NL + "\t\treturn new "; >- protected final String TEXT_525 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; >- protected final String TEXT_526 = " getTargetConnectionAnchor("; >- protected final String TEXT_527 = " request) {" + NL + "\t\treturn new "; >- protected final String TEXT_528 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Object getAdapter(Class key) {" + NL + "\t\tif ("; >- protected final String TEXT_529 = ".class == key) {" + NL + "\t\t\treturn getTreeEditPartAdapter();" + NL + "\t\t}"; >- protected final String TEXT_530 = NL + "\t\treturn super.getAdapter(key);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate TreeEditPartAdapter myTreeEditPartAdapter;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate TreeEditPartAdapter getTreeEditPartAdapter() {" + NL + "\t\tif (myTreeEditPartAdapter == null) {" + NL + "\t\t\tmyTreeEditPartAdapter = new TreeEditPartAdapter();" + NL + "\t\t}" + NL + "\t\treturn myTreeEditPartAdapter;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void activate() {" + NL + "\t\tsuper.activate();" + NL + "\t\tgetDiagramNode().getElement().eAdapters().add(domainModelRefresher);"; >- protected final String TEXT_531 = NL + "\t\tinstallNotationModelRefresher();"; >- protected final String TEXT_532 = NL + "\t\tinstallLinkNotationModelRefresher();"; >- protected final String TEXT_533 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void deactivate() {"; >- protected final String TEXT_534 = NL + "\t\tuninstallLinkNotationModelRefresher();"; >- protected final String TEXT_535 = NL + "\t\tuninstallNotationModelRefresher();"; >- protected final String TEXT_536 = NL + "\t\tgetDiagramNode().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\tsuper.deactivate();" + NL + "\t}"; >- protected final String TEXT_537 = NL; >- protected final String TEXT_538 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void installNotationModelRefresher() {" + NL + "\t\t"; >- protected final String TEXT_539 = " refresher = getNotationModelRefresher();" + NL + "\t\tif (refresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >- protected final String TEXT_540 = " domainModelEditDomain = "; >- protected final String TEXT_541 = ".getEditingDomain("; >- protected final String TEXT_542 = ".getElement());" + NL + "\t\trefresher.install(domainModelEditDomain);" + NL + "\t\trefreshNotationModel();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void uninstallNotationModelRefresher() {" + NL + "\t\tgetNotationModelRefresher().uninstall();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_543 = " notationModelRefresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_544 = " getNotationModelRefresher() {" + NL + "\t\tif (notationModelRefresher == null) {" + NL + "\t\t\tnotationModelRefresher = new NotationModelRefresher();" + NL + "\t\t}" + NL + "\t\treturn notationModelRefresher;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class NotationModelRefresher extends "; >- protected final String TEXT_545 = " {"; >- protected final String TEXT_546 = NL + NL + "\t\t/**" + NL + "\t\t * NB: Children of this element are selected based on constraint declared in "; >- protected final String TEXT_547 = ". " + NL + "\t\t * Since no assumptions may be made concerning the runtime behavior of the constraint, <b>any</b> non-touch notification may result in " + NL + "\t\t * notational model having to be updated." + NL + "\t\t * <p/>User is encouraged to change implementation of this method to provide an optimization if it is safe to assume that not all notifications" + NL + "\t\t * result in such an update." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >- protected final String TEXT_548 = " getConstrainedChildrenFilter() {" + NL + "\t\t\treturn "; >- protected final String TEXT_549 = ".NOT_TOUCH;" + NL + "\t\t}"; >- protected final String TEXT_550 = NL + NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly affect the notational model" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_551 = " createFilter() {"; >- protected final String TEXT_552 = NL + "\t\t\t"; >- protected final String TEXT_553 = " filter = "; >- protected final String TEXT_554 = ".createFeatureFilter("; >- protected final String TEXT_555 = ".eINSTANCE.get"; >- protected final String TEXT_556 = "());"; >- protected final String TEXT_557 = NL + "\t\t\tfilter = filter.or("; >- protected final String TEXT_558 = ".createFeatureFilter("; >- protected final String TEXT_559 = ".eINSTANCE.get"; >- protected final String TEXT_560 = "()));"; >- protected final String TEXT_561 = NL + "\t\t\tfilter = filter.and("; >- protected final String TEXT_562 = ".createNotifierFilter("; >- protected final String TEXT_563 = ".getElement()));"; >- protected final String TEXT_564 = NL + "\t\t\t"; >- protected final String TEXT_565 = " filter = "; >- protected final String TEXT_566 = ".createNotifierFilter("; >- protected final String TEXT_567 = ".getElement());"; >- protected final String TEXT_568 = NL + "\t\t\tfilter = getConstrainedChildrenFilter().or(filter);"; >- protected final String TEXT_569 = NL + "\t\t\t"; >- protected final String TEXT_570 = " filter = getConstrainedChildrenFilter();"; >- protected final String TEXT_571 = NL + "\t\t\t"; >- protected final String TEXT_572 = " filter = "; >- protected final String TEXT_573 = ".NOT_TOUCH;"; >- protected final String TEXT_574 = NL + "\t\t\treturn filter;"; >- protected final String TEXT_575 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_576 = " getCreateNotationalElementCommand("; >- protected final String TEXT_577 = " descriptor) {"; >- protected final String TEXT_578 = NL; >- protected final String TEXT_579 = "\t\t\t"; >- protected final String TEXT_580 = " domainElement = descriptor.getElement();" + NL + "\t\t\tint nodeVisualID = descriptor.getVisualID();" + NL + "\t\t\tswitch (nodeVisualID) {"; >- protected final String TEXT_581 = NL + "\t\t\tcase "; >- protected final String TEXT_582 = ".VISUAL_ID:" + NL + "\t\t\t\tif (domainElement instanceof "; >- protected final String TEXT_583 = ") {" + NL + "\t\t\t\t\treturn new "; >- protected final String TEXT_584 = "("; >- protected final String TEXT_585 = ", domainElement, "; >- protected final String TEXT_586 = "new "; >- protected final String TEXT_587 = "(0, 0, "; >- protected final String TEXT_588 = ", "; >- protected final String TEXT_589 = ")"; >- protected final String TEXT_590 = NL + "null"; >- protected final String TEXT_591 = ", "; >- protected final String TEXT_592 = ".INSTANCE);" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn null;"; >- protected final String TEXT_593 = NL + "\t\t\tdefault:" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}"; >- protected final String TEXT_594 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_595 = " getSemanticChildNodes() {"; >- protected final String TEXT_596 = NL; >- protected final String TEXT_597 = NL + "\treturn "; >- protected final String TEXT_598 = ".EMPTY_LIST;"; >- protected final String TEXT_599 = NL + "\t"; >- protected final String TEXT_600 = " result = new "; >- protected final String TEXT_601 = "();"; >- protected final String TEXT_602 = NL + "\t"; >- protected final String TEXT_603 = " viewObject = "; >- protected final String TEXT_604 = ";" + NL + "\t"; >- protected final String TEXT_605 = " modelObject = viewObject.getElement();" + NL + "\t"; >- protected final String TEXT_606 = " nextValue;" + NL + "\tint nodeVID;"; >- protected final String TEXT_607 = NL + "\tfor("; >- protected final String TEXT_608 = " it = "; >- protected final String TEXT_609 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = ("; >- protected final String TEXT_610 = ") it.next();"; >- protected final String TEXT_611 = NL + "\tnextValue = ("; >- protected final String TEXT_612 = ")"; >- protected final String TEXT_613 = ";"; >- protected final String TEXT_614 = NL + "\tnodeVID = "; >- protected final String TEXT_615 = ".INSTANCE.getNodeVisualID(viewObject, nextValue);"; >- protected final String TEXT_616 = NL + "\tswitch (nodeVID) {"; >- protected final String TEXT_617 = NL + "\tcase "; >- protected final String TEXT_618 = ".VISUAL_ID: {"; >- protected final String TEXT_619 = NL + "\tif ("; >- protected final String TEXT_620 = ".VISUAL_ID == nodeVID) {"; >- protected final String TEXT_621 = NL + "\t\tresult.add(new "; >- protected final String TEXT_622 = "(nextValue, nodeVID));"; >- protected final String TEXT_623 = NL + "\t\tbreak;" + NL + "\t\t}"; >- protected final String TEXT_624 = NL + "\t\t}"; >- protected final String TEXT_625 = NL + "\t}"; >- protected final String TEXT_626 = NL + "\t}"; >- protected final String TEXT_627 = NL + "\treturn result;"; >- protected final String TEXT_628 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Returns whether a notational element should be created for the given domain element. " + NL + "\t\t * The generated code always returns "; >- protected final String TEXT_629 = ". " + NL + "\t\t * User can change implementation of this method to handle a more sophisticated logic." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean shouldCreateView("; >- protected final String TEXT_630 = " descriptor) {" + NL + "\t\t\treturn "; >- protected final String TEXT_631 = ";" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_632 = " getHost() {" + NL + "\t\t\treturn "; >- protected final String TEXT_633 = ";" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshNotationModel() {" + NL + "\t\t"; >- protected final String TEXT_634 = " childRefresher = getNotationModelRefresher();" + NL + "\t\tif (!childRefresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >- protected final String TEXT_635 = " command = childRefresher.buildRefreshNotationModelCommand();" + NL + "\t\tif (command == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >- protected final String TEXT_636 = " domainModelEditDomain = "; >- protected final String TEXT_637 = ".getEditingDomain("; >- protected final String TEXT_638 = ".getElement());" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(new "; >- protected final String TEXT_639 = "(domainModelEditDomain, command));" + NL + "\t}" + NL; >- protected final String TEXT_640 = NL; >- protected final String TEXT_641 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void installLinkNotationModelRefresher() {" + NL + "\t\tLinkNotationModelRefresher refresher = getLinkNotationModelRefresher();" + NL + "\t\tif (refresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >- protected final String TEXT_642 = " domainModelEditDomain = "; >- protected final String TEXT_643 = ".getEditingDomain("; >- protected final String TEXT_644 = ".getElement());" + NL + "\t\trefresher.install(domainModelEditDomain);" + NL + "\t\trefreshLinkNotationModel();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void uninstallLinkNotationModelRefresher() {" + NL + "\t\tgetLinkNotationModelRefresher().uninstall();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate LinkNotationModelRefresher linkNotationModelRefresher;" + NL + "" + NL + "\t/**" + NL + "\t * Service to find a notational element that corresponds to the given underlying domain element. " + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_645 = " viewService;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_646 = " getViewService() {" + NL + "\t\tif (viewService == null) {" + NL + "\t\t\tviewService = new "; >- protected final String TEXT_647 = "(getViewer());" + NL + "\t\t}" + NL + "\t\treturn viewService;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate LinkNotationModelRefresher getLinkNotationModelRefresher() {" + NL + "\t\tif (linkNotationModelRefresher == null) {" + NL + "\t\t\tlinkNotationModelRefresher = new LinkNotationModelRefresher(getViewService());" + NL + "\t\t}" + NL + "\t\treturn linkNotationModelRefresher;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class LinkNotationModelRefresher extends "; >- protected final String TEXT_648 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic LinkNotationModelRefresher("; >- protected final String TEXT_649 = " viewService) {" + NL + "\t\t\tsuper(viewService);" + NL + "\t\t}"; >- protected final String TEXT_650 = NL + NL + "\t\t/**" + NL + "\t\t * NB: Child links of this element are selected based on constraint declared in "; >- protected final String TEXT_651 = ". " + NL + "\t\t * Since no assumptions may be made concerning the runtime behavior of the constraint, <b>any</b> non-touch notification may result in " + NL + "\t\t * notational model having to be updated." + NL + "\t\t * <p/>User is encouraged to change implementation of this method to provide an optimization if it is safe to assume that not all notifications" + NL + "\t\t * result in such an update." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >- protected final String TEXT_652 = " getConstrainedChildLinksFilter() {" + NL + "\t\t\treturn "; >- protected final String TEXT_653 = ".NOT_TOUCH;" + NL + "\t\t}"; >- protected final String TEXT_654 = NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly result in uncontained links. " + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >- protected final String TEXT_655 = " createUncontainedLinksFilter() {" + NL + "\t\t\treturn "; >- protected final String TEXT_656 = ".createEventTypeFilter("; >- protected final String TEXT_657 = ".SET).or(" + NL + "\t\t\t\t"; >- protected final String TEXT_658 = ".createEventTypeFilter("; >- protected final String TEXT_659 = ".UNSET).or(" + NL + "\t\t\t\t"; >- protected final String TEXT_660 = ".createEventTypeFilter("; >- protected final String TEXT_661 = ".REMOVE).or(" + NL + "\t\t\t\t"; >- protected final String TEXT_662 = ".createEventTypeFilter("; >- protected final String TEXT_663 = ".REMOVE_MANY)" + NL + "\t\t\t)));" + NL + "\t\t}"; >- protected final String TEXT_664 = NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly affect the notational model" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_665 = " createFilter() {"; >- protected final String TEXT_666 = NL; >- protected final String TEXT_667 = NL + "\t\t\t"; >- protected final String TEXT_668 = " filter = "; >- protected final String TEXT_669 = ".createFeatureFilter("; >- protected final String TEXT_670 = ".eINSTANCE.get"; >- protected final String TEXT_671 = "());"; >- protected final String TEXT_672 = NL + "\t\t\tfilter = filter.or("; >- protected final String TEXT_673 = ".createFeatureFilter("; >- protected final String TEXT_674 = ".eINSTANCE.get"; >- protected final String TEXT_675 = "()));"; >- protected final String TEXT_676 = NL; >- protected final String TEXT_677 = NL + "\t\t\t"; >- protected final String TEXT_678 = " filter = "; >- protected final String TEXT_679 = ".createFeatureFilter("; >- protected final String TEXT_680 = ".eINSTANCE.get"; >- protected final String TEXT_681 = "());"; >- protected final String TEXT_682 = NL + "\t\t\tfilter = filter.or("; >- protected final String TEXT_683 = ".createFeatureFilter("; >- protected final String TEXT_684 = ".eINSTANCE.get"; >- protected final String TEXT_685 = "()));"; >- protected final String TEXT_686 = NL; >- protected final String TEXT_687 = NL + "\t\t\t"; >- protected final String TEXT_688 = " filter = "; >- protected final String TEXT_689 = ".createFeatureFilter("; >- protected final String TEXT_690 = ".eINSTANCE.get"; >- protected final String TEXT_691 = "());"; >- protected final String TEXT_692 = NL + "\t\t\tfilter = filter.or("; >- protected final String TEXT_693 = ".createFeatureFilter("; >- protected final String TEXT_694 = ".eINSTANCE.get"; >- protected final String TEXT_695 = "()));"; >- protected final String TEXT_696 = NL; >- protected final String TEXT_697 = NL + "\t\t\t"; >- protected final String TEXT_698 = " filter = "; >- protected final String TEXT_699 = ".createFeatureFilter("; >- protected final String TEXT_700 = ".eINSTANCE.get"; >- protected final String TEXT_701 = "());"; >- protected final String TEXT_702 = NL + "\t\t\tfilter = filter.or("; >- protected final String TEXT_703 = ".createFeatureFilter("; >- protected final String TEXT_704 = ".eINSTANCE.get"; >- protected final String TEXT_705 = "()));"; >- protected final String TEXT_706 = NL + "\t\t\tfilter = getConstrainedChildLinksFilter().or(filter);"; >- protected final String TEXT_707 = NL + "\t\t\t"; >- protected final String TEXT_708 = " filter = getConstrainedChildLinksFilter();"; >- protected final String TEXT_709 = NL + "\t\t\tfilter = filter.or(createUncontainedLinksFilter());"; >- protected final String TEXT_710 = NL + "\t\t\t"; >- protected final String TEXT_711 = " filter = createUncontainedLinksFilter();"; >- protected final String TEXT_712 = NL + "\t\t\t"; >- protected final String TEXT_713 = " filter = "; >- protected final String TEXT_714 = ".NOT_TOUCH;"; >- protected final String TEXT_715 = NL + "\t\t\treturn filter;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t \t * @generated" + NL + "\t \t */" + NL + "\t\tprotected "; >- protected final String TEXT_716 = " getCreateNotationalElementCommand("; >- protected final String TEXT_717 = " descriptor) {" + NL + "\t\t\t"; >- protected final String TEXT_718 = " linkDescriptor = ("; >- protected final String TEXT_719 = ") descriptor;"; >- protected final String TEXT_720 = NL; >- protected final String TEXT_721 = "\t\t\t"; >- protected final String TEXT_722 = " sourceView = getViewService().findView(linkDescriptor.getSource());" + NL + "\t\t\t"; >- protected final String TEXT_723 = " targetView = getViewService().findView(linkDescriptor.getDestination());" + NL + "\t\t\t"; >- protected final String TEXT_724 = " decorator = null;" + NL + "\t\t\tif (sourceView == null || targetView == null) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tswitch (linkDescriptor.getVisualID()) {"; >- protected final String TEXT_725 = NL + "\t\t\tcase "; >- protected final String TEXT_726 = ".VISUAL_ID:" + NL + "\t\t\t\tif (linkDescriptor.getElement() instanceof "; >- protected final String TEXT_727 = ") {" + NL + "\t\t\t\t\tdecorator = "; >- protected final String TEXT_728 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;"; >- protected final String TEXT_729 = NL + "\t\t\tcase "; >- protected final String TEXT_730 = ".VISUAL_ID:" + NL + "\t\t\t\tif (linkDescriptor.getElement() == null) {" + NL + "\t\t\t\t\tdecorator = "; >- protected final String TEXT_731 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;"; >- protected final String TEXT_732 = NL + "\t\t\t}" + NL + "\t\t\tif (decorator == null) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\treturn new "; >- protected final String TEXT_733 = "("; >- protected final String TEXT_734 = ", linkDescriptor.getElement(), sourceView, targetView, decorator);"; >- protected final String TEXT_735 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_736 = " getSemanticChildLinks() {"; >- protected final String TEXT_737 = NL; >- protected final String TEXT_738 = "\t"; >- protected final String TEXT_739 = " result = new "; >- protected final String TEXT_740 = "();"; >- protected final String TEXT_741 = NL + "\t"; >- protected final String TEXT_742 = " modelObject = "; >- protected final String TEXT_743 = ".getElement();" + NL + "\t"; >- protected final String TEXT_744 = " nextValue;"; >- protected final String TEXT_745 = NL + "\tint linkVID;"; >- protected final String TEXT_746 = NL + "\tfor("; >- protected final String TEXT_747 = " it = "; >- protected final String TEXT_748 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = ("; >- protected final String TEXT_749 = ") it.next();"; >- protected final String TEXT_750 = NL + "\tnextValue = ("; >- protected final String TEXT_751 = ")"; >- protected final String TEXT_752 = ";"; >- protected final String TEXT_753 = NL + "\tlinkVID = "; >- protected final String TEXT_754 = ".INSTANCE.getLinkWithClassVisualID(nextValue);"; >- protected final String TEXT_755 = NL + "\tswitch (linkVID) {"; >- protected final String TEXT_756 = NL + "\tcase "; >- protected final String TEXT_757 = ".VISUAL_ID: {"; >- protected final String TEXT_758 = NL + "\tif ("; >- protected final String TEXT_759 = ".VISUAL_ID == linkVID) {"; >- protected final String TEXT_760 = NL + "\t\t"; >- protected final String TEXT_761 = " source = ("; >- protected final String TEXT_762 = ")"; >- protected final String TEXT_763 = ";"; >- protected final String TEXT_764 = NL + "\t\t"; >- protected final String TEXT_765 = " source = "; >- protected final String TEXT_766 = ".getElement();"; >- protected final String TEXT_767 = NL + "\t\t"; >- protected final String TEXT_768 = " target = ("; >- protected final String TEXT_769 = ")"; >- protected final String TEXT_770 = ";"; >- protected final String TEXT_771 = NL + "\t\t"; >- protected final String TEXT_772 = " target = "; >- protected final String TEXT_773 = ".getElement();"; >- protected final String TEXT_774 = NL + "\t\tif (source != null && target != null) {" + NL + "\t\t\tresult.add(new "; >- protected final String TEXT_775 = "(source, target, nextValue, linkVID));" + NL + "\t\t}"; >- protected final String TEXT_776 = NL + "\t\tbreak;" + NL + "\t}"; >- protected final String TEXT_777 = NL + "\t}"; >- protected final String TEXT_778 = NL + "\t}"; >- protected final String TEXT_779 = NL + "\t}"; >- protected final String TEXT_780 = NL + "\tfor("; >- protected final String TEXT_781 = " it = "; >- protected final String TEXT_782 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = ("; >- protected final String TEXT_783 = ") it.next();"; >- protected final String TEXT_784 = NL + "\tnextValue = ("; >- protected final String TEXT_785 = ")"; >- protected final String TEXT_786 = ";"; >- protected final String TEXT_787 = NL + "\tif (nextValue != null) {"; >- protected final String TEXT_788 = NL + "\t\tresult.add(new "; >- protected final String TEXT_789 = "(modelObject, nextValue, null, "; >- protected final String TEXT_790 = ".VISUAL_ID));"; >- protected final String TEXT_791 = NL + "\t}"; >- protected final String TEXT_792 = NL + "\t}"; >- protected final String TEXT_793 = NL + "\treturn result;"; >- protected final String TEXT_794 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_795 = " getNotationalChildLinks() {" + NL + "\t\t\t"; >- protected final String TEXT_796 = " result = new "; >- protected final String TEXT_797 = "();" + NL + "\t\t\t"; >- protected final String TEXT_798 = " allLinks = "; >- protected final String TEXT_799 = ".getEdges();" + NL + "\t\t\tfor("; >- protected final String TEXT_800 = " it = allLinks.iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t"; >- protected final String TEXT_801 = " next = ("; >- protected final String TEXT_802 = ") it.next();"; >- protected final String TEXT_803 = NL + "\t\t\t\tif (next.isSetElement() && next.getElement() != null && next.getElement().eResource() == null) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; >- protected final String TEXT_804 = " source = next.getSource();" + NL + "\t\t\t\tif (source == null || (source.isSetElement() && source.getElement() != null && source.getElement().eResource() == null)) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; >- protected final String TEXT_805 = " target = next.getTarget();" + NL + "\t\t\t\tif (target == null || (target.isSetElement() && target.getElement() != null && target.getElement().eResource() == null)) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}"; >- protected final String TEXT_806 = NL + "\t\t\t\tif (!next.isSetElement() || next.getElement() == null) {" + NL + "\t\t\t\t\tif (next.getSource() == "; >- protected final String TEXT_807 = ") {" + NL + "\t\t\t\t\t\tint linkVID = "; >- protected final String TEXT_808 = ".getVisualID(next);" + NL + "\t\t\t\t\t\tswitch (linkVID) {"; >- protected final String TEXT_809 = NL + "\t\t\t\t\t\tcase "; >- protected final String TEXT_810 = ".VISUAL_ID:"; >- protected final String TEXT_811 = NL + "\t\t\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}"; >- protected final String TEXT_812 = NL + "\t\t\t\t} else {"; >- protected final String TEXT_813 = NL + "\t\t\t\t}"; >- protected final String TEXT_814 = NL + "\t\t\t\tif (next.isSetElement() && next.getElement() != null) {"; >- protected final String TEXT_815 = NL + "\t\t\t\t\tif (next.getElement().eContainer() == "; >- protected final String TEXT_816 = ".getElement()) {" + NL + "\t\t\t\t\t\tint linkVID = "; >- protected final String TEXT_817 = ".getVisualID(next);" + NL + "\t\t\t\t\t\tswitch (linkVID) {"; >- protected final String TEXT_818 = NL + "\t\t\t\t\t\tcase "; >- protected final String TEXT_819 = ".VISUAL_ID:"; >- protected final String TEXT_820 = NL + "\t\t\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}"; >- protected final String TEXT_821 = NL + "\t\t\t}" + NL + "\t\t\treturn result;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Returns whether a notational edge should be created for the given domain element. " + NL + "\t\t * The generated code always returns "; >- protected final String TEXT_822 = ". " + NL + "\t\t * User can change implementation of this method to handle a more sophisticated logic." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean shouldCreateView("; >- protected final String TEXT_823 = " descriptor) {" + NL + "\t\t\treturn "; >- protected final String TEXT_824 = ";" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_825 = " getHost() {" + NL + "\t\t\treturn "; >- protected final String TEXT_826 = ";" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshLinkNotationModel() {" + NL + "\t\t"; >- protected final String TEXT_827 = " linkRefresher = getLinkNotationModelRefresher();" + NL + "\t\tif (!linkRefresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >- protected final String TEXT_828 = " command = linkRefresher.buildRefreshNotationModelCommand();" + NL + "\t\tif (command == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >- protected final String TEXT_829 = " domainModelEditDomain = "; >- protected final String TEXT_830 = ".getEditingDomain("; >- protected final String TEXT_831 = ".getElement());" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(new "; >- protected final String TEXT_832 = "(domainModelEditDomain, command));" + NL + "\t}"; >- protected final String TEXT_833 = NL; >- protected final String TEXT_834 = NL; >- protected final String TEXT_835 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_836 = " domainModelRefresher = new "; >- protected final String TEXT_837 = "(this);" + NL; >- protected final String TEXT_838 = NL; >- protected final String TEXT_839 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void addRefresher("; >- protected final String TEXT_840 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.addRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void removeRefresher("; >- protected final String TEXT_841 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.removeRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate CompositeRefresher getCompositeRefresher("; >- protected final String TEXT_842 = " feature) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\tRefresher refresher = (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t\tif (refresher instanceof CompositeRefresher) {" + NL + "\t\t\treturn (CompositeRefresher) refresher;" + NL + "\t\t}" + NL + "\t\tCompositeRefresher result = new CompositeRefresher();" + NL + "\t\tif (refresher != null) {" + NL + "\t\t\tresult.addRefresher(refresher);" + NL + "\t\t}" + NL + "\t\tstructuralFeatures2Refresher.put(feature, result);" + NL + "\t\treturn result;" + NL + "\t}" + NL; >- protected final String TEXT_843 = NL; >- protected final String TEXT_844 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshFont() {"; >- protected final String TEXT_845 = NL + "\t\t"; >- protected final String TEXT_846 = " style =" + NL + "\t\t\t("; >- protected final String TEXT_847 = ") "; >- protected final String TEXT_848 = ".getStyle(" + NL + "\t\t\t\t"; >- protected final String TEXT_849 = ".eINSTANCE.getFontStyle());" + NL + "\t\t"; >- protected final String TEXT_850 = " toDispose = createdFont;" + NL + "\t\tif (style != null) {" + NL + "\t\t\tString fontName = style.getFontName();" + NL + "\t\t\tint fontHeight = style.getFontHeight();" + NL + "\t\t\tint fontStyle = "; >- protected final String TEXT_851 = ".NORMAL;" + NL + "\t\t\tif (style.isBold()) {" + NL + "\t\t\t\tfontStyle |= "; >- protected final String TEXT_852 = ".BOLD;" + NL + "\t\t\t}" + NL + "\t\t\tif (style.isItalic()) {" + NL + "\t\t\t\tfontStyle |= "; >- protected final String TEXT_853 = ".ITALIC;" + NL + "\t\t\t}" + NL + "\t\t\t"; >- protected final String TEXT_854 = " currentFont = getFigure().getFont();" + NL + "\t\t\tif (currentFont != null) {" + NL + "\t\t\t\t"; >- protected final String TEXT_855 = " currentFontData = currentFont.getFontData()[0];" + NL + "\t\t\t\tif (currentFontData.getName().equals(fontName) && currentFontData.getHeight() == fontHeight && currentFontData.getStyle() == fontStyle) {" + NL + "\t\t\t\t\treturn;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\tcreatedFont = new "; >- protected final String TEXT_856 = "(null, fontName, fontHeight, fontStyle);" + NL + "\t\t\tgetFigure().setFont(createdFont);" + NL + "\t\t} else {" + NL + "\t\t\t//revert to the default font" + NL + "\t\t\tgetFigure().setFont(getViewer().getControl().getFont());" + NL + "\t\t\tcreatedFont = null;" + NL + "\t\t}" + NL + "\t\tif (toDispose != null) {" + NL + "\t\t\ttoDispose.dispose();" + NL + "\t\t}"; >- protected final String TEXT_857 = "\t" + NL + "\t}"; >- protected final String TEXT_858 = NL + NL + "\t/**" + NL + "\t * The font (created by {@link #refreshFont()}) currently assigned to the label (unless the default font is assigned)." + NL + "\t * Whenever another non-default font is assigned to it, it is safe to dispose the previous one." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_859 = " createdFont;"; >- protected final String TEXT_860 = "\t" + NL; >- protected final String TEXT_861 = NL; >- protected final String TEXT_862 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshForegroundColor() {" + NL + "\t\t"; >- protected final String TEXT_863 = " style = ("; >- protected final String TEXT_864 = ") "; >- protected final String TEXT_865 = ".getStyle("; >- protected final String TEXT_866 = ".eINSTANCE.getLineStyle());" + NL + "\t\t"; >- protected final String TEXT_867 = " toDispose = createdForegroundColor;" + NL + "\t\tif (style != null) {" + NL + "\t\t\tint foregroundColor = style.getLineColor();" + NL + "\t\t\tint red = foregroundColor & 0x000000FF;" + NL + "\t\t\tint green = (foregroundColor & 0x0000FF00) >> 8;" + NL + "\t\t\tint blue = (foregroundColor & 0x00FF0000) >> 16;" + NL + "\t\t\t"; >- protected final String TEXT_868 = " currentColor = getFigure().getForegroundColor();" + NL + "\t\t\tif (currentColor != null && currentColor.getRed() == red && currentColor.getGreen() == green && currentColor.getBlue() == blue) {" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tcreatedForegroundColor = new "; >- protected final String TEXT_869 = "(null, red, green, blue);" + NL + "\t\t\tgetFigure().setForegroundColor(createdForegroundColor);" + NL + "\t\t} else {" + NL + "\t\t\tgetFigure().setForegroundColor(getViewer().getControl().getForeground());" + NL + "\t\t\tcreatedForegroundColor = null;" + NL + "\t\t}" + NL + "\t\tif (toDispose != null) {" + NL + "\t\t\ttoDispose.dispose();" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * The color (created by {@link #refreshForegroundColor()}) currently assigned to the figure." + NL + "\t * Whenever another color is assigned to it, it is safe to dispose the previous one." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_870 = " createdForegroundColor;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshBackgroundColor() {" + NL + "\t\t"; >- protected final String TEXT_871 = " style = ("; >- protected final String TEXT_872 = ") "; >- protected final String TEXT_873 = ".getStyle("; >- protected final String TEXT_874 = ".eINSTANCE.getFillStyle());" + NL + "\t\t"; >- protected final String TEXT_875 = " toDispose = createdBackgroundColor;" + NL + "\t\tif (style != null) {" + NL + "\t\t\tint backgroundColor = style.getFillColor();" + NL + "\t\t\tint red = backgroundColor & 0x000000FF;" + NL + "\t\t\tint green = (backgroundColor & 0x0000FF00) >> 8;" + NL + "\t\t\tint blue = (backgroundColor & 0x00FF0000) >> 16;" + NL + "\t\t\t"; >- protected final String TEXT_876 = " currentColor = getFigure().getBackgroundColor();" + NL + "\t\t\tif (currentColor != null && currentColor.getRed() == red && currentColor.getGreen() == green && currentColor.getBlue() == blue) {" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tcreatedBackgroundColor = new "; >- protected final String TEXT_877 = "(null, red, green, blue);" + NL + "\t\t\tgetFigure().setBackgroundColor(createdBackgroundColor);" + NL + "\t\t} else {" + NL + "\t\t\tgetFigure().setBackgroundColor(getViewer().getControl().getBackground());" + NL + "\t\t}" + NL + "\t\tif (toDispose != null) {" + NL + "\t\t\ttoDispose.dispose();" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * The color (created by {@link #refreshBackgroundColor()}) currently assigned to the figure." + NL + "\t * Whenever another color is assigned to it, it is safe to dispose the previous one." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_878 = " createdBackgroundColor;" + NL; >- protected final String TEXT_879 = NL; >- protected final String TEXT_880 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_881 = " structuralFeatures2Refresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Refresher getRefresher("; >- protected final String TEXT_882 = " feature, "; >- protected final String TEXT_883 = " msg) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\treturn (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t}" + NL + "" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void createRefreshers() {" + NL + "\t\tstructuralFeatures2Refresher = new "; >- protected final String TEXT_884 = "();"; >- protected final String TEXT_885 = NL; >- protected final String TEXT_886 = "\t\tRefresher childrenRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshChildren();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; >- protected final String TEXT_887 = ".eINSTANCE.getView_PersistedChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; >- protected final String TEXT_888 = ".eINSTANCE.getView_TransientChildren(), childrenRefresher);"; >- protected final String TEXT_889 = NL; >- protected final String TEXT_890 = "\t\tRefresher boundsRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshBounds();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; >- protected final String TEXT_891 = ".eINSTANCE.getNode_LayoutConstraint(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; >- protected final String TEXT_892 = ".eINSTANCE.getSize_Width(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; >- protected final String TEXT_893 = ".eINSTANCE.getSize_Height(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; >- protected final String TEXT_894 = ".eINSTANCE.getLocation_X(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; >- protected final String TEXT_895 = ".eINSTANCE.getLocation_Y(), boundsRefresher);"; >- protected final String TEXT_896 = NL; >- protected final String TEXT_897 = "\t\tRefresher visibilityRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshVisibility();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; >- protected final String TEXT_898 = ".eINSTANCE.getView_Visible(), visibilityRefresher);"; >- protected final String TEXT_899 = NL; >- protected final String TEXT_900 = "\t\tRefresher sourceEdgesRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshSourceConnections();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; >- protected final String TEXT_901 = ".eINSTANCE.getView_SourceEdges(), sourceEdgesRefresher);"; >- protected final String TEXT_902 = NL; >- protected final String TEXT_903 = "\t\tRefresher targetEdgesRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshTargetConnections();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; >- protected final String TEXT_904 = ".eINSTANCE.getView_TargetEdges(), targetEdgesRefresher);"; >- protected final String TEXT_905 = NL; >- protected final String TEXT_906 = "\t\tRefresher fontRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshFont();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; >- protected final String TEXT_907 = ".eINSTANCE.getFontStyle_FontHeight(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; >- protected final String TEXT_908 = ".eINSTANCE.getFontStyle_FontName(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; >- protected final String TEXT_909 = ".eINSTANCE.getFontStyle_Bold(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; >- protected final String TEXT_910 = ".eINSTANCE.getFontStyle_Italic(), fontRefresher);" + NL + "\t\t"; >- protected final String TEXT_911 = NL; >- protected final String TEXT_912 = "\t\tRefresher backgroundColorRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshBackgroundColor();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; >- protected final String TEXT_913 = ".eINSTANCE.getFillStyle_FillColor(), backgroundColorRefresher);" + NL + "\t\tRefresher foregroundColorRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshForegroundColor();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; >- protected final String TEXT_914 = ".eINSTANCE.getLineStyle_LineColor(), foregroundColorRefresher);" + NL + "\t}" + NL; >- protected final String TEXT_915 = NL; >- protected final String TEXT_916 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_917 = "static "; >- protected final String TEXT_918 = "class Create"; >- protected final String TEXT_919 = "Command extends "; >- protected final String TEXT_920 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; >- protected final String TEXT_921 = " notationAddCommand;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Create"; >- protected final String TEXT_922 = "Command("; >- protected final String TEXT_923 = " parent, "; >- protected final String TEXT_924 = " request"; >- protected final String TEXT_925 = ", "; >- protected final String TEXT_926 = " constraint"; >- protected final String TEXT_927 = ") {" + NL + "\t\t\t"; >- protected final String TEXT_928 = " domainModelEditDomain = "; >- protected final String TEXT_929 = ".getEditingDomain(parent.getDiagram().getElement());"; >- protected final String TEXT_930 = NL + "\t\t\t"; >- protected final String TEXT_931 = " createdDomainElement = "; >- protected final String TEXT_932 = ".eINSTANCE.create(" + NL + "\t\t\t\t"; >- protected final String TEXT_933 = ".eINSTANCE.get"; >- protected final String TEXT_934 = "());"; >- protected final String TEXT_935 = NL + "\t\t\t"; >- protected final String TEXT_936 = " createdDomainElement = "; >- protected final String TEXT_937 = ".eINSTANCE.create"; >- protected final String TEXT_938 = "();"; >- protected final String TEXT_939 = NL + "\t\t\t"; >- protected final String TEXT_940 = NL + "\t\t\t"; >- protected final String TEXT_941 = "."; >- protected final String TEXT_942 = ".initializeElement("; >- protected final String TEXT_943 = "("; >- protected final String TEXT_944 = ") "; >- protected final String TEXT_945 = "createdDomainElement);"; >- protected final String TEXT_946 = NL + "\t\t\t"; >- protected final String TEXT_947 = " compoundCommand = new "; >- protected final String TEXT_948 = "();" + NL + "\t\t\tcompoundCommand.append("; >- protected final String TEXT_949 = ".create(domainModelEditDomain, "; >- protected final String TEXT_950 = ", " + NL + "\t\t\t\t"; >- protected final String TEXT_951 = ".eINSTANCE.get"; >- protected final String TEXT_952 = "(), createdDomainElement));" + NL + "\t\t\tcompoundCommand.append("; >- protected final String TEXT_953 = ".create(domainModelEditDomain, "; >- protected final String TEXT_954 = ", " + NL + "\t\t\t\t"; >- protected final String TEXT_955 = ".eINSTANCE.get"; >- protected final String TEXT_956 = "(), createdDomainElement));" + NL + "\t\t\tthis.domainModelAddCommand = compoundCommand;"; >- protected final String TEXT_957 = NL + "\t\t\tthis.domainModelAddCommand = "; >- protected final String TEXT_958 = ".create(domainModelEditDomain, "; >- protected final String TEXT_959 = ", " + NL + "\t\t\t\t"; >- protected final String TEXT_960 = ".eINSTANCE.get"; >- protected final String TEXT_961 = "(), createdDomainElement);"; >- protected final String TEXT_962 = NL + "\t\t\tconstraint = constraint.union(new "; >- protected final String TEXT_963 = "("; >- protected final String TEXT_964 = ", "; >- protected final String TEXT_965 = "));"; >- protected final String TEXT_966 = NL + "\t\t\tthis.notationAddCommand = new "; >- protected final String TEXT_967 = "(parent, "; >- protected final String TEXT_968 = "("; >- protected final String TEXT_969 = ") "; >- protected final String TEXT_970 = "createdDomainElement, " + NL + "\t\t\t\t"; >- protected final String TEXT_971 = "constraint"; >- protected final String TEXT_972 = "null"; >- protected final String TEXT_973 = ", "; >- protected final String TEXT_974 = ".INSTANCE);" + NL + "\t\t\trequest.setCreatedObject(notationAddCommand.getCreatedView());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final org.eclipse.emf.common.command.Command domainModelAddCommand;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canExecute() {" + NL + "\t\t\treturn domainModelAddCommand != null" + NL + "\t\t\t\t\t&& domainModelAddCommand.canExecute() && notationAddCommand != null && notationAddCommand.canExecute();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn domainModelAddCommand != null" + NL + "\t\t\t\t\t&& domainModelAddCommand.canUndo() && notationAddCommand != null && notationAddCommand.canUndo();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\tdomainModelAddCommand.execute();" + NL + "\t\t\tnotationAddCommand.execute();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\tnotationAddCommand.undo();" + NL + "\t\t\tdomainModelAddCommand.undo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\texecute();" + NL + "\t\t}" + NL + "\t}"; >- protected final String TEXT_975 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Reconnect"; >- protected final String TEXT_976 = "SourceCommand extends "; >- protected final String TEXT_977 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >- protected final String TEXT_978 = " edge;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >- protected final String TEXT_979 = " newSource;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >- protected final String TEXT_980 = " oldSource;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >- protected final String TEXT_981 = " reconnectCommand;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect"; >- protected final String TEXT_982 = "SourceCommand("; >- protected final String TEXT_983 = " request) {" + NL + "\t\t\tthis(("; >- protected final String TEXT_984 = ")request.getConnectionEditPart().getModel(), ("; >- protected final String TEXT_985 = ")request.getTarget().getModel());" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect"; >- protected final String TEXT_986 = "SourceCommand("; >- protected final String TEXT_987 = " edge, "; >- protected final String TEXT_988 = " newSource) {" + NL + "\t\t\tthis.edge = edge;" + NL + "\t\t\tthis.newSource = newSource;" + NL + "\t\t\tthis.oldSource = edge.getSource();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\treconnectCommand.execute();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn reconnectCommand.canUndo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\treconnectCommand.undo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\texecute();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean prepare() {"; >- protected final String TEXT_989 = NL + "\t\t\tfinal boolean[] resultHolder = new boolean[1];" + NL + "\t\t\t//To validate the reconnection against constraints, the current link should be deleted. Of course, we must then undo its deletion." + NL + "\t\t\tfinal "; >- protected final String TEXT_990 = " domainModelEditDomain = "; >- protected final String TEXT_991 = ".getEditingDomain(oldSource.getDiagram().getElement());" + NL + "\t\t\t"; >- protected final String TEXT_992 = " command = new "; >- protected final String TEXT_993 = "() {" + NL + "\t\t\t\tprivate "; >- protected final String TEXT_994 = " deleteCommand = createDomainModelRemoveCommand(domainModelEditDomain);" + NL + "\t\t\t\tpublic boolean canExecute() {" + NL + "\t\t\t\t\treturn deleteCommand.canExecute();" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic boolean canUndo() {" + NL + "\t\t\t\t\treturn true;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void redo() {" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void undo() {" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void execute() {" + NL + "\t\t\t\t\tdeleteCommand.execute();" + NL + "\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\tresultHolder[0] = canReconnect();" + NL + "\t\t\t\t\t} finally {" + NL + "\t\t\t\t\t\tdeleteCommand.undo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "\t\t\tif (!command.canExecute()) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}" + NL + "\t\t\tnew "; >- protected final String TEXT_995 = "(domainModelEditDomain, command).execute();" + NL + "\t\t\tif (resultHolder[0]) {" + NL + "\t\t\t\treconnectCommand = createReconnectCommand();" + NL + "\t\t\t}" + NL + "\t\t\treturn resultHolder[0] && reconnectCommand.canExecute();"; >- protected final String TEXT_996 = NL + "\t\t\tif (canReconnect()) {" + NL + "\t\t\t\treconnectCommand = createReconnectCommand();" + NL + "\t\t\t\treturn reconnectCommand.canExecute();" + NL + "\t\t\t}" + NL + "\t\t\treturn false;"; >- protected final String TEXT_997 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate boolean canReconnect() {"; >- protected final String TEXT_998 = NL + "\t\t\treturn false;"; >- protected final String TEXT_999 = NL + "\t\t\t"; >- protected final String TEXT_1000 = " container = ("; >- protected final String TEXT_1001 = ")getRelationshipContainer(newSource.getElement(), "; >- protected final String TEXT_1002 = ".eINSTANCE.get"; >- protected final String TEXT_1003 = "());" + NL + "\t\t\tif (container == null) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; >- protected final String TEXT_1004 = NL; >- protected final String TEXT_1005 = NL + "\t\tif ("; >- protected final String TEXT_1006 = " != null) {" + NL + "\t\t\t"; >- protected final String TEXT_1007 = NL + "\t\t}"; >- protected final String TEXT_1008 = NL + "\t\tif ("; >- protected final String TEXT_1009 = ".size() >= "; >- protected final String TEXT_1010 = ".eINSTANCE.get"; >- protected final String TEXT_1011 = ".getUpperBound()) {" + NL + "\t\t\t"; >- protected final String TEXT_1012 = NL + "\t\t}"; >- protected final String TEXT_1013 = NL; >- protected final String TEXT_1014 = NL + "\t\tif ("; >- protected final String TEXT_1015 = " != null) {" + NL + "\t\t\t"; >- protected final String TEXT_1016 = NL + "\t\t}"; >- protected final String TEXT_1017 = NL + "\t\tif ("; >- protected final String TEXT_1018 = ".size() >= "; >- protected final String TEXT_1019 = ".eINSTANCE.get"; >- protected final String TEXT_1020 = ".getUpperBound()) {" + NL + "\t\t\t"; >- protected final String TEXT_1021 = NL + "\t\t}"; >- protected final String TEXT_1022 = NL; >- protected final String TEXT_1023 = NL + "\t\t\tif(!"; >- protected final String TEXT_1024 = ".canCreateLink("; >+ protected final String TEXT_136 = NL; >+ protected final String TEXT_137 = NL + "\t\tif ("; >+ protected final String TEXT_138 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_139 = NL + "\t\t}"; >+ protected final String TEXT_140 = NL + "\t\tif ("; >+ protected final String TEXT_141 = ".size() >= "; >+ protected final String TEXT_142 = ".eINSTANCE.get"; >+ protected final String TEXT_143 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_144 = NL + "\t\t}"; >+ protected final String TEXT_145 = NL + "\t\t\t\t\tresult.append("; >+ protected final String TEXT_146 = ".create(" + NL + "\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_147 = ".getElement(), "; >+ protected final String TEXT_148 = ".eINSTANCE.get"; >+ protected final String TEXT_149 = "(), element));"; >+ protected final String TEXT_150 = NL; >+ protected final String TEXT_151 = NL + "\t\tif ("; >+ protected final String TEXT_152 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_153 = NL + "\t\t}"; >+ protected final String TEXT_154 = NL + "\t\tif ("; >+ protected final String TEXT_155 = ".size() >= "; >+ protected final String TEXT_156 = ".eINSTANCE.get"; >+ protected final String TEXT_157 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_158 = NL + "\t\t}"; >+ protected final String TEXT_159 = NL + "\t\t\t\t\tresult.append("; >+ protected final String TEXT_160 = ".create(" + NL + "\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_161 = ".getElement(), "; >+ protected final String TEXT_162 = ".eINSTANCE.get"; >+ protected final String TEXT_163 = "(), element));"; >+ protected final String TEXT_164 = NL + "\t\t\t\t\tresult.append("; >+ protected final String TEXT_165 = ".create(editingDomain, childNode.eContainer(), childNode.eContainmentFeature(), childNode));" + NL + "\t\t\t\t\tif (newVisualID == visualID) {" + NL + "\t\t\t\t\t\tresult.append("; >+ protected final String TEXT_166 = ".create(editingDomain, "; >+ protected final String TEXT_167 = ", "; >+ protected final String TEXT_168 = ".eINSTANCE.getView_PersistedChildren(), childNode));" + NL + "\t\t\t\t\t\tresult.append(new "; >+ protected final String TEXT_169 = "(childNode, "; >+ protected final String TEXT_170 = "null"; >+ protected final String TEXT_171 = "("; >+ protected final String TEXT_172 = ") constraint"; >+ protected final String TEXT_173 = "));" + NL + "\t\t\t\t\t} else {"; >+ protected final String TEXT_174 = NL + "\t\t\t\t\t\tresult.append(new "; >+ protected final String TEXT_175 = "("; >+ protected final String TEXT_176 = ", element, "; >+ protected final String TEXT_177 = "null"; >+ protected final String TEXT_178 = "(("; >+ protected final String TEXT_179 = ") constraint).getCopy().union(new "; >+ protected final String TEXT_180 = "("; >+ protected final String TEXT_181 = ", "; >+ protected final String TEXT_182 = "))"; >+ protected final String TEXT_183 = ", "; >+ protected final String TEXT_184 = ".INSTANCE));"; >+ protected final String TEXT_185 = NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tcommand = result;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;"; >+ protected final String TEXT_186 = NL + "\t\t\t}" + NL + "\t\t\tif (command != null) {" + NL + "\t\t\t\treturn new "; >+ protected final String TEXT_187 = "(editingDomain, command);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "\treturn "; >+ protected final String TEXT_188 = ".INSTANCE;" + NL + "}"; >+ protected final String TEXT_189 = NL; >+ protected final String TEXT_190 = NL + "protected "; >+ protected final String TEXT_191 = " getCloneCommand("; >+ protected final String TEXT_192 = " request) {" + NL + "\t"; >+ protected final String TEXT_193 = " editParts = request.getEditParts();" + NL + "\t"; >+ protected final String TEXT_194 = " command = new "; >+ protected final String TEXT_195 = "();" + NL + "\tcommand.setDebugLabel(\"Clone in ConstrainedLayoutEditPolicy\");//$NON-NLS-1$" + NL + "\t"; >+ protected final String TEXT_196 = " childPart;" + NL + "\t"; >+ protected final String TEXT_197 = " r;" + NL + "\tObject constraint;" + NL + "" + NL + "\tfor (int i = 0; i < editParts.size(); i++) {" + NL + "\t\tchildPart = ("; >+ protected final String TEXT_198 = ")editParts.get(i);" + NL + "\t\tr = childPart.getFigure().getBounds().getCopy();" + NL + "\t\t//convert r to absolute from childpart figure" + NL + "\t\tchildPart.getFigure().translateToAbsolute(r);" + NL + "\t\tr = request.getTransformedRectangle(r);" + NL + "\t\t//convert this figure to relative " + NL + "\t\tgetLayoutContainer().translateToRelative(r);" + NL + "\t\tgetLayoutContainer().translateFromParent(r);" + NL + "\t\tr.translate(getLayoutOrigin().getNegated());" + NL + "\t\tconstraint = getConstraintFor(r);" + NL + "\t\tcommand.add(createCloneCommand(childPart," + NL + "\t\t\ttranslateToModelConstraint(constraint)));" + NL + "\t}" + NL + "\treturn command.unwrap();" + NL + "}" + NL + "protected "; >+ protected final String TEXT_199 = " createCloneCommand(final "; >+ protected final String TEXT_200 = " child, final Object constraint) {" + NL + "\tif (child.getModel() instanceof "; >+ protected final String TEXT_201 = ") {" + NL + "\t\tfinal "; >+ protected final String TEXT_202 = " childNode = ("; >+ protected final String TEXT_203 = ") child.getModel();" + NL + "\t\tfinal "; >+ protected final String TEXT_204 = " editingDomain = "; >+ protected final String TEXT_205 = ".getEditingDomain(childNode.getDiagram().getElement());" + NL + "\t\tString modelID = "; >+ protected final String TEXT_206 = ".getModelID(childNode);" + NL + "\t\tif ("; >+ protected final String TEXT_207 = ".MODEL_ID.equals(modelID)) {" + NL + "\t\t\tfinal int newVisualID = "; >+ protected final String TEXT_208 = ".INSTANCE.getNodeVisualID("; >+ protected final String TEXT_209 = ", childNode.getElement());" + NL + "\t\t\t"; >+ protected final String TEXT_210 = " command = null;" + NL + "\t\t\tswitch (newVisualID) {"; >+ protected final String TEXT_211 = NL + "\t\t\tcase "; >+ protected final String TEXT_212 = ".VISUAL_ID:" + NL + "\t\t\t\tcommand = new "; >+ protected final String TEXT_213 = "() {" + NL + "\t\t\t\t\tprivate "; >+ protected final String TEXT_214 = " afterCopyCommand;" + NL + "\t\t\t\t\tprotected "; >+ protected final String TEXT_215 = " createCommand() {" + NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_216 = " element = childNode.getElement();" + NL + "\t\t\t\t\t\t//We are being optimistic here about whether further commands can be executed." + NL + "\t\t\t\t\t\t//Otherwise, we would have to execute the CopyCommand on every mouse move, which could be much too expensive. " + NL + "\t\t\t\t\t\treturn "; >+ protected final String TEXT_217 = ".create(editingDomain, element);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tprotected boolean prepare() {" + NL + "\t\t\t\t\t\tif (!super.prepare()) {" + NL + "\t\t\t\t\t\t\treturn false;" + NL + "\t\t\t\t\t\t}"; >+ protected final String TEXT_218 = NL; >+ protected final String TEXT_219 = NL + "\t\tif ("; >+ protected final String TEXT_220 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_221 = NL + "\t\t}"; >+ protected final String TEXT_222 = NL + "\t\tif ("; >+ protected final String TEXT_223 = ".size() >= "; >+ protected final String TEXT_224 = ".eINSTANCE.get"; >+ protected final String TEXT_225 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_226 = NL + "\t\t}"; >+ protected final String TEXT_227 = NL; >+ protected final String TEXT_228 = NL + "\t\tif ("; >+ protected final String TEXT_229 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_230 = NL + "\t\t}"; >+ protected final String TEXT_231 = NL + "\t\tif ("; >+ protected final String TEXT_232 = ".size() >= "; >+ protected final String TEXT_233 = ".eINSTANCE.get"; >+ protected final String TEXT_234 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_235 = NL + "\t\t}"; >+ protected final String TEXT_236 = NL + "\t\t\t\t\t\treturn true;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void execute() {" + NL + "\t\t\t\t\t\tsuper.execute();" + NL + "\t\t\t\t\t\tfinal "; >+ protected final String TEXT_237 = " results = super.getResult();" + NL + "\t\t\t\t\t\tassert results.size() == 1;" + NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_238 = " result = ("; >+ protected final String TEXT_239 = ") results.iterator().next();" + NL + "\t\t\t\t\t\tafterCopyCommand = new "; >+ protected final String TEXT_240 = "();"; >+ protected final String TEXT_241 = NL + "\t\t\t\t\t\tafterCopyCommand.append("; >+ protected final String TEXT_242 = ".create(" + NL + "\t\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t\t"; >+ protected final String TEXT_243 = ".getElement(), "; >+ protected final String TEXT_244 = ".eINSTANCE.get"; >+ protected final String TEXT_245 = "(), result));"; >+ protected final String TEXT_246 = NL + "\t\t\t\t\t\tafterCopyCommand.append("; >+ protected final String TEXT_247 = ".create(" + NL + "\t\t\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t\t\t"; >+ protected final String TEXT_248 = ".getElement(), "; >+ protected final String TEXT_249 = ".eINSTANCE.get"; >+ protected final String TEXT_250 = "(), result));"; >+ protected final String TEXT_251 = NL + "\t\t\t\t\t\tafterCopyCommand.append(new "; >+ protected final String TEXT_252 = "("; >+ protected final String TEXT_253 = ", result, "; >+ protected final String TEXT_254 = "null"; >+ protected final String TEXT_255 = "(("; >+ protected final String TEXT_256 = ") constraint).getCopy().union(new "; >+ protected final String TEXT_257 = "("; >+ protected final String TEXT_258 = ", "; >+ protected final String TEXT_259 = "))"; >+ protected final String TEXT_260 = ", "; >+ protected final String TEXT_261 = ".INSTANCE));" + NL + "\t\t\t\t\t\tif (afterCopyCommand.canExecute()) {" + NL + "\t\t\t\t\t\t\tafterCopyCommand.execute();" + NL + "\t\t\t\t\t\t} else {" + NL + "\t\t\t\t\t\t\tassert false;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void undo() {" + NL + "\t\t\t\t\t\tafterCopyCommand.undo();" + NL + "\t\t\t\t\t\tsuper.undo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tpublic void redo() {" + NL + "\t\t\t\t\t\tsuper.redo();" + NL + "\t\t\t\t\t\tafterCopyCommand.redo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "\t\t\t\tbreak;"; >+ protected final String TEXT_262 = NL + "\t\t\t}" + NL + "\t\t\tif (command != null) {" + NL + "\t\t\t\treturn new "; >+ protected final String TEXT_263 = "(editingDomain, command);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "\treturn "; >+ protected final String TEXT_264 = ".INSTANCE;" + NL + "}"; >+ protected final String TEXT_265 = NL + "\t\t\tprotected "; >+ protected final String TEXT_266 = " getCreateCommand("; >+ protected final String TEXT_267 = " request) {"; >+ protected final String TEXT_268 = NL + "\t\t\t\tif (request instanceof "; >+ protected final String TEXT_269 = ") {" + NL + "\t\t\t\t\t"; >+ protected final String TEXT_270 = " requestEx = ("; >+ protected final String TEXT_271 = ") request;" + NL + "\t\t\t\t\tint[] visualIds = requestEx.getVisualIds();" + NL + "\t\t\t\t\t"; >+ protected final String TEXT_272 = " result = new "; >+ protected final String TEXT_273 = "();" + NL + "\t\t\t\t\tfor(int i = 0; i < visualIds.length; i++) {" + NL + "\t\t\t\t\t\tint nextVisualId = visualIds[i];" + NL + "\t\t\t\t\t\tswitch (nextVisualId) {"; >+ protected final String TEXT_274 = NL + "\t\t\t\t\t\tcase "; >+ protected final String TEXT_275 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\t\tresult.append(new Create"; >+ protected final String TEXT_276 = "Command((View) getModel(), requestEx"; >+ protected final String TEXT_277 = ", " + NL + "\t\t\t\t\t\t\t\t("; >+ protected final String TEXT_278 = ")getConstraintFor(request)"; >+ protected final String TEXT_279 = "));" + NL + "\t\t\t\t\t\t\tbreak;"; >+ protected final String TEXT_280 = NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\treturn new "; >+ protected final String TEXT_281 = "("; >+ protected final String TEXT_282 = ".getEditingDomain(((View) getModel()).getDiagram().getElement()), result);" + NL + "\t\t\t\t}"; >+ protected final String TEXT_283 = NL + "\t\t\t\treturn "; >+ protected final String TEXT_284 = ".INSTANCE;" + NL + "\t\t\t}"; >+ protected final String TEXT_285 = NL + "\t\t\tprotected "; >+ protected final String TEXT_286 = " createChangeConstraintCommand(final "; >+ protected final String TEXT_287 = " request, final "; >+ protected final String TEXT_288 = " child, Object constraint) {" + NL + "\t\t\t\tif (!isDirectChild(child)) {" + NL + "\t\t\t\t\treturn "; >+ protected final String TEXT_289 = ".INSTANCE;" + NL + "\t\t\t\t}"; >+ protected final String TEXT_290 = NL; >+ protected final String TEXT_291 = "\t\t\t\tfinal "; >+ protected final String TEXT_292 = " node = ("; >+ protected final String TEXT_293 = ") child.getModel();" + NL + "\t\t\t\t"; >+ protected final String TEXT_294 = " emfCommand = new "; >+ protected final String TEXT_295 = "(node, request, (("; >+ protected final String TEXT_296 = ")child).getFigure());" + NL + "\t\t\t\treturn new "; >+ protected final String TEXT_297 = "("; >+ protected final String TEXT_298 = ".getEditingDomain(node.getDiagram().getElement()), emfCommand);" + NL + "\t\t\t}" + NL + "\t\t\tprotected Command createChangeConstraintCommand("; >+ protected final String TEXT_299 = " child, Object constraint) {" + NL + "\t\t\t\tassert false;" + NL + "\t\t\t\treturn "; >+ protected final String TEXT_300 = ".INSTANCE;" + NL + "\t\t\t}"; >+ protected final String TEXT_301 = NL + "\t\t\tprotected Object getConstraintFor("; >+ protected final String TEXT_302 = " rect) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tprotected Object getConstraintFor("; >+ protected final String TEXT_303 = " point) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tprotected "; >+ protected final String TEXT_304 = " createChangeConstraintCommand("; >+ protected final String TEXT_305 = " child, Object constraint) {" + NL + "\t\t\t\treturn "; >+ protected final String TEXT_306 = ".INSTANCE;" + NL + "\t\t\t}"; >+ protected final String TEXT_307 = NL + "\t\t\tprotected "; >+ protected final String TEXT_308 = " createChildEditPolicy("; >+ protected final String TEXT_309 = " child) {"; >+ protected final String TEXT_310 = NL + "\t\t\t\tif (isDirectChild(child)) {" + NL + "\t\t\t\t\treturn super.createChildEditPolicy(child);" + NL + "\t\t\t\t}"; >+ protected final String TEXT_311 = NL + "\t\t\t\treturn new "; >+ protected final String TEXT_312 = "() {" + NL + "\t\t\t\t\tpublic "; >+ protected final String TEXT_313 = " getTargetEditPart("; >+ protected final String TEXT_314 = " request) {" + NL + "\t\t\t\t\t\tif ("; >+ protected final String TEXT_315 = ".REQ_SELECTION.equals(request.getType())) {" + NL + "\t\t\t\t\t\t\treturn "; >+ protected final String TEXT_316 = ".this;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\treturn super.getTargetEditPart(request);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t};" + NL + "\t\t\t}" + NL + "\t\t});" + NL + "\t\tinstallEditPolicy("; >+ protected final String TEXT_317 = ".GRAPHICAL_NODE_ROLE, new "; >+ protected final String TEXT_318 = "() {" + NL + "\t\t\tprotected "; >+ protected final String TEXT_319 = " getReconnectTargetCommand("; >+ protected final String TEXT_320 = " request) {"; >+ protected final String TEXT_321 = " " + NL + "\t\t\t\treturn "; >+ protected final String TEXT_322 = ".INSTANCE;"; >+ protected final String TEXT_323 = NL + "\t\t\t\t"; >+ protected final String TEXT_324 = " connection = request.getConnectionEditPart();" + NL + "\t\t\t\tif (connection.getModel() instanceof "; >+ protected final String TEXT_325 = " == false) {" + NL + "\t\t\t\t\treturn "; >+ protected final String TEXT_326 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; >+ protected final String TEXT_327 = " edge = ("; >+ protected final String TEXT_328 = ")connection.getModel();" + NL + "\t\t\t\tString modelID = "; >+ protected final String TEXT_329 = ".getModelID(edge);" + NL + "\t\t\t\tif (!"; >+ protected final String TEXT_330 = ".MODEL_ID.equals(modelID)) {" + NL + "\t\t\t\t\treturn "; >+ protected final String TEXT_331 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; >+ protected final String TEXT_332 = " result = null;" + NL + "\t\t\t\tint visualID = "; >+ protected final String TEXT_333 = ".getVisualID(edge);" + NL + "\t\t\t\tswitch (visualID) {"; >+ protected final String TEXT_334 = NL + "\t\t\t\tcase "; >+ protected final String TEXT_335 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult = new Reconnect"; >+ protected final String TEXT_336 = "TargetCommand(request);" + NL + "\t\t\t\t\tbreak;"; >+ protected final String TEXT_337 = NL + "\t\t\t\t}" + NL + "\t\t\t\tif (result == null) {" + NL + "\t\t\t\t\treturn "; >+ protected final String TEXT_338 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn new "; >+ protected final String TEXT_339 = "("; >+ protected final String TEXT_340 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);"; >+ protected final String TEXT_341 = NL + "\t\t\t}" + NL + "\t\t\tprotected "; >+ protected final String TEXT_342 = " getReconnectSourceCommand("; >+ protected final String TEXT_343 = " request) {"; >+ protected final String TEXT_344 = " " + NL + "\t\t\t\treturn "; >+ protected final String TEXT_345 = ".INSTANCE;"; >+ protected final String TEXT_346 = NL + "\t\t\t\t"; >+ protected final String TEXT_347 = " connection = request.getConnectionEditPart();" + NL + "\t\t\t\tif (connection.getModel() instanceof "; >+ protected final String TEXT_348 = " == false) {" + NL + "\t\t\t\t\treturn "; >+ protected final String TEXT_349 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; >+ protected final String TEXT_350 = " edge = ("; >+ protected final String TEXT_351 = ")connection.getModel();" + NL + "\t\t\t\tString modelID = "; >+ protected final String TEXT_352 = ".getModelID(edge);" + NL + "\t\t\t\tif (!"; >+ protected final String TEXT_353 = ".MODEL_ID.equals(modelID)) {" + NL + "\t\t\t\t\treturn "; >+ protected final String TEXT_354 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; >+ protected final String TEXT_355 = " result = null;" + NL + "\t\t\t\tint visualID = "; >+ protected final String TEXT_356 = ".getVisualID(edge);" + NL + "\t\t\t\tswitch (visualID) {"; >+ protected final String TEXT_357 = NL + "\t\t\t\tcase "; >+ protected final String TEXT_358 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult = new Reconnect"; >+ protected final String TEXT_359 = "SourceCommand(request);" + NL + "\t\t\t\t\tbreak;"; >+ protected final String TEXT_360 = NL + "\t\t\t\t}" + NL + "\t\t\t\tif (result == null) {" + NL + "\t\t\t\t\treturn "; >+ protected final String TEXT_361 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn new "; >+ protected final String TEXT_362 = "("; >+ protected final String TEXT_363 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);"; >+ protected final String TEXT_364 = NL + "\t\t\t}" + NL + "\t\t\tprotected "; >+ protected final String TEXT_365 = " getConnectionCreateCommand("; >+ protected final String TEXT_366 = " request) {"; >+ protected final String TEXT_367 = NL + "\t\t\t\tif (request instanceof "; >+ protected final String TEXT_368 = ") {" + NL + "\t\t\t\t\t"; >+ protected final String TEXT_369 = " requestEx = ("; >+ protected final String TEXT_370 = ") request;" + NL + "\t\t\t\t\tint[] visualIds = requestEx.getVisualIds();" + NL + "\t\t\t\t\t"; >+ protected final String TEXT_371 = " result = new "; >+ protected final String TEXT_372 = "();" + NL + "\t\t\t\t\tfor (int i = 0; i < visualIds.length; i++) {" + NL + "\t\t\t\t\t\tint nextVisualId = visualIds[i];" + NL + "\t\t\t\t\t\tswitch (nextVisualId) {"; >+ protected final String TEXT_373 = NL + "\t\t\t\t\t\tcase "; >+ protected final String TEXT_374 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\t\tresult.appendIfCanExecute(new Create"; >+ protected final String TEXT_375 = "StartCommand(requestEx));" + NL + "\t\t\t\t\t\t\tbreak;"; >+ protected final String TEXT_376 = NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tif (!result.canExecute()) {" + NL + "\t\t\t\t\t\t//returning an unexecutable command does not change cursor to \"No\"." + NL + "\t\t\t\t\t\treturn null;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\t"; >+ protected final String TEXT_377 = " wrappedResult = new "; >+ protected final String TEXT_378 = "("; >+ protected final String TEXT_379 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);" + NL + "\t\t\t\t\trequest.setStartCommand(wrappedResult);" + NL + "\t\t\t\t\treturn wrappedResult;" + NL + "\t\t\t\t}"; >+ protected final String TEXT_380 = NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tprotected "; >+ protected final String TEXT_381 = " getConnectionCompleteCommand("; >+ protected final String TEXT_382 = " request) {"; >+ protected final String TEXT_383 = NL + "\t\t\t\tif (request.getStartCommand() == null || !request.getStartCommand().canExecute()) {" + NL + "\t\t\t\t\treturn "; >+ protected final String TEXT_384 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tif (request instanceof "; >+ protected final String TEXT_385 = ") {" + NL + "\t\t\t\t\t"; >+ protected final String TEXT_386 = " requestEx = ("; >+ protected final String TEXT_387 = ") request;" + NL + "\t\t\t\t\tint[] visualIds = requestEx.getVisualIds();" + NL + "\t\t\t\t\t"; >+ protected final String TEXT_388 = " result = new "; >+ protected final String TEXT_389 = "();" + NL + "\t\t\t\t\tfor (int i = 0; i < visualIds.length; i++) {" + NL + "\t\t\t\t\t\tint nextVisualId = visualIds[i];" + NL + "\t\t\t\t\t\tswitch (nextVisualId) {"; >+ protected final String TEXT_390 = NL + "\t\t\t\t\t\tcase "; >+ protected final String TEXT_391 = ".VISUAL_ID:" + NL + "\t\t\t\t\t\t\tresult.appendIfCanExecute(new Create"; >+ protected final String TEXT_392 = "Command(requestEx));" + NL + "\t\t\t\t\t\t\tbreak;"; >+ protected final String TEXT_393 = NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\tif (result.getCommandList().size() != 1 || !result.canExecute()) {" + NL + "\t\t\t\t\t\t//Cannot create several connections at once." + NL + "\t\t\t\t\t\treturn "; >+ protected final String TEXT_394 = ".INSTANCE;" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\treturn new "; >+ protected final String TEXT_395 = "("; >+ protected final String TEXT_396 = ".getEditingDomain(getDiagramNode().getDiagram().getElement()), result);" + NL + "\t\t\t\t}"; >+ protected final String TEXT_397 = NL + "\t\t\t\treturn "; >+ protected final String TEXT_398 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t});"; >+ protected final String TEXT_399 = NL + "\t\t//This edit part understands the direct edit request and delegates it to the appropriate label, so no command is needed here." + NL + "\t\tinstallEditPolicy("; >+ protected final String TEXT_400 = ".DIRECT_EDIT_ROLE, new "; >+ protected final String TEXT_401 = "() {" + NL + "\t\t\tprotected void showCurrentEditValue("; >+ protected final String TEXT_402 = " request) {" + NL + "\t\t\t}" + NL + "\t\t\tprotected "; >+ protected final String TEXT_403 = " getDirectEditCommand("; >+ protected final String TEXT_404 = " request) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t});"; >+ protected final String TEXT_405 = NL + "\t\tinstallNotationModelRefresher();"; >+ protected final String TEXT_406 = NL + "\t\tinstallLinkNotationModelRefresher();"; >+ protected final String TEXT_407 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; >+ protected final String TEXT_408 = " createFigure() {" + NL + "\t\t"; >+ protected final String TEXT_409 = " invisibleRectangle = new "; >+ protected final String TEXT_410 = "();" + NL + "\t\tinvisibleRectangle.setLayoutManager(new "; >+ protected final String TEXT_411 = "());" + NL + "\t\t"; >+ protected final String TEXT_412 = " shape = createNodeShape();" + NL + "\t\tinvisibleRectangle.add(shape);" + NL + "\t\tcontentPane = setupContentPane(shape);"; >+ protected final String TEXT_413 = NL + "\t\tchildNodesPane = createChildNodesPane();" + NL + "\t\tshape.add(childNodesPane);"; >+ protected final String TEXT_414 = NL + NL + "\t\t"; >+ protected final String TEXT_415 = " decorationShape = createDecorationPane();" + NL + "\t\tif (decorationShape != null) {" + NL + "\t\t\tinvisibleRectangle.add(decorationShape);" + NL + "\t\t}" + NL + "" + NL + "\t\treturn invisibleRectangle;" + NL + "\t}" + NL; >+ protected final String TEXT_416 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; >+ protected final String TEXT_417 = " createChildNodesPane() {" + NL + "\t\t"; >+ protected final String TEXT_418 = " result = new "; >+ protected final String TEXT_419 = "();" + NL + "\t\tsetupContentPane(result);" + NL + "\t\treturn result;" + NL + "\t}"; >+ protected final String TEXT_420 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; >+ protected final String TEXT_421 = " createNodeShape() {"; >+ protected final String TEXT_422 = NL + "\t\tprimaryShape = new "; >+ protected final String TEXT_423 = "()"; >+ protected final String TEXT_424 = " {" + NL + "\t\t\tprotected boolean useLocalCoordinates() {" + NL + "\t\t\t\treturn true;" + NL + "\t\t\t}" + NL + "\t\t}"; >+ protected final String TEXT_425 = ";"; >+ protected final String TEXT_426 = NL + "\t\tprimaryShape = "; >+ protected final String TEXT_427 = ";"; >+ protected final String TEXT_428 = NL + "\t\t"; >+ protected final String TEXT_429 = " figure = new "; >+ protected final String TEXT_430 = "();"; >+ protected final String TEXT_431 = NL + " \t\tfigure.setUseLocalCoordinates(true);"; >+ protected final String TEXT_432 = NL + " \t\tprimaryShape = figure;"; >+ protected final String TEXT_433 = NL + "\t\treturn primaryShape;" + NL + "\t}"; >+ protected final String TEXT_434 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; >+ protected final String TEXT_435 = " getPrimaryShape() {" + NL + "\t\treturn ("; >+ protected final String TEXT_436 = ") primaryShape;" + NL + "\t}"; >+ protected final String TEXT_437 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_438 = " createDecorationPane() {" + NL + "\t\t"; >+ protected final String TEXT_439 = " view = ("; >+ protected final String TEXT_440 = ") getModel();" + NL + "\t\t"; >+ protected final String TEXT_441 = " annotation = view.getEAnnotation(\"Shortcut\"); //$NON-NLS-1$" + NL + "\t\tif (annotation == null) {" + NL + "\t\t\treturn null;" + NL + "\t\t}" + NL + "\t\t" + NL + "\t\t"; >+ protected final String TEXT_442 = " decorationPane = new "; >+ protected final String TEXT_443 = "();" + NL + "\t\tdecorationPane.setLayoutManager(new "; >+ protected final String TEXT_444 = "());" + NL + "" + NL + "\t\t"; >+ protected final String TEXT_445 = " imageFigure = new "; >+ protected final String TEXT_446 = "("; >+ protected final String TEXT_447 = ".getInstance().getBundledImage(\"icons/shortcut.gif\"), "; >+ protected final String TEXT_448 = ".EAST);" + NL + "\t\tdecorationPane.add(imageFigure, "; >+ protected final String TEXT_449 = ".BOTTOM);" + NL + " \t\treturn decorationPane;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * Default implementation treats passed figure as content pane." + NL + "\t * Respects layout one may have set for generated figure." + NL + "\t * @param nodeShape instance of generated figure class" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; >+ protected final String TEXT_450 = " setupContentPane("; >+ protected final String TEXT_451 = " nodeShape) {" + NL + "\t\tif (nodeShape.getLayoutManager() == null) {"; >+ protected final String TEXT_452 = NL + "\t\t\t"; >+ protected final String TEXT_453 = " layout = new "; >+ protected final String TEXT_454 = "();" + NL + "\t\t\tlayout.setSpacing(5);" + NL + "\t\t\tnodeShape.setLayoutManager(layout);"; >+ protected final String TEXT_455 = NL + "\t\tnodeShape.setLayoutManager(new "; >+ protected final String TEXT_456 = "() {" + NL + "" + NL + "\t\t\tpublic Object getConstraint("; >+ protected final String TEXT_457 = " figure) {" + NL + "\t\t\t\tObject result = constraints.get(figure);" + NL + "\t\t\t\tif (result == null) {" + NL + "\t\t\t\t\tresult = new "; >+ protected final String TEXT_458 = "(0, 0, -1, -1);" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn result;" + NL + "\t\t\t}" + NL + "\t\t});"; >+ protected final String TEXT_459 = NL + "\t\t}" + NL + "\t\treturn nodeShape; // use nodeShape itself as contentPane" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; >+ protected final String TEXT_460 = " getContentPane() {" + NL + "\t\tif (contentPane == null) {" + NL + "\t\t\treturn super.getContentPane();" + NL + "\t\t}" + NL + "\t\treturn contentPane;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; >+ protected final String TEXT_461 = " getDiagramNode() {" + NL + "\t\treturn ("; >+ protected final String TEXT_462 = ") getModel();" + NL + "\t}" + NL; >+ protected final String TEXT_463 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean addFixedChild("; >+ protected final String TEXT_464 = " childEditPart) {"; >+ protected final String TEXT_465 = NL + "\t\tif (childEditPart instanceof "; >+ protected final String TEXT_466 = ") {" + NL + "\t\t\t(("; >+ protected final String TEXT_467 = ") childEditPart)."; >+ protected final String TEXT_468 = "(getPrimaryShape()."; >+ protected final String TEXT_469 = "());" + NL + "\t\t\treturn true;" + NL + "\t\t}"; >+ protected final String TEXT_470 = NL + "\t\tif (childEditPart instanceof "; >+ protected final String TEXT_471 = ") {" + NL + "\t\t\t"; >+ protected final String TEXT_472 = " pane = getPrimaryShape()."; >+ protected final String TEXT_473 = "();" + NL + "\t\t\tsetupContentPane(pane); // FIXME each comparment should handle his content pane in his own way " + NL + "\t\t\tpane.add((("; >+ protected final String TEXT_474 = ")childEditPart).getFigure());" + NL + "\t\t\treturn true;" + NL + "\t\t}\t"; >+ protected final String TEXT_475 = NL + "\t\treturn false;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean removeFixedChild(EditPart childEditPart) {"; >+ protected final String TEXT_476 = "\t\t" + NL + "\t\tif (childEditPart instanceof "; >+ protected final String TEXT_477 = ") {" + NL + "\t\t\t"; >+ protected final String TEXT_478 = " pane = getPrimaryShape()."; >+ protected final String TEXT_479 = "();" + NL + "\t\t\tpane.remove((("; >+ protected final String TEXT_480 = ")childEditPart).getFigure());" + NL + "\t\t\treturn true;" + NL + "\t\t}\t"; >+ protected final String TEXT_481 = NL + "\t\treturn false;" + NL + "\t}"; >+ protected final String TEXT_482 = NL + NL + "\t/**" + NL + "\t * Returns the label which should be direct-edited by default." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_483 = " getPrimaryLabelEditPart() {"; >+ protected final String TEXT_484 = NL + "\t\tfor("; >+ protected final String TEXT_485 = " it = getDiagramNode().getChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t"; >+ protected final String TEXT_486 = " nextChild = ("; >+ protected final String TEXT_487 = ")it.next();" + NL + "\t\t\tif ("; >+ protected final String TEXT_488 = ".getVisualID(nextChild) == "; >+ protected final String TEXT_489 = ".VISUAL_ID) {" + NL + "\t\t\t\treturn ("; >+ protected final String TEXT_490 = ") getViewer().getEditPartRegistry().get(nextChild);" + NL + "\t\t\t}" + NL + "\t\t}"; >+ protected final String TEXT_491 = NL + "\t\treturn null;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void performRequest("; >+ protected final String TEXT_492 = " req) {" + NL + "\t\tif ("; >+ protected final String TEXT_493 = ".REQ_DIRECT_EDIT == req.getType()) {" + NL + "\t\t\t"; >+ protected final String TEXT_494 = " labelToEdit;" + NL + "\t\t\tif (req instanceof "; >+ protected final String TEXT_495 = ") {" + NL + "\t\t\t\tlabelToEdit = getLabelEditPart(("; >+ protected final String TEXT_496 = ")req);" + NL + "\t\t\t} else {" + NL + "\t\t\t\tlabelToEdit = getPrimaryLabelEditPart();" + NL + "\t\t\t}" + NL + "\t\t\tif (labelToEdit != null) {" + NL + "\t\t\t\tlabelToEdit.performRequest(req);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_497 = " getLabelEditPart("; >+ protected final String TEXT_498 = " req) {" + NL + "\t\t"; >+ protected final String TEXT_499 = " result = getViewer().findObjectAt(req.getLocation());" + NL + "\t\tif (result != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_500 = " view = ("; >+ protected final String TEXT_501 = ") result.getModel();" + NL + "\t\t\tif (getDiagramNode().getChildren().contains(view)) {" + NL + "\t\t\t\tint visualId = "; >+ protected final String TEXT_502 = ".getVisualID(view);" + NL + "\t\t\t\tswitch (visualId) {"; >+ protected final String TEXT_503 = NL + "\t\t\t\tcase "; >+ protected final String TEXT_504 = ".VISUAL_ID:" + NL + "\t\t\t\t\treturn result;"; >+ protected final String TEXT_505 = NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\treturn getPrimaryLabelEditPart();" + NL + "\t}" + NL; >+ protected final String TEXT_506 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean isExternalLabel("; >+ protected final String TEXT_507 = " childEditPart) {"; >+ protected final String TEXT_508 = NL + "\t\tif (childEditPart instanceof "; >+ protected final String TEXT_509 = ") {" + NL + "\t\t\treturn true;" + NL + "\t\t}"; >+ protected final String TEXT_510 = NL + "\t\treturn false;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; >+ protected final String TEXT_511 = " getExternalLabelsContainer() {" + NL + "\t\t"; >+ protected final String TEXT_512 = " root = ("; >+ protected final String TEXT_513 = ") getRoot();" + NL + "\t\treturn root.getLayer("; >+ protected final String TEXT_514 = ".EXTERNAL_NODE_LABELS_LAYER);" + NL + "\t}" + NL; >+ protected final String TEXT_515 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected boolean isDirectChild("; >+ protected final String TEXT_516 = " childEditPart) {"; >+ protected final String TEXT_517 = NL + "\t\tif (childEditPart instanceof "; >+ protected final String TEXT_518 = ") {" + NL + "\t\t\treturn true;" + NL + "\t\t}"; >+ protected final String TEXT_519 = NL + "\t\treturn false;" + NL + "\t}"; >+ protected final String TEXT_520 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void addChildVisual("; >+ protected final String TEXT_521 = " childEditPart, int index) {"; >+ protected final String TEXT_522 = NL + "\t\tif (isExternalLabel(childEditPart)) {" + NL + "\t\t\t"; >+ protected final String TEXT_523 = " labelFigure = (("; >+ protected final String TEXT_524 = ") childEditPart).getFigure();" + NL + "\t\t\tgetExternalLabelsContainer().add(labelFigure);" + NL + "\t\t\treturn;" + NL + "\t\t}"; >+ protected final String TEXT_525 = NL + "\t\tif (addFixedChild(childEditPart)) {" + NL + "\t\t\treturn;" + NL + "\t\t}"; >+ protected final String TEXT_526 = NL + "\t\tif (isDirectChild(childEditPart)) {" + NL + "\t\t\t"; >+ protected final String TEXT_527 = " childFigure = (("; >+ protected final String TEXT_528 = ") childEditPart).getFigure();" + NL + "\t\t\tchildNodesPane.add(childFigure);" + NL + "\t\t\treturn;" + NL + "\t\t}"; >+ protected final String TEXT_529 = NL + "\t\tsuper.addChildVisual(childEditPart, -1);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void removeChildVisual("; >+ protected final String TEXT_530 = " childEditPart) {"; >+ protected final String TEXT_531 = NL + "\t\tif (isExternalLabel(childEditPart)) {" + NL + "\t\t\t"; >+ protected final String TEXT_532 = " labelFigure = (("; >+ protected final String TEXT_533 = ") childEditPart).getFigure();" + NL + "\t\t\tgetExternalLabelsContainer().remove(labelFigure);" + NL + "\t\t\treturn;" + NL + "\t\t}"; >+ protected final String TEXT_534 = NL + "\t\tif (removeFixedChild(childEditPart)){" + NL + "\t\t\treturn;" + NL + "\t\t}"; >+ protected final String TEXT_535 = NL + "\t\tif (isDirectChild(childEditPart)) {" + NL + "\t\t\t"; >+ protected final String TEXT_536 = " childFigure = (("; >+ protected final String TEXT_537 = ") childEditPart).getFigure();" + NL + "\t\t\tchildNodesPane.remove(childFigure);" + NL + "\t\t\treturn;" + NL + "\t\t}"; >+ protected final String TEXT_538 = NL + "\t\tsuper.removeChildVisual(childEditPart);" + NL + "\t}"; >+ protected final String TEXT_539 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void removeNotify() {" + NL + "\t\tfor ("; >+ protected final String TEXT_540 = " it = getChildren().iterator(); it.hasNext();) {" + NL + "\t\t\t"; >+ protected final String TEXT_541 = " childEditPart = ("; >+ protected final String TEXT_542 = ") it.next();" + NL + "\t\t\tif (isExternalLabel(childEditPart)) {" + NL + "\t\t\t\tIFigure labelFigure = (("; >+ protected final String TEXT_543 = ") childEditPart).getFigure();" + NL + "\t\t\t\tgetExternalLabelsContainer().remove(labelFigure);" + NL + "\t\t\t}" + NL + "\t\t}" + NL + "\t\tsuper.removeNotify();" + NL + "\t}"; >+ protected final String TEXT_544 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisuals() {" + NL + "\t\tsuper.refreshVisuals();" + NL + "\t\trefreshBounds();" + NL + "\t\trefreshBackgroundColor();" + NL + "\t\trefreshForegroundColor();" + NL + "\t\trefreshFont();" + NL + "\t\trefreshVisibility();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshVisibility() {" + NL + "\t\tboolean isVisible = getDiagramNode().isVisible();" + NL + "\t\tboolean wasVisible = getFigure().isVisible();" + NL + "\t\tif (isVisible == wasVisible) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\tif (!isVisible && (getSelected() != SELECTED_NONE)) {" + NL + "\t\t\tgetViewer().deselect(this);" + NL + "\t\t}" + NL + "" + NL + "\t\tgetFigure().setVisible(isVisible);" + NL + "\t\tgetFigure().revalidate();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshBounds() {" + NL + "\t\t"; >+ protected final String TEXT_545 = " node = getDiagramNode();" + NL + "\t\tif (node.getLayoutConstraint() == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\tassert node.getLayoutConstraint() instanceof "; >+ protected final String TEXT_546 = ";" + NL + "\t\t"; >+ protected final String TEXT_547 = " bounds = ("; >+ protected final String TEXT_548 = ") node.getLayoutConstraint();" + NL + "\t\tint x = bounds.getX();" + NL + "\t\tint y = bounds.getY();" + NL + "\t\tint width = bounds.getWidth();" + NL + "\t\tint height = bounds.getHeight();" + NL + "\t\tif (width < 0) {" + NL + "\t\t\tx -= width;" + NL + "\t\t\twidth = -width;" + NL + "\t\t}" + NL + "\t\tif (height < 0) {" + NL + "\t\t\ty -= height;" + NL + "\t\t\theight = -height;" + NL + "\t\t}" + NL + "\t\t(("; >+ protected final String TEXT_549 = ") getParent()).setLayoutConstraint(this, getFigure(), " + NL + "\t\t\tnew "; >+ protected final String TEXT_550 = "(x, y, width, height));" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; >+ protected final String TEXT_551 = " getModelChildren() {" + NL + "\t\treturn getDiagramNode().getVisibleChildren();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; >+ protected final String TEXT_552 = " getModelSourceConnections() {" + NL + "\t\treturn getDiagramNode().getSourceEdges();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; >+ protected final String TEXT_553 = " getModelTargetConnections() {" + NL + "\t\treturn getDiagramNode().getTargetEdges();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; >+ protected final String TEXT_554 = " getSourceConnectionAnchor("; >+ protected final String TEXT_555 = " connection) {" + NL + "\t\treturn new "; >+ protected final String TEXT_556 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; >+ protected final String TEXT_557 = " getSourceConnectionAnchor("; >+ protected final String TEXT_558 = " request) {" + NL + "\t\treturn new "; >+ protected final String TEXT_559 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; >+ protected final String TEXT_560 = " getTargetConnectionAnchor("; >+ protected final String TEXT_561 = " connection) {" + NL + "\t\treturn new "; >+ protected final String TEXT_562 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic "; >+ protected final String TEXT_563 = " getTargetConnectionAnchor("; >+ protected final String TEXT_564 = " request) {" + NL + "\t\treturn new "; >+ protected final String TEXT_565 = "(getFigure());" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Object getAdapter(Class key) {" + NL + "\t\tif ("; >+ protected final String TEXT_566 = ".class == key) {" + NL + "\t\t\treturn getTreeEditPartAdapter();" + NL + "\t\t}"; >+ protected final String TEXT_567 = NL + "\t\treturn super.getAdapter(key);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate TreeEditPartAdapter myTreeEditPartAdapter;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate TreeEditPartAdapter getTreeEditPartAdapter() {" + NL + "\t\tif (myTreeEditPartAdapter == null) {" + NL + "\t\t\tmyTreeEditPartAdapter = new TreeEditPartAdapter();" + NL + "\t\t}" + NL + "\t\treturn myTreeEditPartAdapter;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void activate() {" + NL + "\t\tsuper.activate();" + NL + "\t\tgetDiagramNode().getElement().eAdapters().add(domainModelRefresher);"; >+ protected final String TEXT_568 = NL + "\t\tinstallNotationModelRefresher();"; >+ protected final String TEXT_569 = NL + "\t\tinstallLinkNotationModelRefresher();"; >+ protected final String TEXT_570 = NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void deactivate() {"; >+ protected final String TEXT_571 = NL + "\t\tuninstallLinkNotationModelRefresher();"; >+ protected final String TEXT_572 = NL + "\t\tuninstallNotationModelRefresher();"; >+ protected final String TEXT_573 = NL + "\t\tgetDiagramNode().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\tsuper.deactivate();" + NL + "\t}"; >+ protected final String TEXT_574 = NL; >+ protected final String TEXT_575 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void installNotationModelRefresher() {" + NL + "\t\t"; >+ protected final String TEXT_576 = " refresher = getNotationModelRefresher();" + NL + "\t\tif (refresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >+ protected final String TEXT_577 = " domainModelEditDomain = "; >+ protected final String TEXT_578 = ".getEditingDomain("; >+ protected final String TEXT_579 = ".getElement());" + NL + "\t\trefresher.install(domainModelEditDomain);" + NL + "\t\trefreshNotationModel();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void uninstallNotationModelRefresher() {" + NL + "\t\tgetNotationModelRefresher().uninstall();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_580 = " notationModelRefresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_581 = " getNotationModelRefresher() {" + NL + "\t\tif (notationModelRefresher == null) {" + NL + "\t\t\tnotationModelRefresher = new NotationModelRefresher();" + NL + "\t\t}" + NL + "\t\treturn notationModelRefresher;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class NotationModelRefresher extends "; >+ protected final String TEXT_582 = " {"; >+ protected final String TEXT_583 = NL + NL + "\t\t/**" + NL + "\t\t * NB: Children of this element are selected based on constraint declared in "; >+ protected final String TEXT_584 = ". " + NL + "\t\t * Since no assumptions may be made concerning the runtime behavior of the constraint, <b>any</b> non-touch notification may result in " + NL + "\t\t * notational model having to be updated." + NL + "\t\t * <p/>User is encouraged to change implementation of this method to provide an optimization if it is safe to assume that not all notifications" + NL + "\t\t * result in such an update." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >+ protected final String TEXT_585 = " getConstrainedChildrenFilter() {" + NL + "\t\t\treturn "; >+ protected final String TEXT_586 = ".NOT_TOUCH;" + NL + "\t\t}"; >+ protected final String TEXT_587 = NL + NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly affect the notational model" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_588 = " createFilter() {"; >+ protected final String TEXT_589 = NL + "\t\t\t"; >+ protected final String TEXT_590 = " filter = "; >+ protected final String TEXT_591 = ".createFeatureFilter("; >+ protected final String TEXT_592 = ".eINSTANCE.get"; >+ protected final String TEXT_593 = "());"; >+ protected final String TEXT_594 = NL + "\t\t\tfilter = filter.or("; >+ protected final String TEXT_595 = ".createFeatureFilter("; >+ protected final String TEXT_596 = ".eINSTANCE.get"; >+ protected final String TEXT_597 = "()));"; >+ protected final String TEXT_598 = NL + "\t\t\tfilter = filter.and("; >+ protected final String TEXT_599 = ".createNotifierFilter("; >+ protected final String TEXT_600 = ".getElement()));"; >+ protected final String TEXT_601 = NL + "\t\t\t"; >+ protected final String TEXT_602 = " filter = "; >+ protected final String TEXT_603 = ".createNotifierFilter("; >+ protected final String TEXT_604 = ".getElement());"; >+ protected final String TEXT_605 = NL + "\t\t\tfilter = getConstrainedChildrenFilter().or(filter);"; >+ protected final String TEXT_606 = NL + "\t\t\t"; >+ protected final String TEXT_607 = " filter = getConstrainedChildrenFilter();"; >+ protected final String TEXT_608 = NL + "\t\t\t"; >+ protected final String TEXT_609 = " filter = "; >+ protected final String TEXT_610 = ".NOT_TOUCH;"; >+ protected final String TEXT_611 = NL + "\t\t\treturn filter;"; >+ protected final String TEXT_612 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_613 = " getCreateNotationalElementCommand("; >+ protected final String TEXT_614 = " descriptor) {"; >+ protected final String TEXT_615 = NL; >+ protected final String TEXT_616 = "\t\t\t"; >+ protected final String TEXT_617 = " domainElement = descriptor.getElement();" + NL + "\t\t\tint nodeVisualID = descriptor.getVisualID();" + NL + "\t\t\tswitch (nodeVisualID) {"; >+ protected final String TEXT_618 = NL + "\t\t\tcase "; >+ protected final String TEXT_619 = ".VISUAL_ID:" + NL + "\t\t\t\tif (domainElement instanceof "; >+ protected final String TEXT_620 = ") {" + NL + "\t\t\t\t\treturn new "; >+ protected final String TEXT_621 = "("; >+ protected final String TEXT_622 = ", domainElement, "; >+ protected final String TEXT_623 = "new "; >+ protected final String TEXT_624 = "(0, 0, "; >+ protected final String TEXT_625 = ", "; >+ protected final String TEXT_626 = ")"; >+ protected final String TEXT_627 = NL + "null"; >+ protected final String TEXT_628 = ", "; >+ protected final String TEXT_629 = ".INSTANCE);" + NL + "\t\t\t\t}" + NL + "\t\t\t\treturn null;"; >+ protected final String TEXT_630 = NL + "\t\t\tdefault:" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}"; >+ protected final String TEXT_631 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_632 = " getSemanticChildNodes() {"; >+ protected final String TEXT_633 = NL; >+ protected final String TEXT_634 = NL + "\treturn "; >+ protected final String TEXT_635 = ".EMPTY_LIST;"; >+ protected final String TEXT_636 = NL + "\t"; >+ protected final String TEXT_637 = " result = new "; >+ protected final String TEXT_638 = "();"; >+ protected final String TEXT_639 = NL + "\t"; >+ protected final String TEXT_640 = " viewObject = "; >+ protected final String TEXT_641 = ";" + NL + "\t"; >+ protected final String TEXT_642 = " modelObject = viewObject.getElement();" + NL + "\t"; >+ protected final String TEXT_643 = " nextValue;" + NL + "\tint nodeVID;"; >+ protected final String TEXT_644 = NL + "\tfor("; >+ protected final String TEXT_645 = " it = "; >+ protected final String TEXT_646 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = ("; >+ protected final String TEXT_647 = ") it.next();"; >+ protected final String TEXT_648 = NL + "\tnextValue = ("; >+ protected final String TEXT_649 = ")"; >+ protected final String TEXT_650 = ";"; >+ protected final String TEXT_651 = NL + "\tnodeVID = "; >+ protected final String TEXT_652 = ".INSTANCE.getNodeVisualID(viewObject, nextValue);"; >+ protected final String TEXT_653 = NL + "\tswitch (nodeVID) {"; >+ protected final String TEXT_654 = NL + "\tcase "; >+ protected final String TEXT_655 = ".VISUAL_ID: {"; >+ protected final String TEXT_656 = NL + "\tif ("; >+ protected final String TEXT_657 = ".VISUAL_ID == nodeVID) {"; >+ protected final String TEXT_658 = NL + "\t\tresult.add(new "; >+ protected final String TEXT_659 = "(nextValue, nodeVID));"; >+ protected final String TEXT_660 = NL + "\t\tbreak;" + NL + "\t\t}"; >+ protected final String TEXT_661 = NL + "\t\t}"; >+ protected final String TEXT_662 = NL + "\t}"; >+ protected final String TEXT_663 = NL + "\t}"; >+ protected final String TEXT_664 = NL + "\treturn result;"; >+ protected final String TEXT_665 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Returns whether a notational element should be created for the given domain element. " + NL + "\t\t * The generated code always returns "; >+ protected final String TEXT_666 = ". " + NL + "\t\t * User can change implementation of this method to handle a more sophisticated logic." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean shouldCreateView("; >+ protected final String TEXT_667 = " descriptor) {" + NL + "\t\t\treturn "; >+ protected final String TEXT_668 = ";" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_669 = " getHost() {" + NL + "\t\t\treturn "; >+ protected final String TEXT_670 = ";" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshNotationModel() {" + NL + "\t\t"; >+ protected final String TEXT_671 = " childRefresher = getNotationModelRefresher();" + NL + "\t\tif (!childRefresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >+ protected final String TEXT_672 = " command = childRefresher.buildRefreshNotationModelCommand();" + NL + "\t\tif (command == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >+ protected final String TEXT_673 = " domainModelEditDomain = "; >+ protected final String TEXT_674 = ".getEditingDomain("; >+ protected final String TEXT_675 = ".getElement());" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(new "; >+ protected final String TEXT_676 = "(domainModelEditDomain, command));" + NL + "\t}" + NL; >+ protected final String TEXT_677 = NL; >+ protected final String TEXT_678 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void installLinkNotationModelRefresher() {" + NL + "\t\tLinkNotationModelRefresher refresher = getLinkNotationModelRefresher();" + NL + "\t\tif (refresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >+ protected final String TEXT_679 = " domainModelEditDomain = "; >+ protected final String TEXT_680 = ".getEditingDomain("; >+ protected final String TEXT_681 = ".getElement());" + NL + "\t\trefresher.install(domainModelEditDomain);" + NL + "\t\trefreshLinkNotationModel();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void uninstallLinkNotationModelRefresher() {" + NL + "\t\tgetLinkNotationModelRefresher().uninstall();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate LinkNotationModelRefresher linkNotationModelRefresher;" + NL + "" + NL + "\t/**" + NL + "\t * Service to find a notational element that corresponds to the given underlying domain element. " + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_682 = " viewService;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_683 = " getViewService() {" + NL + "\t\tif (viewService == null) {" + NL + "\t\t\tviewService = new "; >+ protected final String TEXT_684 = "(getViewer());" + NL + "\t\t}" + NL + "\t\treturn viewService;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate LinkNotationModelRefresher getLinkNotationModelRefresher() {" + NL + "\t\tif (linkNotationModelRefresher == null) {" + NL + "\t\t\tlinkNotationModelRefresher = new LinkNotationModelRefresher(getViewService());" + NL + "\t\t}" + NL + "\t\treturn linkNotationModelRefresher;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class LinkNotationModelRefresher extends "; >+ protected final String TEXT_685 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic LinkNotationModelRefresher("; >+ protected final String TEXT_686 = " viewService) {" + NL + "\t\t\tsuper(viewService);" + NL + "\t\t}"; >+ protected final String TEXT_687 = NL + NL + "\t\t/**" + NL + "\t\t * NB: Child links of this element are selected based on constraint declared in "; >+ protected final String TEXT_688 = ". " + NL + "\t\t * Since no assumptions may be made concerning the runtime behavior of the constraint, <b>any</b> non-touch notification may result in " + NL + "\t\t * notational model having to be updated." + NL + "\t\t * <p/>User is encouraged to change implementation of this method to provide an optimization if it is safe to assume that not all notifications" + NL + "\t\t * result in such an update." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >+ protected final String TEXT_689 = " getConstrainedChildLinksFilter() {" + NL + "\t\t\treturn "; >+ protected final String TEXT_690 = ".NOT_TOUCH;" + NL + "\t\t}"; >+ protected final String TEXT_691 = NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly result in uncontained links. " + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >+ protected final String TEXT_692 = " createUncontainedLinksFilter() {" + NL + "\t\t\treturn "; >+ protected final String TEXT_693 = ".createEventTypeFilter("; >+ protected final String TEXT_694 = ".SET).or(" + NL + "\t\t\t\t"; >+ protected final String TEXT_695 = ".createEventTypeFilter("; >+ protected final String TEXT_696 = ".UNSET).or(" + NL + "\t\t\t\t"; >+ protected final String TEXT_697 = ".createEventTypeFilter("; >+ protected final String TEXT_698 = ".REMOVE).or(" + NL + "\t\t\t\t"; >+ protected final String TEXT_699 = ".createEventTypeFilter("; >+ protected final String TEXT_700 = ".REMOVE_MANY)" + NL + "\t\t\t)));" + NL + "\t\t}"; >+ protected final String TEXT_701 = NL + "\t\t/**" + NL + "\t\t * Creates a notification filter which filters notifications that may possibly affect the notational model" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_702 = " createFilter() {"; >+ protected final String TEXT_703 = NL; >+ protected final String TEXT_704 = NL + "\t\t\t"; >+ protected final String TEXT_705 = " filter = "; >+ protected final String TEXT_706 = ".createFeatureFilter("; >+ protected final String TEXT_707 = ".eINSTANCE.get"; >+ protected final String TEXT_708 = "());"; >+ protected final String TEXT_709 = NL + "\t\t\tfilter = filter.or("; >+ protected final String TEXT_710 = ".createFeatureFilter("; >+ protected final String TEXT_711 = ".eINSTANCE.get"; >+ protected final String TEXT_712 = "()));"; >+ protected final String TEXT_713 = NL; >+ protected final String TEXT_714 = NL + "\t\t\t"; >+ protected final String TEXT_715 = " filter = "; >+ protected final String TEXT_716 = ".createFeatureFilter("; >+ protected final String TEXT_717 = ".eINSTANCE.get"; >+ protected final String TEXT_718 = "());"; >+ protected final String TEXT_719 = NL + "\t\t\tfilter = filter.or("; >+ protected final String TEXT_720 = ".createFeatureFilter("; >+ protected final String TEXT_721 = ".eINSTANCE.get"; >+ protected final String TEXT_722 = "()));"; >+ protected final String TEXT_723 = NL; >+ protected final String TEXT_724 = NL + "\t\t\t"; >+ protected final String TEXT_725 = " filter = "; >+ protected final String TEXT_726 = ".createFeatureFilter("; >+ protected final String TEXT_727 = ".eINSTANCE.get"; >+ protected final String TEXT_728 = "());"; >+ protected final String TEXT_729 = NL + "\t\t\tfilter = filter.or("; >+ protected final String TEXT_730 = ".createFeatureFilter("; >+ protected final String TEXT_731 = ".eINSTANCE.get"; >+ protected final String TEXT_732 = "()));"; >+ protected final String TEXT_733 = NL; >+ protected final String TEXT_734 = NL + "\t\t\t"; >+ protected final String TEXT_735 = " filter = "; >+ protected final String TEXT_736 = ".createFeatureFilter("; >+ protected final String TEXT_737 = ".eINSTANCE.get"; >+ protected final String TEXT_738 = "());"; >+ protected final String TEXT_739 = NL + "\t\t\tfilter = filter.or("; >+ protected final String TEXT_740 = ".createFeatureFilter("; >+ protected final String TEXT_741 = ".eINSTANCE.get"; >+ protected final String TEXT_742 = "()));"; >+ protected final String TEXT_743 = NL + "\t\t\tfilter = getConstrainedChildLinksFilter().or(filter);"; >+ protected final String TEXT_744 = NL + "\t\t\t"; >+ protected final String TEXT_745 = " filter = getConstrainedChildLinksFilter();"; >+ protected final String TEXT_746 = NL + "\t\t\tfilter = filter.or(createUncontainedLinksFilter());"; >+ protected final String TEXT_747 = NL + "\t\t\t"; >+ protected final String TEXT_748 = " filter = createUncontainedLinksFilter();"; >+ protected final String TEXT_749 = NL + "\t\t\t"; >+ protected final String TEXT_750 = " filter = "; >+ protected final String TEXT_751 = ".NOT_TOUCH;"; >+ protected final String TEXT_752 = NL + "\t\t\treturn filter;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t \t * @generated" + NL + "\t \t */" + NL + "\t\tprotected "; >+ protected final String TEXT_753 = " getCreateNotationalElementCommand("; >+ protected final String TEXT_754 = " descriptor) {" + NL + "\t\t\t"; >+ protected final String TEXT_755 = " linkDescriptor = ("; >+ protected final String TEXT_756 = ") descriptor;"; >+ protected final String TEXT_757 = NL; >+ protected final String TEXT_758 = "\t\t\t"; >+ protected final String TEXT_759 = " sourceView = getViewService().findView(linkDescriptor.getSource());" + NL + "\t\t\t"; >+ protected final String TEXT_760 = " targetView = getViewService().findView(linkDescriptor.getDestination());" + NL + "\t\t\t"; >+ protected final String TEXT_761 = " decorator = null;" + NL + "\t\t\tif (sourceView == null || targetView == null) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\tswitch (linkDescriptor.getVisualID()) {"; >+ protected final String TEXT_762 = NL + "\t\t\tcase "; >+ protected final String TEXT_763 = ".VISUAL_ID:" + NL + "\t\t\t\tif (linkDescriptor.getElement() instanceof "; >+ protected final String TEXT_764 = ") {" + NL + "\t\t\t\t\tdecorator = "; >+ protected final String TEXT_765 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;"; >+ protected final String TEXT_766 = NL + "\t\t\tcase "; >+ protected final String TEXT_767 = ".VISUAL_ID:" + NL + "\t\t\t\tif (linkDescriptor.getElement() == null) {" + NL + "\t\t\t\t\tdecorator = "; >+ protected final String TEXT_768 = ".INSTANCE;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tbreak;"; >+ protected final String TEXT_769 = NL + "\t\t\t}" + NL + "\t\t\tif (decorator == null) {" + NL + "\t\t\t\treturn null;" + NL + "\t\t\t}" + NL + "\t\t\treturn new "; >+ protected final String TEXT_770 = "("; >+ protected final String TEXT_771 = ", linkDescriptor.getElement(), sourceView, targetView, decorator);"; >+ protected final String TEXT_772 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_773 = " getSemanticChildLinks() {"; >+ protected final String TEXT_774 = NL; >+ protected final String TEXT_775 = "\t"; >+ protected final String TEXT_776 = " result = new "; >+ protected final String TEXT_777 = "();"; >+ protected final String TEXT_778 = NL + "\t"; >+ protected final String TEXT_779 = " modelObject = "; >+ protected final String TEXT_780 = ".getElement();" + NL + "\t"; >+ protected final String TEXT_781 = " nextValue;"; >+ protected final String TEXT_782 = NL + "\tint linkVID;"; >+ protected final String TEXT_783 = NL + "\tfor("; >+ protected final String TEXT_784 = " it = "; >+ protected final String TEXT_785 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = ("; >+ protected final String TEXT_786 = ") it.next();"; >+ protected final String TEXT_787 = NL + "\tnextValue = ("; >+ protected final String TEXT_788 = ")"; >+ protected final String TEXT_789 = ";"; >+ protected final String TEXT_790 = NL + "\tlinkVID = "; >+ protected final String TEXT_791 = ".INSTANCE.getLinkWithClassVisualID(nextValue);"; >+ protected final String TEXT_792 = NL + "\tswitch (linkVID) {"; >+ protected final String TEXT_793 = NL + "\tcase "; >+ protected final String TEXT_794 = ".VISUAL_ID: {"; >+ protected final String TEXT_795 = NL + "\tif ("; >+ protected final String TEXT_796 = ".VISUAL_ID == linkVID) {"; >+ protected final String TEXT_797 = NL + "\t\t"; >+ protected final String TEXT_798 = " source = ("; >+ protected final String TEXT_799 = ")"; >+ protected final String TEXT_800 = ";"; >+ protected final String TEXT_801 = NL + "\t\t"; >+ protected final String TEXT_802 = " source = "; >+ protected final String TEXT_803 = ".getElement();"; >+ protected final String TEXT_804 = NL + "\t\t"; >+ protected final String TEXT_805 = " target = ("; >+ protected final String TEXT_806 = ")"; >+ protected final String TEXT_807 = ";"; >+ protected final String TEXT_808 = NL + "\t\t"; >+ protected final String TEXT_809 = " target = "; >+ protected final String TEXT_810 = ".getElement();"; >+ protected final String TEXT_811 = NL + "\t\tif (source != null && target != null) {" + NL + "\t\t\tresult.add(new "; >+ protected final String TEXT_812 = "(source, target, nextValue, linkVID));" + NL + "\t\t}"; >+ protected final String TEXT_813 = NL + "\t\tbreak;" + NL + "\t}"; >+ protected final String TEXT_814 = NL + "\t}"; >+ protected final String TEXT_815 = NL + "\t}"; >+ protected final String TEXT_816 = NL + "\t}"; >+ protected final String TEXT_817 = NL + "\tfor("; >+ protected final String TEXT_818 = " it = "; >+ protected final String TEXT_819 = ".iterator(); it.hasNext(); ) {" + NL + "\t\tnextValue = ("; >+ protected final String TEXT_820 = ") it.next();"; >+ protected final String TEXT_821 = NL + "\tnextValue = ("; >+ protected final String TEXT_822 = ")"; >+ protected final String TEXT_823 = ";"; >+ protected final String TEXT_824 = NL + "\tif (nextValue != null) {"; >+ protected final String TEXT_825 = NL + "\t\tresult.add(new "; >+ protected final String TEXT_826 = "(modelObject, nextValue, null, "; >+ protected final String TEXT_827 = ".VISUAL_ID));"; >+ protected final String TEXT_828 = NL + "\t}"; >+ protected final String TEXT_829 = NL + "\t}"; >+ protected final String TEXT_830 = NL + "\treturn result;"; >+ protected final String TEXT_831 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_832 = " getNotationalChildLinks() {" + NL + "\t\t\t"; >+ protected final String TEXT_833 = " result = new "; >+ protected final String TEXT_834 = "();" + NL + "\t\t\t"; >+ protected final String TEXT_835 = " allLinks = "; >+ protected final String TEXT_836 = ".getEdges();" + NL + "\t\t\tfor("; >+ protected final String TEXT_837 = " it = allLinks.iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t"; >+ protected final String TEXT_838 = " next = ("; >+ protected final String TEXT_839 = ") it.next();"; >+ protected final String TEXT_840 = NL + "\t\t\t\tif (next.isSetElement() && next.getElement() != null && next.getElement().eResource() == null) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; >+ protected final String TEXT_841 = " source = next.getSource();" + NL + "\t\t\t\tif (source == null || (source.isSetElement() && source.getElement() != null && source.getElement().eResource() == null)) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}" + NL + "\t\t\t\t"; >+ protected final String TEXT_842 = " target = next.getTarget();" + NL + "\t\t\t\tif (target == null || (target.isSetElement() && target.getElement() != null && target.getElement().eResource() == null)) {" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tcontinue;" + NL + "\t\t\t\t}"; >+ protected final String TEXT_843 = NL + "\t\t\t\tif (!next.isSetElement() || next.getElement() == null) {" + NL + "\t\t\t\t\tif (next.getSource() == "; >+ protected final String TEXT_844 = ") {" + NL + "\t\t\t\t\t\tint linkVID = "; >+ protected final String TEXT_845 = ".getVisualID(next);" + NL + "\t\t\t\t\t\tswitch (linkVID) {"; >+ protected final String TEXT_846 = NL + "\t\t\t\t\t\tcase "; >+ protected final String TEXT_847 = ".VISUAL_ID:"; >+ protected final String TEXT_848 = NL + "\t\t\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}"; >+ protected final String TEXT_849 = NL + "\t\t\t\t} else {"; >+ protected final String TEXT_850 = NL + "\t\t\t\t}"; >+ protected final String TEXT_851 = NL + "\t\t\t\tif (next.isSetElement() && next.getElement() != null) {"; >+ protected final String TEXT_852 = NL + "\t\t\t\t\tif (next.getElement().eContainer() == "; >+ protected final String TEXT_853 = ".getElement()) {" + NL + "\t\t\t\t\t\tint linkVID = "; >+ protected final String TEXT_854 = ".getVisualID(next);" + NL + "\t\t\t\t\t\tswitch (linkVID) {"; >+ protected final String TEXT_855 = NL + "\t\t\t\t\t\tcase "; >+ protected final String TEXT_856 = ".VISUAL_ID:"; >+ protected final String TEXT_857 = NL + "\t\t\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\t\t\tbreak;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}"; >+ protected final String TEXT_858 = NL + "\t\t\t}" + NL + "\t\t\treturn result;" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Returns whether a notational edge should be created for the given domain element. " + NL + "\t\t * The generated code always returns "; >+ protected final String TEXT_859 = ". " + NL + "\t\t * User can change implementation of this method to handle a more sophisticated logic." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean shouldCreateView("; >+ protected final String TEXT_860 = " descriptor) {" + NL + "\t\t\treturn "; >+ protected final String TEXT_861 = ";" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_862 = " getHost() {" + NL + "\t\t\treturn "; >+ protected final String TEXT_863 = ";" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshLinkNotationModel() {" + NL + "\t\t"; >+ protected final String TEXT_864 = " linkRefresher = getLinkNotationModelRefresher();" + NL + "\t\tif (!linkRefresher.isInstalled()) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >+ protected final String TEXT_865 = " command = linkRefresher.buildRefreshNotationModelCommand();" + NL + "\t\tif (command == null) {" + NL + "\t\t\treturn;" + NL + "\t\t}" + NL + "\t\t"; >+ protected final String TEXT_866 = " domainModelEditDomain = "; >+ protected final String TEXT_867 = ".getEditingDomain("; >+ protected final String TEXT_868 = ".getElement());" + NL + "\t\tgetViewer().getEditDomain().getCommandStack().execute(new "; >+ protected final String TEXT_869 = "(domainModelEditDomain, command));" + NL + "\t}"; >+ protected final String TEXT_870 = NL; >+ protected final String TEXT_871 = NL; >+ protected final String TEXT_872 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_873 = " domainModelRefresher = new "; >+ protected final String TEXT_874 = "(this);" + NL; >+ protected final String TEXT_875 = NL; >+ protected final String TEXT_876 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void addRefresher("; >+ protected final String TEXT_877 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.addRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void removeRefresher("; >+ protected final String TEXT_878 = " feature, Refresher refresher) {" + NL + "\t\tCompositeRefresher compositeRefresher = getCompositeRefresher(feature);" + NL + "\t\tcompositeRefresher.removeRefresher(refresher);" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate CompositeRefresher getCompositeRefresher("; >+ protected final String TEXT_879 = " feature) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\tRefresher refresher = (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t\tif (refresher instanceof CompositeRefresher) {" + NL + "\t\t\treturn (CompositeRefresher) refresher;" + NL + "\t\t}" + NL + "\t\tCompositeRefresher result = new CompositeRefresher();" + NL + "\t\tif (refresher != null) {" + NL + "\t\t\tresult.addRefresher(refresher);" + NL + "\t\t}" + NL + "\t\tstructuralFeatures2Refresher.put(feature, result);" + NL + "\t\treturn result;" + NL + "\t}" + NL; >+ protected final String TEXT_880 = NL; >+ protected final String TEXT_881 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshFont() {"; >+ protected final String TEXT_882 = NL + "\t\t"; >+ protected final String TEXT_883 = " style =" + NL + "\t\t\t("; >+ protected final String TEXT_884 = ") "; >+ protected final String TEXT_885 = ".getStyle(" + NL + "\t\t\t\t"; >+ protected final String TEXT_886 = ".eINSTANCE.getFontStyle());" + NL + "\t\t"; >+ protected final String TEXT_887 = " toDispose = createdFont;" + NL + "\t\tif (style != null) {" + NL + "\t\t\tString fontName = style.getFontName();" + NL + "\t\t\tint fontHeight = style.getFontHeight();" + NL + "\t\t\tint fontStyle = "; >+ protected final String TEXT_888 = ".NORMAL;" + NL + "\t\t\tif (style.isBold()) {" + NL + "\t\t\t\tfontStyle |= "; >+ protected final String TEXT_889 = ".BOLD;" + NL + "\t\t\t}" + NL + "\t\t\tif (style.isItalic()) {" + NL + "\t\t\t\tfontStyle |= "; >+ protected final String TEXT_890 = ".ITALIC;" + NL + "\t\t\t}" + NL + "\t\t\t"; >+ protected final String TEXT_891 = " currentFont = getFigure().getFont();" + NL + "\t\t\tif (currentFont != null) {" + NL + "\t\t\t\t"; >+ protected final String TEXT_892 = " currentFontData = currentFont.getFontData()[0];" + NL + "\t\t\t\tif (currentFontData.getName().equals(fontName) && currentFontData.getHeight() == fontHeight && currentFontData.getStyle() == fontStyle) {" + NL + "\t\t\t\t\treturn;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\tcreatedFont = new "; >+ protected final String TEXT_893 = "(null, fontName, fontHeight, fontStyle);" + NL + "\t\t\tgetFigure().setFont(createdFont);" + NL + "\t\t} else {" + NL + "\t\t\t//revert to the default font" + NL + "\t\t\tgetFigure().setFont(getViewer().getControl().getFont());" + NL + "\t\t\tcreatedFont = null;" + NL + "\t\t}" + NL + "\t\tif (toDispose != null) {" + NL + "\t\t\ttoDispose.dispose();" + NL + "\t\t}"; >+ protected final String TEXT_894 = "\t" + NL + "\t}"; >+ protected final String TEXT_895 = NL + NL + "\t/**" + NL + "\t * The font (created by {@link #refreshFont()}) currently assigned to the label (unless the default font is assigned)." + NL + "\t * Whenever another non-default font is assigned to it, it is safe to dispose the previous one." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_896 = " createdFont;"; >+ protected final String TEXT_897 = "\t" + NL; >+ protected final String TEXT_898 = NL; >+ protected final String TEXT_899 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshForegroundColor() {" + NL + "\t\t"; >+ protected final String TEXT_900 = " style = ("; >+ protected final String TEXT_901 = ") "; >+ protected final String TEXT_902 = ".getStyle("; >+ protected final String TEXT_903 = ".eINSTANCE.getLineStyle());" + NL + "\t\t"; >+ protected final String TEXT_904 = " toDispose = createdForegroundColor;" + NL + "\t\tif (style != null) {" + NL + "\t\t\tint foregroundColor = style.getLineColor();" + NL + "\t\t\tint red = foregroundColor & 0x000000FF;" + NL + "\t\t\tint green = (foregroundColor & 0x0000FF00) >> 8;" + NL + "\t\t\tint blue = (foregroundColor & 0x00FF0000) >> 16;" + NL + "\t\t\t"; >+ protected final String TEXT_905 = " currentColor = getFigure().getForegroundColor();" + NL + "\t\t\tif (currentColor != null && currentColor.getRed() == red && currentColor.getGreen() == green && currentColor.getBlue() == blue) {" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tcreatedForegroundColor = new "; >+ protected final String TEXT_906 = "(null, red, green, blue);" + NL + "\t\t\tgetFigure().setForegroundColor(createdForegroundColor);" + NL + "\t\t} else {" + NL + "\t\t\tgetFigure().setForegroundColor(getViewer().getControl().getForeground());" + NL + "\t\t\tcreatedForegroundColor = null;" + NL + "\t\t}" + NL + "\t\tif (toDispose != null) {" + NL + "\t\t\ttoDispose.dispose();" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * The color (created by {@link #refreshForegroundColor()}) currently assigned to the figure." + NL + "\t * Whenever another color is assigned to it, it is safe to dispose the previous one." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_907 = " createdForegroundColor;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void refreshBackgroundColor() {" + NL + "\t\t"; >+ protected final String TEXT_908 = " style = ("; >+ protected final String TEXT_909 = ") "; >+ protected final String TEXT_910 = ".getStyle("; >+ protected final String TEXT_911 = ".eINSTANCE.getFillStyle());" + NL + "\t\t"; >+ protected final String TEXT_912 = " toDispose = createdBackgroundColor;" + NL + "\t\tif (style != null) {" + NL + "\t\t\tint backgroundColor = style.getFillColor();" + NL + "\t\t\tint red = backgroundColor & 0x000000FF;" + NL + "\t\t\tint green = (backgroundColor & 0x0000FF00) >> 8;" + NL + "\t\t\tint blue = (backgroundColor & 0x00FF0000) >> 16;" + NL + "\t\t\t"; >+ protected final String TEXT_913 = " currentColor = getFigure().getBackgroundColor();" + NL + "\t\t\tif (currentColor != null && currentColor.getRed() == red && currentColor.getGreen() == green && currentColor.getBlue() == blue) {" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tcreatedBackgroundColor = new "; >+ protected final String TEXT_914 = "(null, red, green, blue);" + NL + "\t\t\tgetFigure().setBackgroundColor(createdBackgroundColor);" + NL + "\t\t} else {" + NL + "\t\t\tgetFigure().setBackgroundColor(getViewer().getControl().getBackground());" + NL + "\t\t}" + NL + "\t\tif (toDispose != null) {" + NL + "\t\t\ttoDispose.dispose();" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * The color (created by {@link #refreshBackgroundColor()}) currently assigned to the figure." + NL + "\t * Whenever another color is assigned to it, it is safe to dispose the previous one." + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_915 = " createdBackgroundColor;" + NL; >+ protected final String TEXT_916 = NL; >+ protected final String TEXT_917 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_918 = " structuralFeatures2Refresher;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic Refresher getRefresher("; >+ protected final String TEXT_919 = " feature, "; >+ protected final String TEXT_920 = " msg) {" + NL + "\t\tif (structuralFeatures2Refresher == null) {" + NL + "\t\t\tcreateRefreshers();" + NL + "\t\t}" + NL + "\t\treturn (Refresher) structuralFeatures2Refresher.get(feature);" + NL + "\t}" + NL + "" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate void createRefreshers() {" + NL + "\t\tstructuralFeatures2Refresher = new "; >+ protected final String TEXT_921 = "();"; >+ protected final String TEXT_922 = NL; >+ protected final String TEXT_923 = "\t\tRefresher childrenRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshChildren();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; >+ protected final String TEXT_924 = ".eINSTANCE.getView_PersistedChildren(), childrenRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; >+ protected final String TEXT_925 = ".eINSTANCE.getView_TransientChildren(), childrenRefresher);"; >+ protected final String TEXT_926 = NL; >+ protected final String TEXT_927 = "\t\tRefresher boundsRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshBounds();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; >+ protected final String TEXT_928 = ".eINSTANCE.getNode_LayoutConstraint(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; >+ protected final String TEXT_929 = ".eINSTANCE.getSize_Width(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; >+ protected final String TEXT_930 = ".eINSTANCE.getSize_Height(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; >+ protected final String TEXT_931 = ".eINSTANCE.getLocation_X(), boundsRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; >+ protected final String TEXT_932 = ".eINSTANCE.getLocation_Y(), boundsRefresher);"; >+ protected final String TEXT_933 = NL; >+ protected final String TEXT_934 = "\t\tRefresher visibilityRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshVisibility();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; >+ protected final String TEXT_935 = ".eINSTANCE.getView_Visible(), visibilityRefresher);"; >+ protected final String TEXT_936 = NL; >+ protected final String TEXT_937 = "\t\tRefresher sourceEdgesRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshSourceConnections();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; >+ protected final String TEXT_938 = ".eINSTANCE.getView_SourceEdges(), sourceEdgesRefresher);"; >+ protected final String TEXT_939 = NL; >+ protected final String TEXT_940 = "\t\tRefresher targetEdgesRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshTargetConnections();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; >+ protected final String TEXT_941 = ".eINSTANCE.getView_TargetEdges(), targetEdgesRefresher);"; >+ protected final String TEXT_942 = NL; >+ protected final String TEXT_943 = "\t\tRefresher fontRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshFont();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; >+ protected final String TEXT_944 = ".eINSTANCE.getFontStyle_FontHeight(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; >+ protected final String TEXT_945 = ".eINSTANCE.getFontStyle_FontName(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; >+ protected final String TEXT_946 = ".eINSTANCE.getFontStyle_Bold(), fontRefresher);" + NL + "\t\tstructuralFeatures2Refresher.put("; >+ protected final String TEXT_947 = ".eINSTANCE.getFontStyle_Italic(), fontRefresher);" + NL + "\t\t"; >+ protected final String TEXT_948 = NL; >+ protected final String TEXT_949 = "\t\tRefresher backgroundColorRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshBackgroundColor();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; >+ protected final String TEXT_950 = ".eINSTANCE.getFillStyle_FillColor(), backgroundColorRefresher);" + NL + "\t\tRefresher foregroundColorRefresher = new Refresher() {" + NL + "\t\t\tpublic void refresh() {" + NL + "\t\t\t\trefreshForegroundColor();" + NL + "\t\t\t}" + NL + "\t\t};" + NL + "\t\tstructuralFeatures2Refresher.put("; >+ protected final String TEXT_951 = ".eINSTANCE.getLineStyle_LineColor(), foregroundColorRefresher);" + NL + "\t}" + NL; >+ protected final String TEXT_952 = NL; >+ protected final String TEXT_953 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_954 = "static "; >+ protected final String TEXT_955 = "class Create"; >+ protected final String TEXT_956 = "Command extends "; >+ protected final String TEXT_957 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; >+ protected final String TEXT_958 = " notationAddCommand;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Create"; >+ protected final String TEXT_959 = "Command("; >+ protected final String TEXT_960 = " parent, "; >+ protected final String TEXT_961 = " request"; >+ protected final String TEXT_962 = ", "; >+ protected final String TEXT_963 = " constraint"; >+ protected final String TEXT_964 = ") {" + NL + "\t\t\t"; >+ protected final String TEXT_965 = " domainModelEditDomain = "; >+ protected final String TEXT_966 = ".getEditingDomain(parent.getDiagram().getElement());"; >+ protected final String TEXT_967 = NL + "\t\t\t"; >+ protected final String TEXT_968 = " createdDomainElement = "; >+ protected final String TEXT_969 = ".eINSTANCE.create(" + NL + "\t\t\t\t"; >+ protected final String TEXT_970 = ".eINSTANCE.get"; >+ protected final String TEXT_971 = "());"; >+ protected final String TEXT_972 = NL + "\t\t\t"; >+ protected final String TEXT_973 = " createdDomainElement = "; >+ protected final String TEXT_974 = ".eINSTANCE.create"; >+ protected final String TEXT_975 = "();"; >+ protected final String TEXT_976 = NL + "\t\t\t"; >+ protected final String TEXT_977 = NL + "\t\t\t"; >+ protected final String TEXT_978 = "."; >+ protected final String TEXT_979 = ".initializeElement("; >+ protected final String TEXT_980 = "("; >+ protected final String TEXT_981 = ") "; >+ protected final String TEXT_982 = "createdDomainElement);"; >+ protected final String TEXT_983 = NL; >+ protected final String TEXT_984 = NL + "\t\tif ("; >+ protected final String TEXT_985 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_986 = NL + "\t\t}"; >+ protected final String TEXT_987 = NL + "\t\tif ("; >+ protected final String TEXT_988 = ".size() >= "; >+ protected final String TEXT_989 = ".eINSTANCE.get"; >+ protected final String TEXT_990 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_991 = NL + "\t\t}"; >+ protected final String TEXT_992 = NL; >+ protected final String TEXT_993 = NL + "\t\tif ("; >+ protected final String TEXT_994 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_995 = NL + "\t\t}"; >+ protected final String TEXT_996 = NL + "\t\tif ("; >+ protected final String TEXT_997 = ".size() >= "; >+ protected final String TEXT_998 = ".eINSTANCE.get"; >+ protected final String TEXT_999 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_1000 = NL + "\t\t}"; >+ protected final String TEXT_1001 = NL + "\t\t\t"; >+ protected final String TEXT_1002 = " compoundCommand = new "; >+ protected final String TEXT_1003 = "();" + NL + "\t\t\tcompoundCommand.append("; >+ protected final String TEXT_1004 = ".create(domainModelEditDomain, parent.getElement(), " + NL + "\t\t\t\t"; >+ protected final String TEXT_1005 = ".eINSTANCE.get"; >+ protected final String TEXT_1006 = "(), createdDomainElement));" + NL + "\t\t\tcompoundCommand.append("; >+ protected final String TEXT_1007 = ".create(domainModelEditDomain, parent.getElement(), " + NL + "\t\t\t\t"; >+ protected final String TEXT_1008 = ".eINSTANCE.get"; >+ protected final String TEXT_1009 = "(), createdDomainElement));" + NL + "\t\t\tthis.domainModelAddCommand = compoundCommand;"; >+ protected final String TEXT_1010 = NL + "\t\t\tthis.domainModelAddCommand = "; >+ protected final String TEXT_1011 = ".create(domainModelEditDomain, parent.getElement(), " + NL + "\t\t\t\t"; >+ protected final String TEXT_1012 = ".eINSTANCE.get"; >+ protected final String TEXT_1013 = "(), createdDomainElement);"; >+ protected final String TEXT_1014 = NL + "\t\t\tconstraint = constraint.union(new "; >+ protected final String TEXT_1015 = "("; >+ protected final String TEXT_1016 = ", "; >+ protected final String TEXT_1017 = "));"; >+ protected final String TEXT_1018 = NL + "\t\t\tthis.notationAddCommand = new "; >+ protected final String TEXT_1019 = "(parent, "; >+ protected final String TEXT_1020 = "("; >+ protected final String TEXT_1021 = ") "; >+ protected final String TEXT_1022 = "createdDomainElement, " + NL + "\t\t\t\t"; >+ protected final String TEXT_1023 = "constraint"; >+ protected final String TEXT_1024 = "null"; > protected final String TEXT_1025 = ", "; >- protected final String TEXT_1026 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; >- protected final String TEXT_1027 = NL + "\t\t\treturn true;"; >- protected final String TEXT_1028 = NL; >- protected final String TEXT_1029 = NL + "\t\tif ("; >- protected final String TEXT_1030 = " != null) {" + NL + "\t\t\t"; >- protected final String TEXT_1031 = NL + "\t\t}"; >- protected final String TEXT_1032 = NL + "\t\tif ("; >- protected final String TEXT_1033 = ".size() >= "; >- protected final String TEXT_1034 = ".eINSTANCE.get"; >- protected final String TEXT_1035 = ".getUpperBound()) {" + NL + "\t\t\t"; >- protected final String TEXT_1036 = NL + "\t\t}"; >- protected final String TEXT_1037 = NL; >- protected final String TEXT_1038 = NL + "\t\t\tif(!"; >- protected final String TEXT_1039 = ".canCreateLink("; >- protected final String TEXT_1040 = ", "; >- protected final String TEXT_1041 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; >- protected final String TEXT_1042 = NL + "\t\t\treturn true;"; >- protected final String TEXT_1043 = NL + "\t\t\treturn false;"; >- protected final String TEXT_1044 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >- protected final String TEXT_1045 = " createReconnectCommand() {" + NL + "\t\t\t"; >- protected final String TEXT_1046 = " editingDomain = "; >- protected final String TEXT_1047 = ".getEditingDomain(oldSource.getDiagram().getElement());" + NL + "\t\t\t"; >- protected final String TEXT_1048 = " result = new "; >- protected final String TEXT_1049 = "();" + NL + "\t\t\tresult.append(new "; >- protected final String TEXT_1050 = "(edge, newSource));"; >+ protected final String TEXT_1026 = ".INSTANCE);" + NL + "\t\t\trequest.setCreatedObject(notationAddCommand.getCreatedView());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final org.eclipse.emf.common.command.Command domainModelAddCommand;" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canExecute() {" + NL + "\t\t\treturn domainModelAddCommand != null" + NL + "\t\t\t\t\t&& domainModelAddCommand.canExecute() && notationAddCommand != null && notationAddCommand.canExecute();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn domainModelAddCommand != null" + NL + "\t\t\t\t\t&& domainModelAddCommand.canUndo() && notationAddCommand != null && notationAddCommand.canUndo();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\tdomainModelAddCommand.execute();" + NL + "\t\t\tnotationAddCommand.execute();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\tnotationAddCommand.undo();" + NL + "\t\t\tdomainModelAddCommand.undo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\texecute();" + NL + "\t\t}" + NL + "\t}"; >+ protected final String TEXT_1027 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Reconnect"; >+ protected final String TEXT_1028 = "SourceCommand extends "; >+ protected final String TEXT_1029 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >+ protected final String TEXT_1030 = " edge;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >+ protected final String TEXT_1031 = " newSource;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >+ protected final String TEXT_1032 = " oldSource;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >+ protected final String TEXT_1033 = " reconnectCommand;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect"; >+ protected final String TEXT_1034 = "SourceCommand("; >+ protected final String TEXT_1035 = " request) {" + NL + "\t\t\tthis(("; >+ protected final String TEXT_1036 = ")request.getConnectionEditPart().getModel(), ("; >+ protected final String TEXT_1037 = ")request.getTarget().getModel());" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect"; >+ protected final String TEXT_1038 = "SourceCommand("; >+ protected final String TEXT_1039 = " edge, "; >+ protected final String TEXT_1040 = " newSource) {" + NL + "\t\t\tthis.edge = edge;" + NL + "\t\t\tthis.newSource = newSource;" + NL + "\t\t\tthis.oldSource = edge.getSource();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\treconnectCommand.execute();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn reconnectCommand.canUndo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\treconnectCommand.undo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\texecute();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean prepare() {"; >+ protected final String TEXT_1041 = NL + "\t\t\tfinal boolean[] resultHolder = new boolean[1];" + NL + "\t\t\t//To validate the reconnection against constraints, the current link should be deleted. Of course, we must then undo its deletion." + NL + "\t\t\tfinal "; >+ protected final String TEXT_1042 = " domainModelEditDomain = "; >+ protected final String TEXT_1043 = ".getEditingDomain(oldSource.getDiagram().getElement());" + NL + "\t\t\t"; >+ protected final String TEXT_1044 = " command = new "; >+ protected final String TEXT_1045 = "() {" + NL + "\t\t\t\tprivate "; >+ protected final String TEXT_1046 = " deleteCommand = createDomainModelRemoveCommand(domainModelEditDomain);" + NL + "\t\t\t\tpublic boolean canExecute() {" + NL + "\t\t\t\t\treturn deleteCommand.canExecute();" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic boolean canUndo() {" + NL + "\t\t\t\t\treturn true;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void redo() {" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void undo() {" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void execute() {" + NL + "\t\t\t\t\tdeleteCommand.execute();" + NL + "\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\tresultHolder[0] = canReconnect();" + NL + "\t\t\t\t\t} finally {" + NL + "\t\t\t\t\t\tdeleteCommand.undo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "\t\t\tif (!command.canExecute()) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}" + NL + "\t\t\tnew "; >+ protected final String TEXT_1047 = "(domainModelEditDomain, command).execute();" + NL + "\t\t\tif (resultHolder[0]) {" + NL + "\t\t\t\treconnectCommand = createReconnectCommand();" + NL + "\t\t\t}" + NL + "\t\t\treturn resultHolder[0] && reconnectCommand.canExecute();"; >+ protected final String TEXT_1048 = NL + "\t\t\tif (canReconnect()) {" + NL + "\t\t\t\treconnectCommand = createReconnectCommand();" + NL + "\t\t\t\treturn reconnectCommand.canExecute();" + NL + "\t\t\t}" + NL + "\t\t\treturn false;"; >+ protected final String TEXT_1049 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate boolean canReconnect() {"; >+ protected final String TEXT_1050 = NL + "\t\t\treturn false;"; > protected final String TEXT_1051 = NL + "\t\t\t"; >- protected final String TEXT_1052 = " container = getRelationshipContainer(newSource.getElement(), "; >- protected final String TEXT_1053 = ".eINSTANCE.get"; >- protected final String TEXT_1054 = "());" + NL + "\t\t\tif (container == null) {" + NL + "\t\t\t\treturn "; >- protected final String TEXT_1055 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\t"; >- protected final String TEXT_1056 = " oldContainer = edge.getElement().eContainer();" + NL + "\t\t\tif (oldContainer == null) {" + NL + "\t\t\t\treturn "; >- protected final String TEXT_1057 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\tif (oldContainer != container) {"; >- protected final String TEXT_1058 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1059 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tedge.getElement().eContainer(), "; >- protected final String TEXT_1060 = ".eINSTANCE.get"; >- protected final String TEXT_1061 = "(), edge.getElement()));"; >- protected final String TEXT_1062 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1063 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tedge.getElement().eContainer(), "; >- protected final String TEXT_1064 = ".eINSTANCE.get"; >- protected final String TEXT_1065 = "(), "; >- protected final String TEXT_1066 = ".UNSET_VALUE));"; >- protected final String TEXT_1067 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1068 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tcontainer, "; >- protected final String TEXT_1069 = ".eINSTANCE.get"; >- protected final String TEXT_1070 = "(), edge.getElement()));"; >- protected final String TEXT_1071 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1072 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tedge.getElement().eContainer(), "; >- protected final String TEXT_1073 = ".eINSTANCE.get"; >- protected final String TEXT_1074 = "()," + NL + "\t\t\t\t\tedge.getElement()));"; >- protected final String TEXT_1075 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1076 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tedge.getElement().eContainer(), "; >- protected final String TEXT_1077 = ".eINSTANCE.get"; >- protected final String TEXT_1078 = "()," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1079 = ".UNSET_VALUE));"; >- protected final String TEXT_1080 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1081 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tcontainer, "; >- protected final String TEXT_1082 = ".eINSTANCE.get"; >- protected final String TEXT_1083 = "(), edge.getElement()));"; >- protected final String TEXT_1084 = NL + "\t\t\t}"; >- protected final String TEXT_1085 = NL + "\t\t\tresult.append("; >- protected final String TEXT_1086 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; >- protected final String TEXT_1087 = ".eINSTANCE.get"; >- protected final String TEXT_1088 = "()," + NL + "\t\t\t\toldSource.getElement()));" + NL + "\t\t\tresult.append("; >- protected final String TEXT_1089 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; >- protected final String TEXT_1090 = ".eINSTANCE.get"; >- protected final String TEXT_1091 = "()," + NL + "\t\t\t\tnewSource.getElement()));"; >- protected final String TEXT_1092 = NL + "\t\t\tresult.append("; >- protected final String TEXT_1093 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; >- protected final String TEXT_1094 = ".eINSTANCE.get"; >- protected final String TEXT_1095 = "()," + NL + "\t\t\t\tnewSource.getElement()));"; >- protected final String TEXT_1096 = NL + "\t\t\tresult.append("; >- protected final String TEXT_1097 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\toldSource.getElement(), "; >- protected final String TEXT_1098 = ".eINSTANCE.get"; >- protected final String TEXT_1099 = "(), edge.getTarget().getElement()));" + NL + "\t\t\tresult.append("; >- protected final String TEXT_1100 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tnewSource.getElement(), "; >- protected final String TEXT_1101 = ".eINSTANCE.get"; >- protected final String TEXT_1102 = "(), edge.getTarget().getElement()));"; >- protected final String TEXT_1103 = NL + "\t\t\tresult.append("; >- protected final String TEXT_1104 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\toldSource.getElement(), "; >- protected final String TEXT_1105 = ".eINSTANCE.get"; >- protected final String TEXT_1106 = "(), "; >- protected final String TEXT_1107 = ".UNSET_VALUE));" + NL + "\t\t\tresult.append("; >- protected final String TEXT_1108 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tnewSource.getElement(), "; >- protected final String TEXT_1109 = ".eINSTANCE.get"; >- protected final String TEXT_1110 = "(), edge.getTarget().getElement()));"; >- protected final String TEXT_1111 = NL + "\t\t\treturn result;" + NL + "\t\t}" + NL; >- protected final String TEXT_1112 = NL; >- protected final String TEXT_1113 = NL + "\t\t/**" + NL + "\t\t * Finds container element for the relationship of the specified type." + NL + "\t\t * Default implementation goes up by containment hierarchy starting from" + NL + "\t\t * the specified element and returns the first element that is instance of" + NL + "\t\t * the specified container class." + NL + "\t\t * " + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_1114 = " getRelationshipContainer("; >- protected final String TEXT_1115 = " element, "; >- protected final String TEXT_1116 = " containerClass) {" + NL + "\t\t\tfor (; element != null; element = element.eContainer()) {" + NL + "\t\t\t\tif (containerClass.isSuperTypeOf(element.eClass())) {" + NL + "\t\t\t\t\treturn element;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}"; >- protected final String TEXT_1117 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */"; >- protected final String TEXT_1118 = NL; >- protected final String TEXT_1119 = NL + "\t\t\tprivate "; >- protected final String TEXT_1120 = " createDomainModelRemoveCommand("; >- protected final String TEXT_1121 = " editingDomain) {"; >- protected final String TEXT_1122 = NL + "\t\t\t\t"; >- protected final String TEXT_1123 = " result = new "; >- protected final String TEXT_1124 = "();"; >- protected final String TEXT_1125 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1126 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1127 = ".getElement().eContainer(), "; >- protected final String TEXT_1128 = ".eINSTANCE.get"; >- protected final String TEXT_1129 = "(), "; >- protected final String TEXT_1130 = ".getElement()));"; >- protected final String TEXT_1131 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1132 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1133 = ".getElement().eContainer(), "; >+ protected final String TEXT_1052 = " container = ("; >+ protected final String TEXT_1053 = ")getRelationshipContainer(newSource.getElement(), "; >+ protected final String TEXT_1054 = ".eINSTANCE.get"; >+ protected final String TEXT_1055 = "());" + NL + "\t\t\tif (container == null) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; >+ protected final String TEXT_1056 = NL; >+ protected final String TEXT_1057 = NL + "\t\tif ("; >+ protected final String TEXT_1058 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_1059 = NL + "\t\t}"; >+ protected final String TEXT_1060 = NL + "\t\tif ("; >+ protected final String TEXT_1061 = ".size() >= "; >+ protected final String TEXT_1062 = ".eINSTANCE.get"; >+ protected final String TEXT_1063 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_1064 = NL + "\t\t}"; >+ protected final String TEXT_1065 = NL; >+ protected final String TEXT_1066 = NL + "\t\tif ("; >+ protected final String TEXT_1067 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_1068 = NL + "\t\t}"; >+ protected final String TEXT_1069 = NL + "\t\tif ("; >+ protected final String TEXT_1070 = ".size() >= "; >+ protected final String TEXT_1071 = ".eINSTANCE.get"; >+ protected final String TEXT_1072 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_1073 = NL + "\t\t}"; >+ protected final String TEXT_1074 = NL; >+ protected final String TEXT_1075 = NL + "\t\tif ("; >+ protected final String TEXT_1076 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_1077 = NL + "\t\t}"; >+ protected final String TEXT_1078 = NL + "\t\tif ("; >+ protected final String TEXT_1079 = ".size() >= "; >+ protected final String TEXT_1080 = ".eINSTANCE.get"; >+ protected final String TEXT_1081 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_1082 = NL + "\t\t}"; >+ protected final String TEXT_1083 = NL; >+ protected final String TEXT_1084 = NL + "\t\t\tif(!"; >+ protected final String TEXT_1085 = ".canCreateLink("; >+ protected final String TEXT_1086 = ", "; >+ protected final String TEXT_1087 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; >+ protected final String TEXT_1088 = NL + "\t\t\treturn true;"; >+ protected final String TEXT_1089 = NL; >+ protected final String TEXT_1090 = NL + "\t\tif ("; >+ protected final String TEXT_1091 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_1092 = NL + "\t\t}"; >+ protected final String TEXT_1093 = NL + "\t\tif ("; >+ protected final String TEXT_1094 = ".size() >= "; >+ protected final String TEXT_1095 = ".eINSTANCE.get"; >+ protected final String TEXT_1096 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_1097 = NL + "\t\t}"; >+ protected final String TEXT_1098 = NL; >+ protected final String TEXT_1099 = NL + "\t\t\tif(!"; >+ protected final String TEXT_1100 = ".canCreateLink("; >+ protected final String TEXT_1101 = ", "; >+ protected final String TEXT_1102 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; >+ protected final String TEXT_1103 = NL + "\t\t\treturn true;"; >+ protected final String TEXT_1104 = NL + "\t\t\treturn false;"; >+ protected final String TEXT_1105 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >+ protected final String TEXT_1106 = " createReconnectCommand() {" + NL + "\t\t\t"; >+ protected final String TEXT_1107 = " editingDomain = "; >+ protected final String TEXT_1108 = ".getEditingDomain(oldSource.getDiagram().getElement());" + NL + "\t\t\t"; >+ protected final String TEXT_1109 = " result = new "; >+ protected final String TEXT_1110 = "();" + NL + "\t\t\tresult.append(new "; >+ protected final String TEXT_1111 = "(edge, newSource));"; >+ protected final String TEXT_1112 = NL + "\t\t\t"; >+ protected final String TEXT_1113 = " container = getRelationshipContainer(newSource.getElement(), "; >+ protected final String TEXT_1114 = ".eINSTANCE.get"; >+ protected final String TEXT_1115 = "());" + NL + "\t\t\tif (container == null) {" + NL + "\t\t\t\treturn "; >+ protected final String TEXT_1116 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\t"; >+ protected final String TEXT_1117 = " oldContainer = edge.getElement().eContainer();" + NL + "\t\t\tif (oldContainer == null) {" + NL + "\t\t\t\treturn "; >+ protected final String TEXT_1118 = ".INSTANCE;" + NL + "\t\t\t}" + NL + "\t\t\tif (oldContainer != container) {"; >+ protected final String TEXT_1119 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1120 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tedge.getElement().eContainer(), "; >+ protected final String TEXT_1121 = ".eINSTANCE.get"; >+ protected final String TEXT_1122 = "(), edge.getElement()));"; >+ protected final String TEXT_1123 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1124 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tedge.getElement().eContainer(), "; >+ protected final String TEXT_1125 = ".eINSTANCE.get"; >+ protected final String TEXT_1126 = "(), "; >+ protected final String TEXT_1127 = ".UNSET_VALUE));"; >+ protected final String TEXT_1128 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1129 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tcontainer, "; >+ protected final String TEXT_1130 = ".eINSTANCE.get"; >+ protected final String TEXT_1131 = "(), edge.getElement()));"; >+ protected final String TEXT_1132 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1133 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tedge.getElement().eContainer(), "; > protected final String TEXT_1134 = ".eINSTANCE.get"; >- protected final String TEXT_1135 = "(), "; >- protected final String TEXT_1136 = ".UNSET_VALUE));"; >- protected final String TEXT_1137 = NL + "\t\t\t\treturn "; >- protected final String TEXT_1138 = ".INSTANCE;"; >- protected final String TEXT_1139 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1140 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1141 = ".getElement().eContainer(), "; >- protected final String TEXT_1142 = ".eINSTANCE.get"; >- protected final String TEXT_1143 = "()," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1144 = ".getElement()));"; >- protected final String TEXT_1145 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1146 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1147 = ".getElement().eContainer(), "; >+ protected final String TEXT_1135 = "()," + NL + "\t\t\t\t\tedge.getElement()));"; >+ protected final String TEXT_1136 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1137 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tedge.getElement().eContainer(), "; >+ protected final String TEXT_1138 = ".eINSTANCE.get"; >+ protected final String TEXT_1139 = "()," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1140 = ".UNSET_VALUE));"; >+ protected final String TEXT_1141 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1142 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\tcontainer, "; >+ protected final String TEXT_1143 = ".eINSTANCE.get"; >+ protected final String TEXT_1144 = "(), edge.getElement()));"; >+ protected final String TEXT_1145 = NL + "\t\t\t}"; >+ protected final String TEXT_1146 = NL + "\t\t\tresult.append("; >+ protected final String TEXT_1147 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; > protected final String TEXT_1148 = ".eINSTANCE.get"; >- protected final String TEXT_1149 = "()," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1150 = ".UNSET_VALUE));"; >- protected final String TEXT_1151 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1152 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1153 = ".getElement(), "; >- protected final String TEXT_1154 = ".eINSTANCE.get"; >- protected final String TEXT_1155 = "(), "; >- protected final String TEXT_1156 = ".getSource().getElement()));"; >- protected final String TEXT_1157 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1158 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1159 = ".getElement(), "; >- protected final String TEXT_1160 = ".eINSTANCE.get"; >- protected final String TEXT_1161 = "(), "; >- protected final String TEXT_1162 = ".UNSET_VALUE));"; >- protected final String TEXT_1163 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1164 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1165 = ".getElement(), "; >+ protected final String TEXT_1149 = "()," + NL + "\t\t\t\toldSource.getElement()));" + NL + "\t\t\tresult.append("; >+ protected final String TEXT_1150 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; >+ protected final String TEXT_1151 = ".eINSTANCE.get"; >+ protected final String TEXT_1152 = "()," + NL + "\t\t\t\tnewSource.getElement()));"; >+ protected final String TEXT_1153 = NL + "\t\t\tresult.append("; >+ protected final String TEXT_1154 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; >+ protected final String TEXT_1155 = ".eINSTANCE.get"; >+ protected final String TEXT_1156 = "()," + NL + "\t\t\t\tnewSource.getElement()));"; >+ protected final String TEXT_1157 = NL + "\t\t\tresult.append("; >+ protected final String TEXT_1158 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\toldSource.getElement(), "; >+ protected final String TEXT_1159 = ".eINSTANCE.get"; >+ protected final String TEXT_1160 = "(), edge.getTarget().getElement()));" + NL + "\t\t\tresult.append("; >+ protected final String TEXT_1161 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tnewSource.getElement(), "; >+ protected final String TEXT_1162 = ".eINSTANCE.get"; >+ protected final String TEXT_1163 = "(), edge.getTarget().getElement()));"; >+ protected final String TEXT_1164 = NL + "\t\t\tresult.append("; >+ protected final String TEXT_1165 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\toldSource.getElement(), "; > protected final String TEXT_1166 = ".eINSTANCE.get"; > protected final String TEXT_1167 = "(), "; >- protected final String TEXT_1168 = ".getTarget().getElement()));"; >- protected final String TEXT_1169 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1170 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1171 = ".getElement(), "; >- protected final String TEXT_1172 = ".eINSTANCE.get"; >- protected final String TEXT_1173 = "(), "; >- protected final String TEXT_1174 = ".UNSET_VALUE));"; >- protected final String TEXT_1175 = NL + "\t\t\t\treturn result;"; >- protected final String TEXT_1176 = NL + "\t\t\t\treturn "; >- protected final String TEXT_1177 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1178 = ".getSource().getElement(), "; >- protected final String TEXT_1179 = ".eINSTANCE.get"; >- protected final String TEXT_1180 = "(), "; >- protected final String TEXT_1181 = ".getTarget().getElement());"; >- protected final String TEXT_1182 = NL + "\t\t\t\treturn "; >- protected final String TEXT_1183 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1184 = ".getSource().getElement(), "; >- protected final String TEXT_1185 = ".eINSTANCE.get"; >- protected final String TEXT_1186 = "(), "; >- protected final String TEXT_1187 = ".UNSET_VALUE);"; >- protected final String TEXT_1188 = NL + "\t\t\t}"; >- protected final String TEXT_1189 = NL + "\t}" + NL; >- protected final String TEXT_1190 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Create"; >- protected final String TEXT_1191 = "StartCommand extends "; >- protected final String TEXT_1192 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >- protected final String TEXT_1193 = " source;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Create"; >- protected final String TEXT_1194 = "StartCommand("; >- protected final String TEXT_1195 = " requestEx) {" + NL + "\t\t\t//Until the mouse button is pressed, the source of the connection is in request.getTargetEditPart(), not in request.getSourceEditPart()." + NL + "\t\t\tsource = ("; >- protected final String TEXT_1196 = ")requestEx.getTargetEditPart().getModel();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\t//This command never gets executed" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\t//This command never gets executed" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\t//This command never gets executed" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn true;" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean prepare() {" + NL + "\t\t\tif (source == null) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; >- protected final String TEXT_1197 = NL + "\t\t\treturn false;"; >- protected final String TEXT_1198 = NL + "\t\t\t"; >- protected final String TEXT_1199 = " container = ("; >- protected final String TEXT_1200 = ")getRelationshipContainer(source.getElement(), "; >- protected final String TEXT_1201 = ".eINSTANCE.get"; >- protected final String TEXT_1202 = "());" + NL + "\t\t\tif (container == null) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; >- protected final String TEXT_1203 = NL; >- protected final String TEXT_1204 = NL + "\t\tif ("; >- protected final String TEXT_1205 = " != null) {" + NL + "\t\t\t"; >- protected final String TEXT_1206 = NL + "\t\t}"; >- protected final String TEXT_1207 = NL + "\t\tif ("; >- protected final String TEXT_1208 = ".size() >= "; >+ protected final String TEXT_1168 = ".UNSET_VALUE));" + NL + "\t\t\tresult.append("; >+ protected final String TEXT_1169 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tnewSource.getElement(), "; >+ protected final String TEXT_1170 = ".eINSTANCE.get"; >+ protected final String TEXT_1171 = "(), edge.getTarget().getElement()));"; >+ protected final String TEXT_1172 = NL + "\t\t\treturn result;" + NL + "\t\t}" + NL; >+ protected final String TEXT_1173 = NL; >+ protected final String TEXT_1174 = NL + "\t\t/**" + NL + "\t\t * Finds container element for the relationship of the specified type." + NL + "\t\t * Default implementation goes up by containment hierarchy starting from" + NL + "\t\t * the specified element and returns the first element that is instance of" + NL + "\t\t * the specified container class." + NL + "\t\t * " + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_1175 = " getRelationshipContainer("; >+ protected final String TEXT_1176 = " element, "; >+ protected final String TEXT_1177 = " containerClass) {" + NL + "\t\t\tfor (; element != null; element = element.eContainer()) {" + NL + "\t\t\t\tif (containerClass.isSuperTypeOf(element.eClass())) {" + NL + "\t\t\t\t\treturn element;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}"; >+ protected final String TEXT_1178 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */"; >+ protected final String TEXT_1179 = NL; >+ protected final String TEXT_1180 = NL + "\t\t\tprivate "; >+ protected final String TEXT_1181 = " createDomainModelRemoveCommand("; >+ protected final String TEXT_1182 = " editingDomain) {"; >+ protected final String TEXT_1183 = NL + "\t\t\t\t"; >+ protected final String TEXT_1184 = " result = new "; >+ protected final String TEXT_1185 = "();"; >+ protected final String TEXT_1186 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1187 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1188 = ".getElement().eContainer(), "; >+ protected final String TEXT_1189 = ".eINSTANCE.get"; >+ protected final String TEXT_1190 = "(), "; >+ protected final String TEXT_1191 = ".getElement()));"; >+ protected final String TEXT_1192 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1193 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1194 = ".getElement().eContainer(), "; >+ protected final String TEXT_1195 = ".eINSTANCE.get"; >+ protected final String TEXT_1196 = "(), "; >+ protected final String TEXT_1197 = ".UNSET_VALUE));"; >+ protected final String TEXT_1198 = NL + "\t\t\t\treturn "; >+ protected final String TEXT_1199 = ".INSTANCE;"; >+ protected final String TEXT_1200 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1201 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1202 = ".getElement().eContainer(), "; >+ protected final String TEXT_1203 = ".eINSTANCE.get"; >+ protected final String TEXT_1204 = "()," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1205 = ".getElement()));"; >+ protected final String TEXT_1206 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1207 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1208 = ".getElement().eContainer(), "; > protected final String TEXT_1209 = ".eINSTANCE.get"; >- protected final String TEXT_1210 = ".getUpperBound()) {" + NL + "\t\t\t"; >- protected final String TEXT_1211 = NL + "\t\t}"; >- protected final String TEXT_1212 = NL; >- protected final String TEXT_1213 = NL + "\t\tif ("; >- protected final String TEXT_1214 = " != null) {" + NL + "\t\t\t"; >- protected final String TEXT_1215 = NL + "\t\t}"; >- protected final String TEXT_1216 = NL + "\t\tif ("; >- protected final String TEXT_1217 = ".size() >= "; >- protected final String TEXT_1218 = ".eINSTANCE.get"; >- protected final String TEXT_1219 = ".getUpperBound()) {" + NL + "\t\t\t"; >- protected final String TEXT_1220 = NL + "\t\t}"; >- protected final String TEXT_1221 = NL; >- protected final String TEXT_1222 = NL + "\t\t\tif(!"; >- protected final String TEXT_1223 = ".canCreateLink("; >- protected final String TEXT_1224 = ", "; >- protected final String TEXT_1225 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; >- protected final String TEXT_1226 = NL + "\t\t\treturn true;"; >- protected final String TEXT_1227 = NL; >- protected final String TEXT_1228 = NL + "\t\tif ("; >- protected final String TEXT_1229 = " != null) {" + NL + "\t\t\t"; >- protected final String TEXT_1230 = NL + "\t\t}"; >- protected final String TEXT_1231 = NL + "\t\tif ("; >- protected final String TEXT_1232 = ".size() >= "; >+ protected final String TEXT_1210 = "()," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1211 = ".UNSET_VALUE));"; >+ protected final String TEXT_1212 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1213 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1214 = ".getElement(), "; >+ protected final String TEXT_1215 = ".eINSTANCE.get"; >+ protected final String TEXT_1216 = "(), "; >+ protected final String TEXT_1217 = ".getSource().getElement()));"; >+ protected final String TEXT_1218 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1219 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1220 = ".getElement(), "; >+ protected final String TEXT_1221 = ".eINSTANCE.get"; >+ protected final String TEXT_1222 = "(), "; >+ protected final String TEXT_1223 = ".UNSET_VALUE));"; >+ protected final String TEXT_1224 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1225 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1226 = ".getElement(), "; >+ protected final String TEXT_1227 = ".eINSTANCE.get"; >+ protected final String TEXT_1228 = "(), "; >+ protected final String TEXT_1229 = ".getTarget().getElement()));"; >+ protected final String TEXT_1230 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1231 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1232 = ".getElement(), "; > protected final String TEXT_1233 = ".eINSTANCE.get"; >- protected final String TEXT_1234 = ".getUpperBound()) {" + NL + "\t\t\t"; >- protected final String TEXT_1235 = NL + "\t\t}"; >- protected final String TEXT_1236 = NL; >- protected final String TEXT_1237 = NL + "\t\t\tif(!"; >- protected final String TEXT_1238 = ".canCreateLink("; >- protected final String TEXT_1239 = ", "; >- protected final String TEXT_1240 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; >- protected final String TEXT_1241 = NL + "\t\t\treturn true;"; >- protected final String TEXT_1242 = NL + "\t\t\treturn false;"; >- protected final String TEXT_1243 = NL + "\t\t}"; >- protected final String TEXT_1244 = NL; >- protected final String TEXT_1245 = NL + "\t\t/**" + NL + "\t\t * Finds container element for the relationship of the specified type." + NL + "\t\t * Default implementation goes up by containment hierarchy starting from" + NL + "\t\t * the specified element and returns the first element that is instance of" + NL + "\t\t * the specified container class." + NL + "\t\t * " + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_1246 = " getRelationshipContainer("; >- protected final String TEXT_1247 = " element, "; >- protected final String TEXT_1248 = " containerClass) {" + NL + "\t\t\tfor (; element != null; element = element.eContainer()) {" + NL + "\t\t\t\tif (containerClass.isSuperTypeOf(element.eClass())) {" + NL + "\t\t\t\t\treturn element;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}"; >- protected final String TEXT_1249 = NL + NL + "\t}"; >- protected final String TEXT_1250 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Reconnect"; >- protected final String TEXT_1251 = "TargetCommand extends "; >- protected final String TEXT_1252 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >- protected final String TEXT_1253 = " edge;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >- protected final String TEXT_1254 = " newTarget;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >- protected final String TEXT_1255 = " oldTarget;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >- protected final String TEXT_1256 = " reconnectCommand;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect"; >- protected final String TEXT_1257 = "TargetCommand("; >- protected final String TEXT_1258 = " request) {" + NL + "\t\t\tthis(("; >- protected final String TEXT_1259 = ")request.getConnectionEditPart().getModel(), ("; >- protected final String TEXT_1260 = ")request.getTarget().getModel());" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect"; >- protected final String TEXT_1261 = "TargetCommand("; >- protected final String TEXT_1262 = " edge, "; >- protected final String TEXT_1263 = " newTarget) {" + NL + "\t\t\tthis.edge = edge;" + NL + "\t\t\tthis.newTarget = newTarget;" + NL + "\t\t\tthis.oldTarget = edge.getTarget();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\treconnectCommand.execute();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn reconnectCommand.canUndo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\treconnectCommand.undo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\texecute();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean prepare() {"; >- protected final String TEXT_1264 = NL + "\t\t\tfinal boolean[] resultHolder = new boolean[1];" + NL + "\t\t\t//To validate the reconnection against constraints, the current link should be deleted. Of course, we must then undo its deletion." + NL + "\t\t\tfinal "; >- protected final String TEXT_1265 = " domainModelEditDomain = "; >- protected final String TEXT_1266 = ".getEditingDomain(oldTarget.getDiagram().getElement());" + NL + "\t\t\t"; >- protected final String TEXT_1267 = " command = new "; >- protected final String TEXT_1268 = "() {" + NL + "\t\t\t\tprivate "; >- protected final String TEXT_1269 = " deleteCommand = createDomainModelRemoveCommand(domainModelEditDomain);" + NL + "\t\t\t\tpublic boolean canExecute() {" + NL + "\t\t\t\t\treturn deleteCommand.canExecute();" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic boolean canUndo() {" + NL + "\t\t\t\t\treturn true;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void redo() {" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void undo() {" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void execute() {" + NL + "\t\t\t\t\tdeleteCommand.execute();" + NL + "\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\tresultHolder[0] = canReconnect();" + NL + "\t\t\t\t\t} finally {" + NL + "\t\t\t\t\t\tdeleteCommand.undo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "\t\t\tif (!command.canExecute()) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}" + NL + "\t\t\tnew "; >- protected final String TEXT_1270 = "(domainModelEditDomain, command).execute();" + NL + "\t\t\tif (resultHolder[0]) {" + NL + "\t\t\t\treconnectCommand = createReconnectCommand();" + NL + "\t\t\t}" + NL + "\t\t\treturn resultHolder[0] && reconnectCommand.canExecute();"; >- protected final String TEXT_1271 = NL + "\t\t\tif (canReconnect()) {" + NL + "\t\t\t\treconnectCommand = createReconnectCommand();" + NL + "\t\t\t\treturn reconnectCommand.canExecute();" + NL + "\t\t\t}" + NL + "\t\t\treturn false;"; >- protected final String TEXT_1272 = NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate boolean canReconnect() {"; >+ protected final String TEXT_1234 = "(), "; >+ protected final String TEXT_1235 = ".UNSET_VALUE));"; >+ protected final String TEXT_1236 = NL + "\t\t\t\treturn result;"; >+ protected final String TEXT_1237 = NL + "\t\t\t\treturn "; >+ protected final String TEXT_1238 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1239 = ".getSource().getElement(), "; >+ protected final String TEXT_1240 = ".eINSTANCE.get"; >+ protected final String TEXT_1241 = "(), "; >+ protected final String TEXT_1242 = ".getTarget().getElement());"; >+ protected final String TEXT_1243 = NL + "\t\t\t\treturn "; >+ protected final String TEXT_1244 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1245 = ".getSource().getElement(), "; >+ protected final String TEXT_1246 = ".eINSTANCE.get"; >+ protected final String TEXT_1247 = "(), "; >+ protected final String TEXT_1248 = ".UNSET_VALUE);"; >+ protected final String TEXT_1249 = NL + "\t\t\t}"; >+ protected final String TEXT_1250 = NL + "\t}" + NL; >+ protected final String TEXT_1251 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Create"; >+ protected final String TEXT_1252 = "StartCommand extends "; >+ protected final String TEXT_1253 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >+ protected final String TEXT_1254 = " source;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Create"; >+ protected final String TEXT_1255 = "StartCommand("; >+ protected final String TEXT_1256 = " requestEx) {" + NL + "\t\t\t//Until the mouse button is pressed, the source of the connection is in request.getTargetEditPart(), not in request.getSourceEditPart()." + NL + "\t\t\tsource = ("; >+ protected final String TEXT_1257 = ")requestEx.getTargetEditPart().getModel();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\t//This command never gets executed" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\t//This command never gets executed" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\t//This command never gets executed" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn true;" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean prepare() {" + NL + "\t\t\tif (source == null) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; >+ protected final String TEXT_1258 = NL + "\t\t\treturn false;"; >+ protected final String TEXT_1259 = NL + "\t\t\t"; >+ protected final String TEXT_1260 = " container = ("; >+ protected final String TEXT_1261 = ")getRelationshipContainer(source.getElement(), "; >+ protected final String TEXT_1262 = ".eINSTANCE.get"; >+ protected final String TEXT_1263 = "());" + NL + "\t\t\tif (container == null) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; >+ protected final String TEXT_1264 = NL; >+ protected final String TEXT_1265 = NL + "\t\tif ("; >+ protected final String TEXT_1266 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_1267 = NL + "\t\t}"; >+ protected final String TEXT_1268 = NL + "\t\tif ("; >+ protected final String TEXT_1269 = ".size() >= "; >+ protected final String TEXT_1270 = ".eINSTANCE.get"; >+ protected final String TEXT_1271 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_1272 = NL + "\t\t}"; > protected final String TEXT_1273 = NL; >- protected final String TEXT_1274 = NL + "\t\t\tif(!"; >- protected final String TEXT_1275 = ".canCreateLink("; >- protected final String TEXT_1276 = ", "; >- protected final String TEXT_1277 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; >- protected final String TEXT_1278 = NL + "\t\t\treturn true;"; >- protected final String TEXT_1279 = NL; >- protected final String TEXT_1280 = NL + "\t\t\tif(!"; >- protected final String TEXT_1281 = ".canCreateLink("; >- protected final String TEXT_1282 = ", "; >- protected final String TEXT_1283 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; >- protected final String TEXT_1284 = NL + "\t\t\treturn true;"; >- protected final String TEXT_1285 = NL + "\t\t\treturn false;"; >- protected final String TEXT_1286 = NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >- protected final String TEXT_1287 = " createReconnectCommand() {" + NL + "\t\t\t"; >- protected final String TEXT_1288 = " editingDomain = "; >- protected final String TEXT_1289 = ".getEditingDomain(oldTarget.getDiagram().getElement());" + NL + "\t\t\t"; >- protected final String TEXT_1290 = " result = new "; >- protected final String TEXT_1291 = "();" + NL + "\t\t\tresult.append(new "; >- protected final String TEXT_1292 = "(edge, newTarget));"; >- protected final String TEXT_1293 = NL + "\t\t\tresult.append("; >- protected final String TEXT_1294 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; >- protected final String TEXT_1295 = ".eINSTANCE.get"; >- protected final String TEXT_1296 = "()," + NL + "\t\t\t\toldTarget.getElement()));" + NL + "\t\t\tresult.append("; >- protected final String TEXT_1297 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; >- protected final String TEXT_1298 = ".eINSTANCE.get"; >- protected final String TEXT_1299 = "()," + NL + "\t\t\t\tnewTarget.getElement()));"; >- protected final String TEXT_1300 = NL + "\t\t\tresult.append("; >- protected final String TEXT_1301 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; >- protected final String TEXT_1302 = ".eINSTANCE.get"; >- protected final String TEXT_1303 = "()," + NL + "\t\t\t\tnewTarget.getElement()));"; >- protected final String TEXT_1304 = NL + "\t\t\tresult.append("; >- protected final String TEXT_1305 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getSource().getElement(), "; >- protected final String TEXT_1306 = ".eINSTANCE.get"; >- protected final String TEXT_1307 = "(), oldTarget.getElement()));" + NL + "\t\t\tresult.append("; >- protected final String TEXT_1308 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getSource().getElement(), "; >- protected final String TEXT_1309 = ".eINSTANCE.get"; >- protected final String TEXT_1310 = "(), newTarget.getElement()));"; >- protected final String TEXT_1311 = NL + "\t\t\tresult.append("; >- protected final String TEXT_1312 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getSource().getElement(), "; >- protected final String TEXT_1313 = ".eINSTANCE.get"; >- protected final String TEXT_1314 = "(), newTarget.getElement()));"; >- protected final String TEXT_1315 = NL + "\t\t\treturn result;" + NL + "\t\t}"; >- protected final String TEXT_1316 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */"; >- protected final String TEXT_1317 = NL; >- protected final String TEXT_1318 = NL + "\t\t\tprivate "; >- protected final String TEXT_1319 = " createDomainModelRemoveCommand("; >- protected final String TEXT_1320 = " editingDomain) {"; >- protected final String TEXT_1321 = NL + "\t\t\t\t"; >- protected final String TEXT_1322 = " result = new "; >- protected final String TEXT_1323 = "();"; >- protected final String TEXT_1324 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1325 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1326 = ".getElement().eContainer(), "; >- protected final String TEXT_1327 = ".eINSTANCE.get"; >- protected final String TEXT_1328 = "(), "; >- protected final String TEXT_1329 = ".getElement()));"; >- protected final String TEXT_1330 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1331 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1332 = ".getElement().eContainer(), "; >- protected final String TEXT_1333 = ".eINSTANCE.get"; >- protected final String TEXT_1334 = "(), "; >- protected final String TEXT_1335 = ".UNSET_VALUE));"; >- protected final String TEXT_1336 = NL + "\t\t\t\treturn "; >- protected final String TEXT_1337 = ".INSTANCE;"; >- protected final String TEXT_1338 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1339 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1340 = ".getElement().eContainer(), "; >- protected final String TEXT_1341 = ".eINSTANCE.get"; >- protected final String TEXT_1342 = "()," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1343 = ".getElement()));"; >- protected final String TEXT_1344 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1345 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1346 = ".getElement().eContainer(), "; >- protected final String TEXT_1347 = ".eINSTANCE.get"; >- protected final String TEXT_1348 = "()," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1349 = ".UNSET_VALUE));"; >- protected final String TEXT_1350 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1351 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1352 = ".getElement(), "; >- protected final String TEXT_1353 = ".eINSTANCE.get"; >- protected final String TEXT_1354 = "(), "; >- protected final String TEXT_1355 = ".getSource().getElement()));"; >- protected final String TEXT_1356 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1357 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1358 = ".getElement(), "; >- protected final String TEXT_1359 = ".eINSTANCE.get"; >- protected final String TEXT_1360 = "(), "; >- protected final String TEXT_1361 = ".UNSET_VALUE));"; >- protected final String TEXT_1362 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1363 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1364 = ".getElement(), "; >- protected final String TEXT_1365 = ".eINSTANCE.get"; >- protected final String TEXT_1366 = "(), "; >- protected final String TEXT_1367 = ".getTarget().getElement()));"; >- protected final String TEXT_1368 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1369 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1370 = ".getElement(), "; >- protected final String TEXT_1371 = ".eINSTANCE.get"; >- protected final String TEXT_1372 = "(), "; >- protected final String TEXT_1373 = ".UNSET_VALUE));"; >- protected final String TEXT_1374 = NL + "\t\t\t\treturn result;"; >- protected final String TEXT_1375 = NL + "\t\t\t\treturn "; >- protected final String TEXT_1376 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1377 = ".getSource().getElement(), "; >- protected final String TEXT_1378 = ".eINSTANCE.get"; >- protected final String TEXT_1379 = "(), "; >- protected final String TEXT_1380 = ".getTarget().getElement());"; >- protected final String TEXT_1381 = NL + "\t\t\t\treturn "; >- protected final String TEXT_1382 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1383 = ".getSource().getElement(), "; >- protected final String TEXT_1384 = ".eINSTANCE.get"; >- protected final String TEXT_1385 = "(), "; >- protected final String TEXT_1386 = ".UNSET_VALUE);"; >- protected final String TEXT_1387 = NL + "\t\t\t}"; >- protected final String TEXT_1388 = NL + "\t}" + NL; >- protected final String TEXT_1389 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Create"; >- protected final String TEXT_1390 = "Command extends "; >- protected final String TEXT_1391 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; >- protected final String TEXT_1392 = " source;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; >- protected final String TEXT_1393 = " target;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; >- protected final String TEXT_1394 = " createdEdge;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final org.eclipse.emf.common.command.Command domainModelAddCommand;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Create"; >- protected final String TEXT_1395 = "Command("; >- protected final String TEXT_1396 = " requestEx) {" + NL + "\t\t\tif (requestEx.getSourceEditPart().getModel() instanceof "; >- protected final String TEXT_1397 = ") {" + NL + "\t\t\t\tsource = ("; >- protected final String TEXT_1398 = ")requestEx.getSourceEditPart().getModel();" + NL + "\t\t\t} else {" + NL + "\t\t\t\tsource = null;" + NL + "\t\t\t}" + NL + "\t\t\tif (requestEx.getTargetEditPart().getModel() instanceof "; >- protected final String TEXT_1399 = ") {" + NL + "\t\t\t\ttarget = ("; >- protected final String TEXT_1400 = ")requestEx.getTargetEditPart().getModel();" + NL + "\t\t\t} else {" + NL + "\t\t\t\ttarget = null;" + NL + "\t\t\t}" + NL + "\t\t\tif (source == null || target == null) {" + NL + "\t\t\t\tcreatedEdge = null;" + NL + "\t\t\t\tdomainModelAddCommand = "; >- protected final String TEXT_1401 = ".INSTANCE;" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tcreatedEdge = "; >- protected final String TEXT_1402 = ".eINSTANCE.createEdge();"; >- protected final String TEXT_1403 = NL + "\t\t\t"; >- protected final String TEXT_1404 = " createdDomainElement = "; >- protected final String TEXT_1405 = ".eINSTANCE.create"; >- protected final String TEXT_1406 = "();" + NL + "\t\t\tcreatedEdge.setElement("; >- protected final String TEXT_1407 = "("; >- protected final String TEXT_1408 = ") "; >- protected final String TEXT_1409 = "createdDomainElement);" + NL + "\t\t\t"; >- protected final String TEXT_1410 = NL + "\t\t\t"; >- protected final String TEXT_1411 = "."; >- protected final String TEXT_1412 = ".initializeElement("; >- protected final String TEXT_1413 = "("; >- protected final String TEXT_1414 = ") "; >- protected final String TEXT_1415 = "createdDomainElement);"; >- protected final String TEXT_1416 = NL + "\t\t\tcreatedEdge.setElement(null);"; >- protected final String TEXT_1417 = NL + "\t\t\t"; >- protected final String TEXT_1418 = ".INSTANCE.decorateView(createdEdge);" + NL + "\t\t\t"; >- protected final String TEXT_1419 = " domainModelEditDomain = "; >- protected final String TEXT_1420 = ".getEditingDomain(source.getDiagram().getElement());"; >- protected final String TEXT_1421 = NL + "\t\t\torg.eclipse.emf.common.command.CompoundCommand addLinkEndsCommand = new org.eclipse.emf.common.command.CompoundCommand();"; >- protected final String TEXT_1422 = NL + "\t\t\t"; >- protected final String TEXT_1423 = " container = getRelationshipContainer(source.getElement(), "; >- protected final String TEXT_1424 = ".eINSTANCE.get"; >- protected final String TEXT_1425 = "());" + NL + "\t\t\tif (container == null) {" + NL + "\t\t\t\tdomainModelAddCommand = null;" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\taddLinkEndsCommand.append("; >- protected final String TEXT_1426 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcontainer, "; >- protected final String TEXT_1427 = ".eINSTANCE.get"; >- protected final String TEXT_1428 = "(), createdDomainElement));"; >- protected final String TEXT_1429 = NL + "\t\t\taddLinkEndsCommand.append("; >- protected final String TEXT_1430 = ".create(domainModelEditDomain," + NL + "\t\t\t\tcontainer, "; >- protected final String TEXT_1431 = ".eINSTANCE.get"; >- protected final String TEXT_1432 = "(), createdDomainElement));"; >- protected final String TEXT_1433 = NL; >- protected final String TEXT_1434 = NL + "\t\tif ("; >- protected final String TEXT_1435 = " != null) {" + NL + "\t\t\t"; >- protected final String TEXT_1436 = NL + "\t\t}"; >- protected final String TEXT_1437 = NL + "\t\tif ("; >- protected final String TEXT_1438 = ".size() >= "; >- protected final String TEXT_1439 = ".eINSTANCE.get"; >- protected final String TEXT_1440 = ".getUpperBound()) {" + NL + "\t\t\t"; >- protected final String TEXT_1441 = NL + "\t\t}"; >- protected final String TEXT_1442 = NL + "\t\t\taddLinkEndsCommand.append("; >- protected final String TEXT_1443 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcreatedDomainElement, "; >- protected final String TEXT_1444 = ".eINSTANCE.get"; >- protected final String TEXT_1445 = "(), source.getElement()));"; >- protected final String TEXT_1446 = NL; >- protected final String TEXT_1447 = NL + "\t\tif ("; >- protected final String TEXT_1448 = " != null) {" + NL + "\t\t\t"; >- protected final String TEXT_1449 = NL + "\t\t}"; >- protected final String TEXT_1450 = NL + "\t\tif ("; >- protected final String TEXT_1451 = ".size() >= "; >- protected final String TEXT_1452 = ".eINSTANCE.get"; >- protected final String TEXT_1453 = ".getUpperBound()) {" + NL + "\t\t\t"; >- protected final String TEXT_1454 = NL + "\t\t}"; >- protected final String TEXT_1455 = NL + "\t\t\taddLinkEndsCommand.append("; >- protected final String TEXT_1456 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcreatedDomainElement, "; >- protected final String TEXT_1457 = ".eINSTANCE.get"; >- protected final String TEXT_1458 = "(), target.getElement()));"; >- protected final String TEXT_1459 = NL + "\t\tdomainModelAddCommand = addLinkEndsCommand;"; >- protected final String TEXT_1460 = NL + "\t\t\tdomainModelAddCommand = "; >- protected final String TEXT_1461 = ".create(domainModelEditDomain, source.getElement(), " + NL + "\t\t\t\t"; >- protected final String TEXT_1462 = ".eINSTANCE.get"; >- protected final String TEXT_1463 = "(), target.getElement());"; >- protected final String TEXT_1464 = NL + "\t\t}" + NL; >- protected final String TEXT_1465 = NL; >- protected final String TEXT_1466 = NL + "\t\t/**" + NL + "\t\t * Finds container element for the relationship of the specified type." + NL + "\t\t * Default implementation goes up by containment hierarchy starting from" + NL + "\t\t * the specified element and returns the first element that is instance of" + NL + "\t\t * the specified container class." + NL + "\t\t * " + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_1467 = " getRelationshipContainer("; >- protected final String TEXT_1468 = " element, "; >- protected final String TEXT_1469 = " containerClass) {" + NL + "\t\t\tfor (; element != null; element = element.eContainer()) {" + NL + "\t\t\t\tif (containerClass.isSuperTypeOf(element.eClass())) {" + NL + "\t\t\t\t\treturn element;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}"; >- protected final String TEXT_1470 = NL + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canExecute() {" + NL + "\t\t\tif (source == null || target == null || createdEdge == null || domainModelAddCommand == null || !domainModelAddCommand.canExecute()) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; >- protected final String TEXT_1471 = NL; >- protected final String TEXT_1472 = NL + "\t\t\tif(!"; >- protected final String TEXT_1473 = ".canCreateLink("; >- protected final String TEXT_1474 = ", "; >- protected final String TEXT_1475 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; >- protected final String TEXT_1476 = NL + "\t\t\treturn true;" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn source != null && target != null && createdEdge != null && domainModelAddCommand != null && domainModelAddCommand.canUndo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\tdomainModelAddCommand.execute();" + NL + "\t\t\tsource.getDiagram().insertEdge(createdEdge);" + NL + "\t\t\tcreatedEdge.setSource(source);" + NL + "\t\t\tcreatedEdge.setTarget(target);" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\tdomainModelAddCommand.undo();" + NL + "\t\t\tsource.getDiagram().removeEdge(createdEdge);" + NL + "\t\t\tcreatedEdge.setSource(null);" + NL + "\t\t\tcreatedEdge.setTarget(null);" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\texecute();" + NL + "\t\t}" + NL + "\t}"; >- protected final String TEXT_1477 = NL; >- protected final String TEXT_1478 = NL; >- protected final String TEXT_1479 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class MapModeWorkaround {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic int DPtoLP(int dp) {" + NL + "\t\t\treturn dp;" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic static MapModeWorkaround INSTANCE = new MapModeWorkaround();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate MapModeWorkaround getMapMode() {" + NL + "\t\treturn MapModeWorkaround.INSTANCE;" + NL + "\t}"; >- protected final String TEXT_1480 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class TreeEditPartAdapter extends "; >- protected final String TEXT_1481 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic TreeEditPartAdapter() {" + NL + "\t\t\tsuper(getDiagramNode(), "; >- protected final String TEXT_1482 = ".getInstance().getItemProvidersAdapterFactory());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected void createEditPolicies() {"; >- protected final String TEXT_1483 = NL; >- protected final String TEXT_1484 = "\t\tinstallEditPolicy("; >- protected final String TEXT_1485 = ".COMPONENT_ROLE, new "; >- protected final String TEXT_1486 = "() {" + NL + "\t\t\tprotected "; >- protected final String TEXT_1487 = " createDeleteCommand("; >- protected final String TEXT_1488 = " deleteRequest) {" + NL + "\t\t\t\t"; >- protected final String TEXT_1489 = " editingDomain = "; >- protected final String TEXT_1490 = ".getEditingDomain(getDiagramNode().getDiagram().getElement());" + NL + "\t\t\t\t"; >- protected final String TEXT_1491 = " cc = new "; >- protected final String TEXT_1492 = "();" + NL + "\t\t\t\tcc.append(getDomainModelRemoveCommand(editingDomain));" + NL + "\t\t\t\tcc.append("; >- protected final String TEXT_1493 = ".create(editingDomain, getDiagramNode()));" + NL + "\t\t\t\treturn new "; >- protected final String TEXT_1494 = "(editingDomain, cc);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tprivate org.eclipse.emf.common.command.Command getDomainModelRemoveCommand("; >- protected final String TEXT_1495 = " editingDomain) {"; >- protected final String TEXT_1496 = NL + "\t\t\t\t"; >- protected final String TEXT_1497 = " result = new "; >- protected final String TEXT_1498 = "();"; >- protected final String TEXT_1499 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1500 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; >- protected final String TEXT_1501 = ".eINSTANCE.get"; >- protected final String TEXT_1502 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement()));"; >- protected final String TEXT_1503 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1504 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; >- protected final String TEXT_1505 = ".eINSTANCE.get"; >- protected final String TEXT_1506 = "()," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1507 = ".UNSET_VALUE));"; >- protected final String TEXT_1508 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1509 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; >- protected final String TEXT_1510 = ".eINSTANCE.get"; >- protected final String TEXT_1511 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement()));"; >- protected final String TEXT_1512 = NL + "\t\t\t\tresult.append("; >- protected final String TEXT_1513 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; >- protected final String TEXT_1514 = ".eINSTANCE.get"; >- protected final String TEXT_1515 = "()," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1516 = ".UNSET_VALUE));"; >- protected final String TEXT_1517 = NL + "\t\t\t\treturn result;"; >- protected final String TEXT_1518 = NL + "\t\t\t\treturn "; >- protected final String TEXT_1519 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; >- protected final String TEXT_1520 = ".eINSTANCE.get"; >- protected final String TEXT_1521 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement());"; >- protected final String TEXT_1522 = NL + "\t\t\t\treturn "; >- protected final String TEXT_1523 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; >- protected final String TEXT_1524 = ".eINSTANCE.get"; >- protected final String TEXT_1525 = "()," + NL + "\t\t\t\t\t"; >- protected final String TEXT_1526 = ".UNSET_VALUE);"; >- protected final String TEXT_1527 = NL + "\t\t\t}" + NL + "\t\t});"; >- protected final String TEXT_1528 = NL; >- protected final String TEXT_1529 = "\t\tinstallEditPolicy("; >- protected final String TEXT_1530 = ".DIRECT_EDIT_ROLE," + NL + "\t\t\t\tnew "; >- protected final String TEXT_1531 = "() {" + NL + "\t\t\t\t\tprotected void showCurrentEditValue("; >- protected final String TEXT_1532 = " request) {" + NL + "\t\t\t\t\t\tString value = (String) request.getCellEditor().getValue();" + NL + "\t\t\t\t\t\tsetWidgetText(value);" + NL + "\t\t\t\t\t}"; >- protected final String TEXT_1533 = NL; >- protected final String TEXT_1534 = "\t\t\t\t\tprotected "; >- protected final String TEXT_1535 = " getDirectEditCommand("; >- protected final String TEXT_1536 = " request) {" + NL + "\t\t\t\t\t\tString value = (String) request.getCellEditor().getValue();" + NL + "\t\t\t\t\t\tif (value == null) {" + NL + "\t\t\t\t\t\t\t//Invalid value is transformed into a null by the validator." + NL + "\t\t\t\t\t\t\t//XXX: implement validator" + NL + "\t\t\t\t\t\t\treturn "; >- protected final String TEXT_1537 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\tfinal Object[] parseResult;" + NL + "\t\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\t\tparseResult = new "; >- protected final String TEXT_1538 = "("; >- protected final String TEXT_1539 = ").parse(value);" + NL + "\t\t\t\t\t\t} catch (IllegalArgumentException e) {" + NL + "\t\t\t\t\t\t\treturn "; >- protected final String TEXT_1540 = ".INSTANCE;" + NL + "\t\t\t\t\t\t} catch ("; >- protected final String TEXT_1541 = " e) {" + NL + "\t\t\t\t\t\t\treturn "; >- protected final String TEXT_1542 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t"; >- protected final String TEXT_1543 = " editingDomain = "; >- protected final String TEXT_1544 = ".getEditingDomain("; >- protected final String TEXT_1545 = ".getDiagram().getElement());"; >- protected final String TEXT_1546 = NL + "\t\t\t\t\t\tif (parseResult.length != 1) {" + NL + "\t\t\t\t\t\t\treturn "; >- protected final String TEXT_1547 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t"; >- protected final String TEXT_1548 = " domainModelCommand = createDomainModelCommand(editingDomain, parseResult[0]);" + NL + "\t\t\t\t\t\treturn new "; >- protected final String TEXT_1549 = "(editingDomain, domainModelCommand);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\t"; >- protected final String TEXT_1550 = " createDomainModelCommand("; >- protected final String TEXT_1551 = " editingDomain, Object value) {" + NL + "\t\t\t\t\t\t"; >- protected final String TEXT_1552 = " element = "; >- protected final String TEXT_1553 = ";" + NL + "\t\t\t\t\t\t"; >- protected final String TEXT_1554 = " feature = ("; >- protected final String TEXT_1555 = ") "; >- protected final String TEXT_1556 = ".eINSTANCE.get"; >- protected final String TEXT_1557 = "();" + NL + "\t\t\t\t\t\tObject valueToSet;" + NL + "\t\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\t\tvalueToSet = "; >- protected final String TEXT_1558 = ".parseValue(feature, value);" + NL + "\t\t\t\t\t\t} catch (IllegalArgumentException e) {" + NL + "\t\t\t\t\t\t\treturn "; >- protected final String TEXT_1559 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}"; >- protected final String TEXT_1560 = NL + "\t\t\t\t\t\t"; >- protected final String TEXT_1561 = " result = new "; >- protected final String TEXT_1562 = "();" + NL + "\t\t\t\t\t\t"; >- protected final String TEXT_1563 = " values = new "; >- protected final String TEXT_1564 = "();" + NL + "\t\t\t\t\t\tvalues.addAll(element.get"; >- protected final String TEXT_1565 = "());" + NL + "\t\t\t\t\t\tresult.append("; >- protected final String TEXT_1566 = ".create(editingDomain, element, feature, values));" + NL + "\t\t\t\t\t\tresult.append("; >- protected final String TEXT_1567 = ".create(editingDomain, element, feature, valueToSet));" + NL + "\t\t\t\t\t\treturn result;"; >- protected final String TEXT_1568 = NL + "\t\t\t\t\t\treturn "; >- protected final String TEXT_1569 = ".create(editingDomain, element, feature, valueToSet);"; >- protected final String TEXT_1570 = NL + "\t\t\t\t\t}"; >- protected final String TEXT_1571 = NL + "\t\t\t\t\t\tif (parseResult.length != "; >- protected final String TEXT_1572 = ") {" + NL + "\t\t\t\t\t\t\treturn "; >- protected final String TEXT_1573 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t"; >- protected final String TEXT_1574 = " domainModelCommand = createDomainModelCommand(editingDomain, parseResult);" + NL + "\t\t\t\t\t\treturn new "; >- protected final String TEXT_1575 = "(editingDomain, domainModelCommand);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\t"; >- protected final String TEXT_1576 = " createDomainModelCommand("; >- protected final String TEXT_1577 = " editingDomain, Object[] values) {" + NL + "\t\t\t\t\t\t"; >- protected final String TEXT_1578 = " element = "; >- protected final String TEXT_1579 = ";" + NL + "\t\t\t\t\t\t"; >- protected final String TEXT_1580 = " result = new "; >- protected final String TEXT_1581 = "();" + NL + "\t\t\t\t\t\tObject valueToSet;"; >- protected final String TEXT_1582 = NL + "\t\t\t\t\t\t"; >- protected final String TEXT_1583 = " "; >- protected final String TEXT_1584 = "feature = ("; >- protected final String TEXT_1585 = ") "; >- protected final String TEXT_1586 = ".eINSTANCE.get"; >- protected final String TEXT_1587 = "();" + NL + "\t\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\t\tvalueToSet = "; >- protected final String TEXT_1588 = ".parseValue(feature, values["; >- protected final String TEXT_1589 = "]);" + NL + "\t\t\t\t\t\t} catch (IllegalArgumentException e) {" + NL + "\t\t\t\t\t\t\treturn "; >- protected final String TEXT_1590 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}"; >- protected final String TEXT_1591 = NL + "\t\t\t\t\t\t"; >- protected final String TEXT_1592 = " "; >- protected final String TEXT_1593 = "values = new "; >- protected final String TEXT_1594 = "();" + NL + "\t\t\t\t\t\tvalues.addAll(element.get"; >- protected final String TEXT_1595 = "());" + NL + "\t\t\t\t\t\tresult.append("; >- protected final String TEXT_1596 = ".create(editingDomain, element, feature, values));" + NL + "\t\t\t\t\t\tresult.append("; >- protected final String TEXT_1597 = ".create(editingDomain, element, feature, valueToSet));"; >- protected final String TEXT_1598 = NL + "\t\t\t\t\t\tresult.append("; >- protected final String TEXT_1599 = ".create(editingDomain, element, feature, valueToSet));"; >- protected final String TEXT_1600 = NL + "\t\t\t\t\t\treturn result;" + NL + "\t\t\t\t\t}"; >- protected final String TEXT_1601 = NL + "\t\t\t\t});"; >- protected final String TEXT_1602 = NL + "\t\t}" + NL; >- protected final String TEXT_1603 = NL; >- protected final String TEXT_1604 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_1605 = " manager;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void performRequest("; >- protected final String TEXT_1606 = " req) {" + NL + "\t\tif ("; >- protected final String TEXT_1607 = ".REQ_DIRECT_EDIT == req.getType()) {" + NL + "\t\t\tperformDirectEdit();" + NL + "\t\t} else {" + NL + "\t\t\tsuper.performRequest(req);" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; >- protected final String TEXT_1608 = " getManager() {" + NL + "\t\tif (manager == null) {" + NL + "\t\t\tmanager = new "; >- protected final String TEXT_1609 = "(this, "; >- protected final String TEXT_1610 = ".class, new "; >- protected final String TEXT_1611 = "() {" + NL + "\t\t\t\tpublic void relocate("; >- protected final String TEXT_1612 = " celleditor) {" + NL + "\t\t\t\t\tif (checkTreeItem()) {" + NL + "\t\t\t\t\t\tcelleditor.getControl().setFont((("; >- protected final String TEXT_1613 = ") getWidget()).getFont());" + NL + "\t\t\t\t\t\tcelleditor.getControl().setBounds((("; >- protected final String TEXT_1614 = ") getWidget()).getBounds());" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}) {" + NL + "\t\t\t\tprotected void initCellEditor() {" + NL + "\t\t\t\t\tgetCellEditor().setValue(getEditText());" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "\t\t}" + NL + "\t\treturn manager;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void performDirectEdit() {" + NL + "\t\tgetManager().show();" + NL + "\t}" + NL + "" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected String getEditText() {" + NL + "\t\t\t"; >- protected final String TEXT_1615 = " primaryLabelEditPart = getPrimaryLabelEditPart();" + NL + "\t\t\tif (primaryLabelEditPart != null) {" + NL + "\t\t\t\treturn primaryLabelEditPart.getLabelEditText();" + NL + "\t\t\t}" + NL + "\t\t\treturn \"\";" + NL + "\t\t}" + NL; >- protected final String TEXT_1616 = NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void activate() {" + NL + "\t\t\tsuper.activate();" + NL + "\t\t\tgetDiagramNode().getElement().eAdapters().add(domainModelRefresher);" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void deactivate() {" + NL + "\t\t\tgetDiagramNode().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\t\tsuper.deactivate();" + NL + "\t\t}" + NL; >- protected final String TEXT_1617 = NL; >- protected final String TEXT_1618 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >- protected final String TEXT_1619 = " domainModelRefresher = new "; >- protected final String TEXT_1620 = "(this);" + NL; >- protected final String TEXT_1621 = NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected String getText() {" + NL + "\t\t\t"; >- protected final String TEXT_1622 = " primaryLabelEditPart = getPrimaryLabelEditPart();" + NL + "\t\t\tif (primaryLabelEditPart != null) {" + NL + "\t\t\t\treturn primaryLabelEditPart.getLabelText();" + NL + "\t\t\t}" + NL + "\t\t\treturn super.getText();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >- protected final String TEXT_1623 = " getPrimaryLabelEditPart() {" + NL + "\t\t\tfor("; >- protected final String TEXT_1624 = " it = getDiagramNode().getChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t"; >- protected final String TEXT_1625 = " nextChild = ("; >- protected final String TEXT_1626 = ")it.next();" + NL + "\t\t\t\tif ("; >- protected final String TEXT_1627 = ".getVisualID(nextChild) == "; >- protected final String TEXT_1628 = ".VISUAL_ID) {" + NL + "\t\t\t\t\treturn ("; >- protected final String TEXT_1629 = ") "; >- protected final String TEXT_1630 = ".this.getViewer().getEditPartRegistry().get(nextChild);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}"; >- protected final String TEXT_1631 = NL + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected void createRefreshers() {" + NL + "\t\t\tsuper.createRefreshers();" + NL + "\t\t\tRefresher labelRefresher = new Refresher() {" + NL + "\t\t\t\tpublic void refresh() {" + NL + "\t\t\t\t\trefreshVisuals();" + NL + "\t\t\t\t}" + NL + "\t\t\t};"; >- protected final String TEXT_1632 = NL + "\t\t\tregisterRefresher("; >- protected final String TEXT_1633 = ".eINSTANCE.get"; >- protected final String TEXT_1634 = "(), labelRefresher);"; >- protected final String TEXT_1635 = NL + "\t\t\tregisterRefresher("; >- protected final String TEXT_1636 = ".eINSTANCE.get"; >- protected final String TEXT_1637 = "(), labelRefresher);"; >- protected final String TEXT_1638 = NL + "\t\t\tregisterRefresher("; >- protected final String TEXT_1639 = ".eINSTANCE.get"; >- protected final String TEXT_1640 = "(), labelRefresher);"; >- protected final String TEXT_1641 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Since compartments and labels are not selectable edit parts, they are filtered from the overview as well." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >- protected final String TEXT_1642 = " getModelChildren() {" + NL + "\t\t\t"; >- protected final String TEXT_1643 = " result = new "; >- protected final String TEXT_1644 = "();" + NL + "\t\t\tfor("; >- protected final String TEXT_1645 = " it = getDiagramNode().getVisibleChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t"; >- protected final String TEXT_1646 = " next = ("; >- protected final String TEXT_1647 = ") it.next();" + NL + "\t\t\t\tswitch ("; >- protected final String TEXT_1648 = ".getVisualID(next)) {"; >- protected final String TEXT_1649 = NL + "\t\t\t\tcase "; >- protected final String TEXT_1650 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tbreak;"; >- protected final String TEXT_1651 = NL + "\t\t\t\tcase "; >- protected final String TEXT_1652 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult.addAll(next.getChildren());" + NL + "\t\t\t\t\tbreak;"; >- protected final String TEXT_1653 = NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\tresult.addAll(getDiagramNode().getSourceEdges());" + NL + "\t\t\treturn result;" + NL + "\t\t}" + NL + "\t}" + NL + "}"; >- protected final String TEXT_1654 = NL; >+ protected final String TEXT_1274 = NL + "\t\tif ("; >+ protected final String TEXT_1275 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_1276 = NL + "\t\t}"; >+ protected final String TEXT_1277 = NL + "\t\tif ("; >+ protected final String TEXT_1278 = ".size() >= "; >+ protected final String TEXT_1279 = ".eINSTANCE.get"; >+ protected final String TEXT_1280 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_1281 = NL + "\t\t}"; >+ protected final String TEXT_1282 = NL; >+ protected final String TEXT_1283 = NL + "\t\tif ("; >+ protected final String TEXT_1284 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_1285 = NL + "\t\t}"; >+ protected final String TEXT_1286 = NL + "\t\tif ("; >+ protected final String TEXT_1287 = ".size() >= "; >+ protected final String TEXT_1288 = ".eINSTANCE.get"; >+ protected final String TEXT_1289 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_1290 = NL + "\t\t}"; >+ protected final String TEXT_1291 = NL; >+ protected final String TEXT_1292 = NL + "\t\t\tif(!"; >+ protected final String TEXT_1293 = ".canCreateLink("; >+ protected final String TEXT_1294 = ", "; >+ protected final String TEXT_1295 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; >+ protected final String TEXT_1296 = NL + "\t\t\treturn true;"; >+ protected final String TEXT_1297 = NL; >+ protected final String TEXT_1298 = NL + "\t\tif ("; >+ protected final String TEXT_1299 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_1300 = NL + "\t\t}"; >+ protected final String TEXT_1301 = NL + "\t\tif ("; >+ protected final String TEXT_1302 = ".size() >= "; >+ protected final String TEXT_1303 = ".eINSTANCE.get"; >+ protected final String TEXT_1304 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_1305 = NL + "\t\t}"; >+ protected final String TEXT_1306 = NL; >+ protected final String TEXT_1307 = NL + "\t\t\tif(!"; >+ protected final String TEXT_1308 = ".canCreateLink("; >+ protected final String TEXT_1309 = ", "; >+ protected final String TEXT_1310 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; >+ protected final String TEXT_1311 = NL + "\t\t\treturn true;"; >+ protected final String TEXT_1312 = NL + "\t\t\treturn false;"; >+ protected final String TEXT_1313 = NL + "\t\t}"; >+ protected final String TEXT_1314 = NL; >+ protected final String TEXT_1315 = NL + "\t\t/**" + NL + "\t\t * Finds container element for the relationship of the specified type." + NL + "\t\t * Default implementation goes up by containment hierarchy starting from" + NL + "\t\t * the specified element and returns the first element that is instance of" + NL + "\t\t * the specified container class." + NL + "\t\t * " + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_1316 = " getRelationshipContainer("; >+ protected final String TEXT_1317 = " element, "; >+ protected final String TEXT_1318 = " containerClass) {" + NL + "\t\t\tfor (; element != null; element = element.eContainer()) {" + NL + "\t\t\t\tif (containerClass.isSuperTypeOf(element.eClass())) {" + NL + "\t\t\t\t\treturn element;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}"; >+ protected final String TEXT_1319 = NL + NL + "\t}"; >+ protected final String TEXT_1320 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Reconnect"; >+ protected final String TEXT_1321 = "TargetCommand extends "; >+ protected final String TEXT_1322 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >+ protected final String TEXT_1323 = " edge;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >+ protected final String TEXT_1324 = " newTarget;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >+ protected final String TEXT_1325 = " oldTarget;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >+ protected final String TEXT_1326 = " reconnectCommand;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect"; >+ protected final String TEXT_1327 = "TargetCommand("; >+ protected final String TEXT_1328 = " request) {" + NL + "\t\t\tthis(("; >+ protected final String TEXT_1329 = ")request.getConnectionEditPart().getModel(), ("; >+ protected final String TEXT_1330 = ")request.getTarget().getModel());" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Reconnect"; >+ protected final String TEXT_1331 = "TargetCommand("; >+ protected final String TEXT_1332 = " edge, "; >+ protected final String TEXT_1333 = " newTarget) {" + NL + "\t\t\tthis.edge = edge;" + NL + "\t\t\tthis.newTarget = newTarget;" + NL + "\t\t\tthis.oldTarget = edge.getTarget();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\treconnectCommand.execute();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn reconnectCommand.canUndo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\treconnectCommand.undo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\texecute();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected boolean prepare() {"; >+ protected final String TEXT_1334 = NL + "\t\t\tfinal boolean[] resultHolder = new boolean[1];" + NL + "\t\t\t//To validate the reconnection against constraints, the current link should be deleted. Of course, we must then undo its deletion." + NL + "\t\t\tfinal "; >+ protected final String TEXT_1335 = " domainModelEditDomain = "; >+ protected final String TEXT_1336 = ".getEditingDomain(oldTarget.getDiagram().getElement());" + NL + "\t\t\t"; >+ protected final String TEXT_1337 = " command = new "; >+ protected final String TEXT_1338 = "() {" + NL + "\t\t\t\tprivate "; >+ protected final String TEXT_1339 = " deleteCommand = createDomainModelRemoveCommand(domainModelEditDomain);" + NL + "\t\t\t\tpublic boolean canExecute() {" + NL + "\t\t\t\t\treturn deleteCommand.canExecute();" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic boolean canUndo() {" + NL + "\t\t\t\t\treturn true;" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void redo() {" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void undo() {" + NL + "\t\t\t\t}" + NL + "\t\t\t\tpublic void execute() {" + NL + "\t\t\t\t\tdeleteCommand.execute();" + NL + "\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\tresultHolder[0] = canReconnect();" + NL + "\t\t\t\t\t} finally {" + NL + "\t\t\t\t\t\tdeleteCommand.undo();" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "\t\t\tif (!command.canExecute()) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}" + NL + "\t\t\tnew "; >+ protected final String TEXT_1340 = "(domainModelEditDomain, command).execute();" + NL + "\t\t\tif (resultHolder[0]) {" + NL + "\t\t\t\treconnectCommand = createReconnectCommand();" + NL + "\t\t\t}" + NL + "\t\t\treturn resultHolder[0] && reconnectCommand.canExecute();"; >+ protected final String TEXT_1341 = NL + "\t\t\tif (canReconnect()) {" + NL + "\t\t\t\treconnectCommand = createReconnectCommand();" + NL + "\t\t\t\treturn reconnectCommand.canExecute();" + NL + "\t\t\t}" + NL + "\t\t\treturn false;"; >+ protected final String TEXT_1342 = NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate boolean canReconnect() {"; >+ protected final String TEXT_1343 = NL; >+ protected final String TEXT_1344 = NL + "\t\tif ("; >+ protected final String TEXT_1345 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_1346 = NL + "\t\t}"; >+ protected final String TEXT_1347 = NL + "\t\tif ("; >+ protected final String TEXT_1348 = ".size() >= "; >+ protected final String TEXT_1349 = ".eINSTANCE.get"; >+ protected final String TEXT_1350 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_1351 = NL + "\t\t}"; >+ protected final String TEXT_1352 = NL; >+ protected final String TEXT_1353 = NL + "\t\t\tif(!"; >+ protected final String TEXT_1354 = ".canCreateLink("; >+ protected final String TEXT_1355 = ", "; >+ protected final String TEXT_1356 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; >+ protected final String TEXT_1357 = NL + "\t\t\treturn true;"; >+ protected final String TEXT_1358 = NL; >+ protected final String TEXT_1359 = NL + "\t\tif ("; >+ protected final String TEXT_1360 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_1361 = NL + "\t\t}"; >+ protected final String TEXT_1362 = NL + "\t\tif ("; >+ protected final String TEXT_1363 = ".size() >= "; >+ protected final String TEXT_1364 = ".eINSTANCE.get"; >+ protected final String TEXT_1365 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_1366 = NL + "\t\t}"; >+ protected final String TEXT_1367 = NL; >+ protected final String TEXT_1368 = NL + "\t\t\tif(!"; >+ protected final String TEXT_1369 = ".canCreateLink("; >+ protected final String TEXT_1370 = ", "; >+ protected final String TEXT_1371 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; >+ protected final String TEXT_1372 = NL + "\t\t\treturn true;"; >+ protected final String TEXT_1373 = NL + "\t\t\treturn false;"; >+ protected final String TEXT_1374 = NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >+ protected final String TEXT_1375 = " createReconnectCommand() {" + NL + "\t\t\t"; >+ protected final String TEXT_1376 = " editingDomain = "; >+ protected final String TEXT_1377 = ".getEditingDomain(oldTarget.getDiagram().getElement());" + NL + "\t\t\t"; >+ protected final String TEXT_1378 = " result = new "; >+ protected final String TEXT_1379 = "();" + NL + "\t\t\tresult.append(new "; >+ protected final String TEXT_1380 = "(edge, newTarget));"; >+ protected final String TEXT_1381 = NL + "\t\t\tresult.append("; >+ protected final String TEXT_1382 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; >+ protected final String TEXT_1383 = ".eINSTANCE.get"; >+ protected final String TEXT_1384 = "()," + NL + "\t\t\t\toldTarget.getElement()));" + NL + "\t\t\tresult.append("; >+ protected final String TEXT_1385 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; >+ protected final String TEXT_1386 = ".eINSTANCE.get"; >+ protected final String TEXT_1387 = "()," + NL + "\t\t\t\tnewTarget.getElement()));"; >+ protected final String TEXT_1388 = NL + "\t\t\tresult.append("; >+ protected final String TEXT_1389 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getElement(), "; >+ protected final String TEXT_1390 = ".eINSTANCE.get"; >+ protected final String TEXT_1391 = "()," + NL + "\t\t\t\tnewTarget.getElement()));"; >+ protected final String TEXT_1392 = NL + "\t\t\tresult.append("; >+ protected final String TEXT_1393 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getSource().getElement(), "; >+ protected final String TEXT_1394 = ".eINSTANCE.get"; >+ protected final String TEXT_1395 = "(), oldTarget.getElement()));" + NL + "\t\t\tresult.append("; >+ protected final String TEXT_1396 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getSource().getElement(), "; >+ protected final String TEXT_1397 = ".eINSTANCE.get"; >+ protected final String TEXT_1398 = "(), newTarget.getElement()));"; >+ protected final String TEXT_1399 = NL + "\t\t\tresult.append("; >+ protected final String TEXT_1400 = ".create(" + NL + "\t\t\t\teditingDomain," + NL + "\t\t\t\tedge.getSource().getElement(), "; >+ protected final String TEXT_1401 = ".eINSTANCE.get"; >+ protected final String TEXT_1402 = "(), newTarget.getElement()));"; >+ protected final String TEXT_1403 = NL + "\t\t\treturn result;" + NL + "\t\t}"; >+ protected final String TEXT_1404 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */"; >+ protected final String TEXT_1405 = NL; >+ protected final String TEXT_1406 = NL + "\t\t\tprivate "; >+ protected final String TEXT_1407 = " createDomainModelRemoveCommand("; >+ protected final String TEXT_1408 = " editingDomain) {"; >+ protected final String TEXT_1409 = NL + "\t\t\t\t"; >+ protected final String TEXT_1410 = " result = new "; >+ protected final String TEXT_1411 = "();"; >+ protected final String TEXT_1412 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1413 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1414 = ".getElement().eContainer(), "; >+ protected final String TEXT_1415 = ".eINSTANCE.get"; >+ protected final String TEXT_1416 = "(), "; >+ protected final String TEXT_1417 = ".getElement()));"; >+ protected final String TEXT_1418 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1419 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1420 = ".getElement().eContainer(), "; >+ protected final String TEXT_1421 = ".eINSTANCE.get"; >+ protected final String TEXT_1422 = "(), "; >+ protected final String TEXT_1423 = ".UNSET_VALUE));"; >+ protected final String TEXT_1424 = NL + "\t\t\t\treturn "; >+ protected final String TEXT_1425 = ".INSTANCE;"; >+ protected final String TEXT_1426 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1427 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1428 = ".getElement().eContainer(), "; >+ protected final String TEXT_1429 = ".eINSTANCE.get"; >+ protected final String TEXT_1430 = "()," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1431 = ".getElement()));"; >+ protected final String TEXT_1432 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1433 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1434 = ".getElement().eContainer(), "; >+ protected final String TEXT_1435 = ".eINSTANCE.get"; >+ protected final String TEXT_1436 = "()," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1437 = ".UNSET_VALUE));"; >+ protected final String TEXT_1438 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1439 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1440 = ".getElement(), "; >+ protected final String TEXT_1441 = ".eINSTANCE.get"; >+ protected final String TEXT_1442 = "(), "; >+ protected final String TEXT_1443 = ".getSource().getElement()));"; >+ protected final String TEXT_1444 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1445 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1446 = ".getElement(), "; >+ protected final String TEXT_1447 = ".eINSTANCE.get"; >+ protected final String TEXT_1448 = "(), "; >+ protected final String TEXT_1449 = ".UNSET_VALUE));"; >+ protected final String TEXT_1450 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1451 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1452 = ".getElement(), "; >+ protected final String TEXT_1453 = ".eINSTANCE.get"; >+ protected final String TEXT_1454 = "(), "; >+ protected final String TEXT_1455 = ".getTarget().getElement()));"; >+ protected final String TEXT_1456 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1457 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1458 = ".getElement(), "; >+ protected final String TEXT_1459 = ".eINSTANCE.get"; >+ protected final String TEXT_1460 = "(), "; >+ protected final String TEXT_1461 = ".UNSET_VALUE));"; >+ protected final String TEXT_1462 = NL + "\t\t\t\treturn result;"; >+ protected final String TEXT_1463 = NL + "\t\t\t\treturn "; >+ protected final String TEXT_1464 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1465 = ".getSource().getElement(), "; >+ protected final String TEXT_1466 = ".eINSTANCE.get"; >+ protected final String TEXT_1467 = "(), "; >+ protected final String TEXT_1468 = ".getTarget().getElement());"; >+ protected final String TEXT_1469 = NL + "\t\t\t\treturn "; >+ protected final String TEXT_1470 = ".create(" + NL + "\t\t\t\t\teditingDomain," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1471 = ".getSource().getElement(), "; >+ protected final String TEXT_1472 = ".eINSTANCE.get"; >+ protected final String TEXT_1473 = "(), "; >+ protected final String TEXT_1474 = ".UNSET_VALUE);"; >+ protected final String TEXT_1475 = NL + "\t\t\t}"; >+ protected final String TEXT_1476 = NL + "\t}" + NL; >+ protected final String TEXT_1477 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class Create"; >+ protected final String TEXT_1478 = "Command extends "; >+ protected final String TEXT_1479 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; >+ protected final String TEXT_1480 = " source;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; >+ protected final String TEXT_1481 = " target;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final "; >+ protected final String TEXT_1482 = " createdEdge;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate final org.eclipse.emf.common.command.Command domainModelAddCommand;" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic Create"; >+ protected final String TEXT_1483 = "Command("; >+ protected final String TEXT_1484 = " requestEx) {" + NL + "\t\t\tif (requestEx.getSourceEditPart().getModel() instanceof "; >+ protected final String TEXT_1485 = ") {" + NL + "\t\t\t\tsource = ("; >+ protected final String TEXT_1486 = ")requestEx.getSourceEditPart().getModel();" + NL + "\t\t\t} else {" + NL + "\t\t\t\tsource = null;" + NL + "\t\t\t}" + NL + "\t\t\tif (requestEx.getTargetEditPart().getModel() instanceof "; >+ protected final String TEXT_1487 = ") {" + NL + "\t\t\t\ttarget = ("; >+ protected final String TEXT_1488 = ")requestEx.getTargetEditPart().getModel();" + NL + "\t\t\t} else {" + NL + "\t\t\t\ttarget = null;" + NL + "\t\t\t}" + NL + "\t\t\tif (source == null || target == null) {" + NL + "\t\t\t\tcreatedEdge = null;" + NL + "\t\t\t\tdomainModelAddCommand = "; >+ protected final String TEXT_1489 = ".INSTANCE;" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\tcreatedEdge = "; >+ protected final String TEXT_1490 = ".eINSTANCE.createEdge();"; >+ protected final String TEXT_1491 = NL + "\t\t\t"; >+ protected final String TEXT_1492 = " createdDomainElement = "; >+ protected final String TEXT_1493 = ".eINSTANCE.create"; >+ protected final String TEXT_1494 = "();" + NL + "\t\t\tcreatedEdge.setElement("; >+ protected final String TEXT_1495 = "("; >+ protected final String TEXT_1496 = ") "; >+ protected final String TEXT_1497 = "createdDomainElement);" + NL + "\t\t\t"; >+ protected final String TEXT_1498 = NL + "\t\t\t"; >+ protected final String TEXT_1499 = "."; >+ protected final String TEXT_1500 = ".initializeElement("; >+ protected final String TEXT_1501 = "("; >+ protected final String TEXT_1502 = ") "; >+ protected final String TEXT_1503 = "createdDomainElement);"; >+ protected final String TEXT_1504 = NL + "\t\t\tcreatedEdge.setElement(null);"; >+ protected final String TEXT_1505 = NL + "\t\t\t"; >+ protected final String TEXT_1506 = ".INSTANCE.decorateView(createdEdge);" + NL + "\t\t\t"; >+ protected final String TEXT_1507 = " domainModelEditDomain = "; >+ protected final String TEXT_1508 = ".getEditingDomain(source.getDiagram().getElement());"; >+ protected final String TEXT_1509 = NL + "\t\t\torg.eclipse.emf.common.command.CompoundCommand addLinkEndsCommand = new org.eclipse.emf.common.command.CompoundCommand();"; >+ protected final String TEXT_1510 = NL + "\t\t\t"; >+ protected final String TEXT_1511 = " container = getRelationshipContainer(source.getElement(), "; >+ protected final String TEXT_1512 = ".eINSTANCE.get"; >+ protected final String TEXT_1513 = "());" + NL + "\t\t\tif (container == null) {" + NL + "\t\t\t\tdomainModelAddCommand = null;" + NL + "\t\t\t\treturn;" + NL + "\t\t\t}" + NL + "\t\t\taddLinkEndsCommand.append("; >+ protected final String TEXT_1514 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcontainer, "; >+ protected final String TEXT_1515 = ".eINSTANCE.get"; >+ protected final String TEXT_1516 = "(), createdDomainElement));"; >+ protected final String TEXT_1517 = NL + "\t\t\taddLinkEndsCommand.append("; >+ protected final String TEXT_1518 = ".create(domainModelEditDomain," + NL + "\t\t\t\tcontainer, "; >+ protected final String TEXT_1519 = ".eINSTANCE.get"; >+ protected final String TEXT_1520 = "(), createdDomainElement));"; >+ protected final String TEXT_1521 = NL; >+ protected final String TEXT_1522 = NL + "\t\tif ("; >+ protected final String TEXT_1523 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_1524 = NL + "\t\t}"; >+ protected final String TEXT_1525 = NL + "\t\tif ("; >+ protected final String TEXT_1526 = ".size() >= "; >+ protected final String TEXT_1527 = ".eINSTANCE.get"; >+ protected final String TEXT_1528 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_1529 = NL + "\t\t}"; >+ protected final String TEXT_1530 = NL + "\t\t\taddLinkEndsCommand.append("; >+ protected final String TEXT_1531 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcreatedDomainElement, "; >+ protected final String TEXT_1532 = ".eINSTANCE.get"; >+ protected final String TEXT_1533 = "(), source.getElement()));"; >+ protected final String TEXT_1534 = NL; >+ protected final String TEXT_1535 = NL + "\t\tif ("; >+ protected final String TEXT_1536 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_1537 = NL + "\t\t}"; >+ protected final String TEXT_1538 = NL + "\t\tif ("; >+ protected final String TEXT_1539 = ".size() >= "; >+ protected final String TEXT_1540 = ".eINSTANCE.get"; >+ protected final String TEXT_1541 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_1542 = NL + "\t\t}"; >+ protected final String TEXT_1543 = NL; >+ protected final String TEXT_1544 = NL + "\t\tif ("; >+ protected final String TEXT_1545 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_1546 = NL + "\t\t}"; >+ protected final String TEXT_1547 = NL + "\t\tif ("; >+ protected final String TEXT_1548 = ".size() >= "; >+ protected final String TEXT_1549 = ".eINSTANCE.get"; >+ protected final String TEXT_1550 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_1551 = NL + "\t\t}"; >+ protected final String TEXT_1552 = NL + "\t\t\taddLinkEndsCommand.append("; >+ protected final String TEXT_1553 = ".create(domainModelEditDomain, " + NL + "\t\t\t\tcreatedDomainElement, "; >+ protected final String TEXT_1554 = ".eINSTANCE.get"; >+ protected final String TEXT_1555 = "(), target.getElement()));"; >+ protected final String TEXT_1556 = NL + "\t\tdomainModelAddCommand = addLinkEndsCommand;"; >+ protected final String TEXT_1557 = NL; >+ protected final String TEXT_1558 = NL + "\t\tif ("; >+ protected final String TEXT_1559 = " != null) {" + NL + "\t\t\t"; >+ protected final String TEXT_1560 = NL + "\t\t}"; >+ protected final String TEXT_1561 = NL + "\t\tif ("; >+ protected final String TEXT_1562 = ".size() >= "; >+ protected final String TEXT_1563 = ".eINSTANCE.get"; >+ protected final String TEXT_1564 = "().getUpperBound()) {" + NL + "\t\t\t"; >+ protected final String TEXT_1565 = NL + "\t\t}"; >+ protected final String TEXT_1566 = NL + "\t\t\tdomainModelAddCommand = "; >+ protected final String TEXT_1567 = ".create(domainModelEditDomain, source.getElement(), " + NL + "\t\t\t\t"; >+ protected final String TEXT_1568 = ".eINSTANCE.get"; >+ protected final String TEXT_1569 = "(), target.getElement());"; >+ protected final String TEXT_1570 = NL + "\t\t}" + NL; >+ protected final String TEXT_1571 = NL; >+ protected final String TEXT_1572 = NL + "\t\t/**" + NL + "\t\t * Finds container element for the relationship of the specified type." + NL + "\t\t * Default implementation goes up by containment hierarchy starting from" + NL + "\t\t * the specified element and returns the first element that is instance of" + NL + "\t\t * the specified container class." + NL + "\t\t * " + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_1573 = " getRelationshipContainer("; >+ protected final String TEXT_1574 = " element, "; >+ protected final String TEXT_1575 = " containerClass) {" + NL + "\t\t\tfor (; element != null; element = element.eContainer()) {" + NL + "\t\t\t\tif (containerClass.isSuperTypeOf(element.eClass())) {" + NL + "\t\t\t\t\treturn element;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}"; >+ protected final String TEXT_1576 = NL + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canExecute() {" + NL + "\t\t\tif (source == null || target == null || createdEdge == null || domainModelAddCommand == null || !domainModelAddCommand.canExecute()) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; >+ protected final String TEXT_1577 = NL; >+ protected final String TEXT_1578 = NL + "\t\t\tif(!"; >+ protected final String TEXT_1579 = ".canCreateLink("; >+ protected final String TEXT_1580 = ", "; >+ protected final String TEXT_1581 = ", false)) {" + NL + "\t\t\t\treturn false;" + NL + "\t\t\t}"; >+ protected final String TEXT_1582 = NL + "\t\t\treturn true;" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic boolean canUndo() {" + NL + "\t\t\treturn source != null && target != null && createdEdge != null && domainModelAddCommand != null && domainModelAddCommand.canUndo();" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void execute() {" + NL + "\t\t\tdomainModelAddCommand.execute();" + NL + "\t\t\tsource.getDiagram().insertEdge(createdEdge);" + NL + "\t\t\tcreatedEdge.setSource(source);" + NL + "\t\t\tcreatedEdge.setTarget(target);" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void undo() {" + NL + "\t\t\tdomainModelAddCommand.undo();" + NL + "\t\t\tsource.getDiagram().removeEdge(createdEdge);" + NL + "\t\t\tcreatedEdge.setSource(null);" + NL + "\t\t\tcreatedEdge.setTarget(null);" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void redo() {" + NL + "\t\t\texecute();" + NL + "\t\t}" + NL + "\t}"; >+ protected final String TEXT_1583 = NL; >+ protected final String TEXT_1584 = NL; >+ protected final String TEXT_1585 = NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate static class MapModeWorkaround {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic int DPtoLP(int dp) {" + NL + "\t\t\treturn dp;" + NL + "\t\t}" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic static MapModeWorkaround INSTANCE = new MapModeWorkaround();" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate MapModeWorkaround getMapMode() {" + NL + "\t\treturn MapModeWorkaround.INSTANCE;" + NL + "\t}"; >+ protected final String TEXT_1586 = NL + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate class TreeEditPartAdapter extends "; >+ protected final String TEXT_1587 = " {" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic TreeEditPartAdapter() {" + NL + "\t\t\tsuper(getDiagramNode(), "; >+ protected final String TEXT_1588 = ".getInstance().getItemProvidersAdapterFactory());" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected void createEditPolicies() {"; >+ protected final String TEXT_1589 = NL; >+ protected final String TEXT_1590 = "\t\tinstallEditPolicy("; >+ protected final String TEXT_1591 = ".COMPONENT_ROLE, new "; >+ protected final String TEXT_1592 = "() {" + NL + "\t\t\tprotected "; >+ protected final String TEXT_1593 = " createDeleteCommand("; >+ protected final String TEXT_1594 = " deleteRequest) {" + NL + "\t\t\t\t"; >+ protected final String TEXT_1595 = " editingDomain = "; >+ protected final String TEXT_1596 = ".getEditingDomain(getDiagramNode().getDiagram().getElement());" + NL + "\t\t\t\t"; >+ protected final String TEXT_1597 = " cc = new "; >+ protected final String TEXT_1598 = "();" + NL + "\t\t\t\tcc.append(getDomainModelRemoveCommand(editingDomain));" + NL + "\t\t\t\tcc.append("; >+ protected final String TEXT_1599 = ".create(editingDomain, getDiagramNode()));" + NL + "\t\t\t\treturn new "; >+ protected final String TEXT_1600 = "(editingDomain, cc);" + NL + "\t\t\t}" + NL + "" + NL + "\t\t\tprivate org.eclipse.emf.common.command.Command getDomainModelRemoveCommand("; >+ protected final String TEXT_1601 = " editingDomain) {"; >+ protected final String TEXT_1602 = NL + "\t\t\t\t"; >+ protected final String TEXT_1603 = " result = new "; >+ protected final String TEXT_1604 = "();"; >+ protected final String TEXT_1605 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1606 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; >+ protected final String TEXT_1607 = ".eINSTANCE.get"; >+ protected final String TEXT_1608 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement()));"; >+ protected final String TEXT_1609 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1610 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; >+ protected final String TEXT_1611 = ".eINSTANCE.get"; >+ protected final String TEXT_1612 = "()," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1613 = ".UNSET_VALUE));"; >+ protected final String TEXT_1614 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1615 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; >+ protected final String TEXT_1616 = ".eINSTANCE.get"; >+ protected final String TEXT_1617 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement()));"; >+ protected final String TEXT_1618 = NL + "\t\t\t\tresult.append("; >+ protected final String TEXT_1619 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; >+ protected final String TEXT_1620 = ".eINSTANCE.get"; >+ protected final String TEXT_1621 = "()," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1622 = ".UNSET_VALUE));"; >+ protected final String TEXT_1623 = NL + "\t\t\t\treturn result;"; >+ protected final String TEXT_1624 = NL + "\t\t\t\treturn "; >+ protected final String TEXT_1625 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; >+ protected final String TEXT_1626 = ".eINSTANCE.get"; >+ protected final String TEXT_1627 = "()," + NL + "\t\t\t\t\tgetDiagramNode().getElement());"; >+ protected final String TEXT_1628 = NL + "\t\t\t\treturn "; >+ protected final String TEXT_1629 = ".create(" + NL + "\t\t\t\t\teditingDomain, " + NL + "\t\t\t\t\tgetDiagramNode().getElement().eContainer(), "; >+ protected final String TEXT_1630 = ".eINSTANCE.get"; >+ protected final String TEXT_1631 = "()," + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1632 = ".UNSET_VALUE);"; >+ protected final String TEXT_1633 = NL + "\t\t\t}" + NL + "\t\t});"; >+ protected final String TEXT_1634 = NL; >+ protected final String TEXT_1635 = "\t\tinstallEditPolicy("; >+ protected final String TEXT_1636 = ".DIRECT_EDIT_ROLE," + NL + "\t\t\t\tnew "; >+ protected final String TEXT_1637 = "() {" + NL + "\t\t\t\t\tprotected void showCurrentEditValue("; >+ protected final String TEXT_1638 = " request) {" + NL + "\t\t\t\t\t\tString value = (String) request.getCellEditor().getValue();" + NL + "\t\t\t\t\t\tsetWidgetText(value);" + NL + "\t\t\t\t\t}"; >+ protected final String TEXT_1639 = NL; >+ protected final String TEXT_1640 = "\t\t\t\t\tprotected "; >+ protected final String TEXT_1641 = " getDirectEditCommand("; >+ protected final String TEXT_1642 = " request) {" + NL + "\t\t\t\t\t\tString value = (String) request.getCellEditor().getValue();" + NL + "\t\t\t\t\t\tif (value == null) {" + NL + "\t\t\t\t\t\t\t//Invalid value is transformed into a null by the validator." + NL + "\t\t\t\t\t\t\t//XXX: implement validator" + NL + "\t\t\t\t\t\t\treturn "; >+ protected final String TEXT_1643 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\tfinal Object[] parseResult;" + NL + "\t\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\t\tparseResult = new "; >+ protected final String TEXT_1644 = "("; >+ protected final String TEXT_1645 = ").parse(value);" + NL + "\t\t\t\t\t\t} catch (IllegalArgumentException e) {" + NL + "\t\t\t\t\t\t\treturn "; >+ protected final String TEXT_1646 = ".INSTANCE;" + NL + "\t\t\t\t\t\t} catch ("; >+ protected final String TEXT_1647 = " e) {" + NL + "\t\t\t\t\t\t\treturn "; >+ protected final String TEXT_1648 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_1649 = " editingDomain = "; >+ protected final String TEXT_1650 = ".getEditingDomain("; >+ protected final String TEXT_1651 = ".getDiagram().getElement());"; >+ protected final String TEXT_1652 = NL + "\t\t\t\t\t\tif (parseResult.length != 1) {" + NL + "\t\t\t\t\t\t\treturn "; >+ protected final String TEXT_1653 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_1654 = " domainModelCommand = createDomainModelCommand(editingDomain, parseResult[0]);" + NL + "\t\t\t\t\t\treturn new "; >+ protected final String TEXT_1655 = "(editingDomain, domainModelCommand);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1656 = " createDomainModelCommand("; >+ protected final String TEXT_1657 = " editingDomain, Object value) {" + NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_1658 = " element = "; >+ protected final String TEXT_1659 = ";" + NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_1660 = " feature = ("; >+ protected final String TEXT_1661 = ") "; >+ protected final String TEXT_1662 = ".eINSTANCE.get"; >+ protected final String TEXT_1663 = "();" + NL + "\t\t\t\t\t\tObject valueToSet;" + NL + "\t\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\t\tvalueToSet = "; >+ protected final String TEXT_1664 = ".parseValue(feature, value);" + NL + "\t\t\t\t\t\t} catch (IllegalArgumentException e) {" + NL + "\t\t\t\t\t\t\treturn "; >+ protected final String TEXT_1665 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}"; >+ protected final String TEXT_1666 = NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_1667 = " result = new "; >+ protected final String TEXT_1668 = "();" + NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_1669 = " values = new "; >+ protected final String TEXT_1670 = "();" + NL + "\t\t\t\t\t\tvalues.addAll(element.get"; >+ protected final String TEXT_1671 = "());" + NL + "\t\t\t\t\t\tresult.append("; >+ protected final String TEXT_1672 = ".create(editingDomain, element, feature, values));" + NL + "\t\t\t\t\t\tresult.append("; >+ protected final String TEXT_1673 = ".create(editingDomain, element, feature, valueToSet));" + NL + "\t\t\t\t\t\treturn result;"; >+ protected final String TEXT_1674 = NL + "\t\t\t\t\t\treturn "; >+ protected final String TEXT_1675 = ".create(editingDomain, element, feature, valueToSet);"; >+ protected final String TEXT_1676 = NL + "\t\t\t\t\t}"; >+ protected final String TEXT_1677 = NL + "\t\t\t\t\t\tif (parseResult.length != "; >+ protected final String TEXT_1678 = ") {" + NL + "\t\t\t\t\t\t\treturn "; >+ protected final String TEXT_1679 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}" + NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_1680 = " domainModelCommand = createDomainModelCommand(editingDomain, parseResult);" + NL + "\t\t\t\t\t\treturn new "; >+ protected final String TEXT_1681 = "(editingDomain, domainModelCommand);" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t\t"; >+ protected final String TEXT_1682 = " createDomainModelCommand("; >+ protected final String TEXT_1683 = " editingDomain, Object[] values) {" + NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_1684 = " element = "; >+ protected final String TEXT_1685 = ";" + NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_1686 = " result = new "; >+ protected final String TEXT_1687 = "();" + NL + "\t\t\t\t\t\tObject valueToSet;"; >+ protected final String TEXT_1688 = NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_1689 = " "; >+ protected final String TEXT_1690 = "feature = ("; >+ protected final String TEXT_1691 = ") "; >+ protected final String TEXT_1692 = ".eINSTANCE.get"; >+ protected final String TEXT_1693 = "();" + NL + "\t\t\t\t\t\ttry {" + NL + "\t\t\t\t\t\t\tvalueToSet = "; >+ protected final String TEXT_1694 = ".parseValue(feature, values["; >+ protected final String TEXT_1695 = "]);" + NL + "\t\t\t\t\t\t} catch (IllegalArgumentException e) {" + NL + "\t\t\t\t\t\t\treturn "; >+ protected final String TEXT_1696 = ".INSTANCE;" + NL + "\t\t\t\t\t\t}"; >+ protected final String TEXT_1697 = NL + "\t\t\t\t\t\t"; >+ protected final String TEXT_1698 = " "; >+ protected final String TEXT_1699 = "values = new "; >+ protected final String TEXT_1700 = "();" + NL + "\t\t\t\t\t\tvalues.addAll(element.get"; >+ protected final String TEXT_1701 = "());" + NL + "\t\t\t\t\t\tresult.append("; >+ protected final String TEXT_1702 = ".create(editingDomain, element, feature, values));" + NL + "\t\t\t\t\t\tresult.append("; >+ protected final String TEXT_1703 = ".create(editingDomain, element, feature, valueToSet));"; >+ protected final String TEXT_1704 = NL + "\t\t\t\t\t\tresult.append("; >+ protected final String TEXT_1705 = ".create(editingDomain, element, feature, valueToSet));"; >+ protected final String TEXT_1706 = NL + "\t\t\t\t\t\treturn result;" + NL + "\t\t\t\t\t}"; >+ protected final String TEXT_1707 = NL + "\t\t\t\t});"; >+ protected final String TEXT_1708 = NL + "\t\t}" + NL; >+ protected final String TEXT_1709 = NL; >+ protected final String TEXT_1710 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_1711 = " manager;" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tpublic void performRequest("; >+ protected final String TEXT_1712 = " req) {" + NL + "\t\tif ("; >+ protected final String TEXT_1713 = ".REQ_DIRECT_EDIT == req.getType()) {" + NL + "\t\t\tperformDirectEdit();" + NL + "\t\t} else {" + NL + "\t\t\tsuper.performRequest(req);" + NL + "\t\t}" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected "; >+ protected final String TEXT_1714 = " getManager() {" + NL + "\t\tif (manager == null) {" + NL + "\t\t\tmanager = new "; >+ protected final String TEXT_1715 = "(this, "; >+ protected final String TEXT_1716 = ".class, new "; >+ protected final String TEXT_1717 = "() {" + NL + "\t\t\t\tpublic void relocate("; >+ protected final String TEXT_1718 = " celleditor) {" + NL + "\t\t\t\t\tif (checkTreeItem()) {" + NL + "\t\t\t\t\t\tcelleditor.getControl().setFont((("; >+ protected final String TEXT_1719 = ") getWidget()).getFont());" + NL + "\t\t\t\t\t\tcelleditor.getControl().setBounds((("; >+ protected final String TEXT_1720 = ") getWidget()).getBounds());" + NL + "\t\t\t\t\t}" + NL + "\t\t\t\t}" + NL + "\t\t\t}) {" + NL + "\t\t\t\tprotected void initCellEditor() {" + NL + "\t\t\t\t\tgetCellEditor().setValue(getEditText());" + NL + "\t\t\t\t}" + NL + "\t\t\t};" + NL + "\t\t}" + NL + "\t\treturn manager;" + NL + "\t}" + NL + "" + NL + "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprotected void performDirectEdit() {" + NL + "\t\tgetManager().show();" + NL + "\t}" + NL + "" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected String getEditText() {" + NL + "\t\t\t"; >+ protected final String TEXT_1721 = " primaryLabelEditPart = getPrimaryLabelEditPart();" + NL + "\t\t\tif (primaryLabelEditPart != null) {" + NL + "\t\t\t\treturn primaryLabelEditPart.getLabelEditText();" + NL + "\t\t\t}" + NL + "\t\t\treturn \"\";" + NL + "\t\t}" + NL; >+ protected final String TEXT_1722 = NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void activate() {" + NL + "\t\t\tsuper.activate();" + NL + "\t\t\tgetDiagramNode().getElement().eAdapters().add(domainModelRefresher);" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tpublic void deactivate() {" + NL + "\t\t\tgetDiagramNode().getElement().eAdapters().remove(domainModelRefresher);" + NL + "\t\t\tsuper.deactivate();" + NL + "\t\t}" + NL; >+ protected final String TEXT_1723 = NL; >+ protected final String TEXT_1724 = "\t/**" + NL + "\t * @generated" + NL + "\t */" + NL + "\tprivate "; >+ protected final String TEXT_1725 = " domainModelRefresher = new "; >+ protected final String TEXT_1726 = "(this);" + NL; >+ protected final String TEXT_1727 = NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected String getText() {" + NL + "\t\t\t"; >+ protected final String TEXT_1728 = " primaryLabelEditPart = getPrimaryLabelEditPart();" + NL + "\t\t\tif (primaryLabelEditPart != null) {" + NL + "\t\t\t\treturn primaryLabelEditPart.getLabelText();" + NL + "\t\t\t}" + NL + "\t\t\treturn super.getText();" + NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprivate "; >+ protected final String TEXT_1729 = " getPrimaryLabelEditPart() {" + NL + "\t\t\tfor("; >+ protected final String TEXT_1730 = " it = getDiagramNode().getChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t"; >+ protected final String TEXT_1731 = " nextChild = ("; >+ protected final String TEXT_1732 = ")it.next();" + NL + "\t\t\t\tif ("; >+ protected final String TEXT_1733 = ".getVisualID(nextChild) == "; >+ protected final String TEXT_1734 = ".VISUAL_ID) {" + NL + "\t\t\t\t\treturn ("; >+ protected final String TEXT_1735 = ") "; >+ protected final String TEXT_1736 = ".this.getViewer().getEditPartRegistry().get(nextChild);" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn null;" + NL + "\t\t}"; >+ protected final String TEXT_1737 = NL + NL + "\t\t/**" + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected void createRefreshers() {" + NL + "\t\t\tsuper.createRefreshers();" + NL + "\t\t\tRefresher labelRefresher = new Refresher() {" + NL + "\t\t\t\tpublic void refresh() {" + NL + "\t\t\t\t\trefreshVisuals();" + NL + "\t\t\t\t}" + NL + "\t\t\t};"; >+ protected final String TEXT_1738 = NL + "\t\t\tregisterRefresher("; >+ protected final String TEXT_1739 = ".eINSTANCE.get"; >+ protected final String TEXT_1740 = "(), labelRefresher);"; >+ protected final String TEXT_1741 = NL + "\t\t\tregisterRefresher("; >+ protected final String TEXT_1742 = ".eINSTANCE.get"; >+ protected final String TEXT_1743 = "(), labelRefresher);"; >+ protected final String TEXT_1744 = NL + "\t\t\tregisterRefresher("; >+ protected final String TEXT_1745 = ".eINSTANCE.get"; >+ protected final String TEXT_1746 = "(), labelRefresher);"; >+ protected final String TEXT_1747 = NL + "\t\t}" + NL + "" + NL + "\t\t/**" + NL + "\t\t * Since compartments and labels are not selectable edit parts, they are filtered from the overview as well." + NL + "\t\t * @generated" + NL + "\t\t */" + NL + "\t\tprotected "; >+ protected final String TEXT_1748 = " getModelChildren() {" + NL + "\t\t\t"; >+ protected final String TEXT_1749 = " result = new "; >+ protected final String TEXT_1750 = "();" + NL + "\t\t\tfor("; >+ protected final String TEXT_1751 = " it = getDiagramNode().getVisibleChildren().iterator(); it.hasNext(); ) {" + NL + "\t\t\t\t"; >+ protected final String TEXT_1752 = " next = ("; >+ protected final String TEXT_1753 = ") it.next();" + NL + "\t\t\t\tswitch ("; >+ protected final String TEXT_1754 = ".getVisualID(next)) {"; >+ protected final String TEXT_1755 = NL + "\t\t\t\tcase "; >+ protected final String TEXT_1756 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult.add(next);" + NL + "\t\t\t\t\tbreak;"; >+ protected final String TEXT_1757 = NL + "\t\t\t\tcase "; >+ protected final String TEXT_1758 = ".VISUAL_ID:" + NL + "\t\t\t\t\tresult.addAll(next.getChildren());" + NL + "\t\t\t\t\tbreak;"; >+ protected final String TEXT_1759 = NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\tresult.addAll(getDiagramNode().getSourceEdges());" + NL + "\t\t\treturn result;" + NL + "\t\t}" + NL + "\t}" + NL + "}"; >+ protected final String TEXT_1760 = NL; > > public String generate(Object argument) > { >@@ -2270,50 +2376,116 @@ > GenFeature childFeature = facet.getChildMetaFeature(); > GenFeature containmentFeature = facet.getContainmentMetaFeature(); > if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { >+ GenFeature _feature = childFeature; >+ String _ownerInstance = _getViewCode + ".getElement()"; >+ String _exceedsUpperBound = "return " + importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand") + ".INSTANCE;"; >+ GenClass _ownerGenClass = null; > > stringBuffer.append(TEXT_136); >- stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >+ >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ > stringBuffer.append(TEXT_137); >- stringBuffer.append(_getViewCode); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); > stringBuffer.append(TEXT_138); >- stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(_exceedsUpperBound); > stringBuffer.append(TEXT_139); >- stringBuffer.append(childFeature.getFeatureAccessorName()); >+ >+ } else { >+ > stringBuffer.append(TEXT_140); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_141); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_142); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_143); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_144); >+ >+ } >+} >+ >+ stringBuffer.append(TEXT_145); >+ stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >+ stringBuffer.append(TEXT_146); >+ stringBuffer.append(_getViewCode); >+ stringBuffer.append(TEXT_147); >+ stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_148); >+ stringBuffer.append(childFeature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_149); > > } >+ { >+ GenFeature _feature = containmentFeature; >+ String _ownerInstance = _getViewCode + ".getElement()"; >+ String _exceedsUpperBound = "return " + importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand") + ".INSTANCE;"; >+ GenClass _ownerGenClass = null; > >- stringBuffer.append(TEXT_141); >+ stringBuffer.append(TEXT_150); >+ >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ >+ stringBuffer.append(TEXT_151); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >+ stringBuffer.append(TEXT_152); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_153); >+ >+ } else { >+ >+ stringBuffer.append(TEXT_154); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_155); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_156); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_157); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_158); >+ >+ } >+} >+ >+ >+ } >+ >+ stringBuffer.append(TEXT_159); > stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_142); >+ stringBuffer.append(TEXT_160); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_143); >+ stringBuffer.append(TEXT_161); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_144); >+ stringBuffer.append(TEXT_162); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_145); >+ stringBuffer.append(TEXT_163); > > } //local declaration for related nodes. > >- stringBuffer.append(TEXT_146); >+ stringBuffer.append(TEXT_164); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_147); >+ stringBuffer.append(TEXT_165); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); >- stringBuffer.append(TEXT_148); >+ stringBuffer.append(TEXT_166); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_149); >+ stringBuffer.append(TEXT_167); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_150); >+ stringBuffer.append(TEXT_168); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.SetBoundsCommand")); >- stringBuffer.append(TEXT_151); >+ stringBuffer.append(TEXT_169); > if (isListLayout) { >- stringBuffer.append(TEXT_152); >+ stringBuffer.append(TEXT_170); > } else { >- stringBuffer.append(TEXT_153); >+ stringBuffer.append(TEXT_171); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >- stringBuffer.append(TEXT_154); >+ stringBuffer.append(TEXT_172); > } >- stringBuffer.append(TEXT_155); >+ stringBuffer.append(TEXT_173); > > { > int defaultWidth = 40; >@@ -2324,90 +2496,90 @@ > defaultHeight = defSizeAttrs.getHeight(); > } > >- stringBuffer.append(TEXT_156); >+ stringBuffer.append(TEXT_174); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand")); >- stringBuffer.append(TEXT_157); >+ stringBuffer.append(TEXT_175); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_158); >+ stringBuffer.append(TEXT_176); > if (isListLayout) { >- stringBuffer.append(TEXT_159); >+ stringBuffer.append(TEXT_177); > } else { >- stringBuffer.append(TEXT_160); >+ stringBuffer.append(TEXT_178); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >- stringBuffer.append(TEXT_161); >+ stringBuffer.append(TEXT_179); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Dimension")); >- stringBuffer.append(TEXT_162); >+ stringBuffer.append(TEXT_180); > stringBuffer.append(defaultWidth); >- stringBuffer.append(TEXT_163); >+ stringBuffer.append(TEXT_181); > stringBuffer.append(defaultHeight); >- stringBuffer.append(TEXT_164); >+ stringBuffer.append(TEXT_182); > } >- stringBuffer.append(TEXT_165); >+ stringBuffer.append(TEXT_183); > stringBuffer.append(importManager.getImportedName(next.getNotationViewFactoryQualifiedClassName())); >- stringBuffer.append(TEXT_166); >+ stringBuffer.append(TEXT_184); > > } > >- stringBuffer.append(TEXT_167); >+ stringBuffer.append(TEXT_185); > > } //for > >- stringBuffer.append(TEXT_168); >+ stringBuffer.append(TEXT_186); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_169); >+ stringBuffer.append(TEXT_187); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_170); >+ stringBuffer.append(TEXT_188); > > } //if (!childNodes.isEmpty()) in createAddCommand > >- stringBuffer.append(TEXT_171); >+ stringBuffer.append(TEXT_189); > > /* delegation from getCloneCommand to createCloneCommand is 100% analogous to delegation from getAddCommand() to createAddCommand() in ConstrainedLayoutEditPolicy. */ > > > if (!childNodes.isEmpty()) { > >- stringBuffer.append(TEXT_172); >+ stringBuffer.append(TEXT_190); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); >- stringBuffer.append(TEXT_173); >+ stringBuffer.append(TEXT_191); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ChangeBoundsRequest")); >- stringBuffer.append(TEXT_174); >+ stringBuffer.append(TEXT_192); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_175); >+ stringBuffer.append(TEXT_193); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.CompoundCommand")); >- stringBuffer.append(TEXT_176); >+ stringBuffer.append(TEXT_194); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.CompoundCommand")); >- stringBuffer.append(TEXT_177); >+ stringBuffer.append(TEXT_195); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); >- stringBuffer.append(TEXT_178); >+ stringBuffer.append(TEXT_196); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >- stringBuffer.append(TEXT_179); >+ stringBuffer.append(TEXT_197); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); >- stringBuffer.append(TEXT_180); >+ stringBuffer.append(TEXT_198); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); >- stringBuffer.append(TEXT_181); >+ stringBuffer.append(TEXT_199); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); >- stringBuffer.append(TEXT_182); >+ stringBuffer.append(TEXT_200); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); >- stringBuffer.append(TEXT_183); >+ stringBuffer.append(TEXT_201); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); >- stringBuffer.append(TEXT_184); >+ stringBuffer.append(TEXT_202); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); >- stringBuffer.append(TEXT_185); >+ stringBuffer.append(TEXT_203); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_186); >+ stringBuffer.append(TEXT_204); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_187); >+ stringBuffer.append(TEXT_205); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_188); >+ stringBuffer.append(TEXT_206); > stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_189); >+ stringBuffer.append(TEXT_207); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_190); >+ stringBuffer.append(TEXT_208); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_191); >+ stringBuffer.append(TEXT_209); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_192); >+ stringBuffer.append(TEXT_210); > > for(Iterator it = childNodes.iterator(); it.hasNext(); ) { > GenNode next = (GenNode) it.next(); >@@ -2415,256 +2587,329 @@ > GenFeature childFeature = facet.getChildMetaFeature(); > GenFeature containmentFeature = facet.getContainmentMetaFeature(); > >- stringBuffer.append(TEXT_193); >+ stringBuffer.append(TEXT_211); > stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_194); >+ stringBuffer.append(TEXT_212); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CommandWrapper")); >- stringBuffer.append(TEXT_195); >+ stringBuffer.append(TEXT_213); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_196); >+ stringBuffer.append(TEXT_214); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_197); >+ stringBuffer.append(TEXT_215); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_198); >+ stringBuffer.append(TEXT_216); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.CopyCommand")); >- stringBuffer.append(TEXT_199); >- stringBuffer.append(importManager.getImportedName("java.util.Collection")); >- stringBuffer.append(TEXT_200); >- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_201); >- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_202); >- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_203); >+ stringBuffer.append(TEXT_217); > > if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { >+ GenFeature _feature = childFeature; >+ String _ownerInstance = _getViewCode + ".getElement()"; >+ String _exceedsUpperBound = "return false;"; >+ GenClass _ownerGenClass = null; > >- stringBuffer.append(TEXT_204); >- stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_205); >- stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_206); >- stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_207); >- stringBuffer.append(childFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_208); >- >- } >- >- stringBuffer.append(TEXT_209); >- stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_210); >- stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_211); >- stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_212); >- stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_213); >+ stringBuffer.append(TEXT_218); > >- { >- int defaultWidth = 40; >- int defaultHeight = 40; >- DefaultSizeAttributes defSizeAttrs = (DefaultSizeAttributes) next.getViewmap().find(DefaultSizeAttributes.class); >- if (defSizeAttrs != null) { >- defaultWidth = defSizeAttrs.getWidth(); >- defaultHeight = defSizeAttrs.getHeight(); >- } >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { > >- stringBuffer.append(TEXT_214); >- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand")); >- stringBuffer.append(TEXT_215); >- stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_216); >- if (isListLayout) { >- stringBuffer.append(TEXT_217); >- } else { >- stringBuffer.append(TEXT_218); >- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); > stringBuffer.append(TEXT_219); >- stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Dimension")); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); > stringBuffer.append(TEXT_220); >- stringBuffer.append(defaultWidth); >+ stringBuffer.append(_exceedsUpperBound); > stringBuffer.append(TEXT_221); >- stringBuffer.append(defaultHeight); >+ >+ } else { >+ > stringBuffer.append(TEXT_222); >- } >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); > stringBuffer.append(TEXT_223); >- stringBuffer.append(importManager.getImportedName(next.getNotationViewFactoryQualifiedClassName())); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); > stringBuffer.append(TEXT_224); >- >- } >- } //for >- >+ stringBuffer.append(_feature.getFeatureAccessorName()); > stringBuffer.append(TEXT_225); >- stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >+ stringBuffer.append(_exceedsUpperBound); > stringBuffer.append(TEXT_226); >- stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >+ >+ } >+} >+ >+ >+ } >+ { >+ GenFeature _feature = containmentFeature; >+ String _ownerInstance = _getViewCode + ".getElement()"; >+ String _exceedsUpperBound = "return false;"; >+ GenClass _ownerGenClass = null; >+ > stringBuffer.append(TEXT_227); > >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ >+ stringBuffer.append(TEXT_228); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >+ stringBuffer.append(TEXT_229); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_230); >+ >+ } else { >+ >+ stringBuffer.append(TEXT_231); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_232); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_233); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_234); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_235); >+ >+ } >+} >+ >+ >+ } >+ >+ stringBuffer.append(TEXT_236); >+ stringBuffer.append(importManager.getImportedName("java.util.Collection")); >+ stringBuffer.append(TEXT_237); >+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >+ stringBuffer.append(TEXT_238); >+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >+ stringBuffer.append(TEXT_239); >+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >+ stringBuffer.append(TEXT_240); >+ >+ if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { >+ >+ stringBuffer.append(TEXT_241); >+ stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >+ stringBuffer.append(TEXT_242); >+ stringBuffer.append(_getViewCode); >+ stringBuffer.append(TEXT_243); >+ stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_244); >+ stringBuffer.append(childFeature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_245); >+ >+ } >+ >+ stringBuffer.append(TEXT_246); >+ stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >+ stringBuffer.append(TEXT_247); >+ stringBuffer.append(_getViewCode); >+ stringBuffer.append(TEXT_248); >+ stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_249); >+ stringBuffer.append(containmentFeature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_250); >+ >+ { >+ int defaultWidth = 40; >+ int defaultHeight = 40; >+ DefaultSizeAttributes defSizeAttrs = (DefaultSizeAttributes) next.getViewmap().find(DefaultSizeAttributes.class); >+ if (defSizeAttrs != null) { >+ defaultWidth = defSizeAttrs.getWidth(); >+ defaultHeight = defSizeAttrs.getHeight(); >+ } >+ >+ stringBuffer.append(TEXT_251); >+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand")); >+ stringBuffer.append(TEXT_252); >+ stringBuffer.append(_getViewCode); >+ stringBuffer.append(TEXT_253); >+ if (isListLayout) { >+ stringBuffer.append(TEXT_254); >+ } else { >+ stringBuffer.append(TEXT_255); >+ stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >+ stringBuffer.append(TEXT_256); >+ stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Dimension")); >+ stringBuffer.append(TEXT_257); >+ stringBuffer.append(defaultWidth); >+ stringBuffer.append(TEXT_258); >+ stringBuffer.append(defaultHeight); >+ stringBuffer.append(TEXT_259); >+ } >+ stringBuffer.append(TEXT_260); >+ stringBuffer.append(importManager.getImportedName(next.getNotationViewFactoryQualifiedClassName())); >+ stringBuffer.append(TEXT_261); >+ >+ } >+ } //for >+ >+ stringBuffer.append(TEXT_262); >+ stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >+ stringBuffer.append(TEXT_263); >+ stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >+ stringBuffer.append(TEXT_264); >+ > } //if (!childNodes.isEmpty()) > > > } > >- stringBuffer.append(TEXT_228); >+ stringBuffer.append(TEXT_265); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); >- stringBuffer.append(TEXT_229); >+ stringBuffer.append(TEXT_266); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateRequest")); >- stringBuffer.append(TEXT_230); >+ stringBuffer.append(TEXT_267); > > if (palette != null && !genNode.getChildNodes().isEmpty()) { > >- stringBuffer.append(TEXT_231); >+ stringBuffer.append(TEXT_268); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateRequestEx")); >- stringBuffer.append(TEXT_232); >+ stringBuffer.append(TEXT_269); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateRequestEx")); >- stringBuffer.append(TEXT_233); >+ stringBuffer.append(TEXT_270); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateRequestEx")); >- stringBuffer.append(TEXT_234); >+ stringBuffer.append(TEXT_271); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_235); >+ stringBuffer.append(TEXT_272); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_236); >+ stringBuffer.append(TEXT_273); > > for(Iterator it = genNode.getChildNodes().iterator(); it.hasNext(); ) { > GenChildNode next = (GenChildNode)it.next(); > >- stringBuffer.append(TEXT_237); >+ stringBuffer.append(TEXT_274); > stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_238); >+ stringBuffer.append(TEXT_275); > stringBuffer.append(next.getDomainMetaClass().getName()); > stringBuffer.append(next.getVisualID()); >- stringBuffer.append(TEXT_239); >+ stringBuffer.append(TEXT_276); > if (isXYLayout) { >- stringBuffer.append(TEXT_240); >+ stringBuffer.append(TEXT_277); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >- stringBuffer.append(TEXT_241); >+ stringBuffer.append(TEXT_278); > } >- stringBuffer.append(TEXT_242); >+ stringBuffer.append(TEXT_279); > > } > >- stringBuffer.append(TEXT_243); >+ stringBuffer.append(TEXT_280); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_244); >+ stringBuffer.append(TEXT_281); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_245); >+ stringBuffer.append(TEXT_282); > > } > >- stringBuffer.append(TEXT_246); >+ stringBuffer.append(TEXT_283); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_247); >+ stringBuffer.append(TEXT_284); > > if (!genNode.getChildNodes().isEmpty() && isXYLayout) { > >- stringBuffer.append(TEXT_248); >+ stringBuffer.append(TEXT_285); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); >- stringBuffer.append(TEXT_249); >+ stringBuffer.append(TEXT_286); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ChangeBoundsRequest")); >- stringBuffer.append(TEXT_250); >+ stringBuffer.append(TEXT_287); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); >- stringBuffer.append(TEXT_251); >+ stringBuffer.append(TEXT_288); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_252); >- stringBuffer.append(TEXT_253); >- stringBuffer.append(TEXT_254); >+ stringBuffer.append(TEXT_289); >+ stringBuffer.append(TEXT_290); >+ stringBuffer.append(TEXT_291); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); >- stringBuffer.append(TEXT_255); >+ stringBuffer.append(TEXT_292); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); >- stringBuffer.append(TEXT_256); >+ stringBuffer.append(TEXT_293); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_257); >+ stringBuffer.append(TEXT_294); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.ChangeBoundsCommand")); >- stringBuffer.append(TEXT_258); >+ stringBuffer.append(TEXT_295); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); >- stringBuffer.append(TEXT_259); >+ stringBuffer.append(TEXT_296); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_260); >+ stringBuffer.append(TEXT_297); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_261); >+ stringBuffer.append(TEXT_298); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); >- stringBuffer.append(TEXT_262); >+ stringBuffer.append(TEXT_299); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_263); >+ stringBuffer.append(TEXT_300); > > } else { > >- stringBuffer.append(TEXT_264); >+ stringBuffer.append(TEXT_301); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >- stringBuffer.append(TEXT_265); >+ stringBuffer.append(TEXT_302); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Point")); >- stringBuffer.append(TEXT_266); >+ stringBuffer.append(TEXT_303); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); >- stringBuffer.append(TEXT_267); >+ stringBuffer.append(TEXT_304); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); >- stringBuffer.append(TEXT_268); >+ stringBuffer.append(TEXT_305); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_269); >+ stringBuffer.append(TEXT_306); > > } > >- stringBuffer.append(TEXT_270); >+ stringBuffer.append(TEXT_307); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); >- stringBuffer.append(TEXT_271); >+ stringBuffer.append(TEXT_308); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); >- stringBuffer.append(TEXT_272); >+ stringBuffer.append(TEXT_309); > > if (!genNode.getChildNodes().isEmpty()) { > >- stringBuffer.append(TEXT_273); >+ stringBuffer.append(TEXT_310); > > } > >- stringBuffer.append(TEXT_274); >+ stringBuffer.append(TEXT_311); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ResizableEditPolicy")); >- stringBuffer.append(TEXT_275); >+ stringBuffer.append(TEXT_312); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); >- stringBuffer.append(TEXT_276); >+ stringBuffer.append(TEXT_313); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); >- stringBuffer.append(TEXT_277); >+ stringBuffer.append(TEXT_314); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); >- stringBuffer.append(TEXT_278); >+ stringBuffer.append(TEXT_315); > stringBuffer.append(genNode.getEditPartClassName()); >- stringBuffer.append(TEXT_279); >+ stringBuffer.append(TEXT_316); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); >- stringBuffer.append(TEXT_280); >+ stringBuffer.append(TEXT_317); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy")); >- stringBuffer.append(TEXT_281); >+ stringBuffer.append(TEXT_318); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); >- stringBuffer.append(TEXT_282); >+ stringBuffer.append(TEXT_319); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest")); >- stringBuffer.append(TEXT_283); >+ stringBuffer.append(TEXT_320); > > if (!myHelper.hasIncomingLinks()) { > >- stringBuffer.append(TEXT_284); >+ stringBuffer.append(TEXT_321); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_285); >+ stringBuffer.append(TEXT_322); > > } else { > >- stringBuffer.append(TEXT_286); >+ stringBuffer.append(TEXT_323); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); >- stringBuffer.append(TEXT_287); >+ stringBuffer.append(TEXT_324); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); >- stringBuffer.append(TEXT_288); >+ stringBuffer.append(TEXT_325); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_289); >+ stringBuffer.append(TEXT_326); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); >- stringBuffer.append(TEXT_290); >+ stringBuffer.append(TEXT_327); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); >- stringBuffer.append(TEXT_291); >+ stringBuffer.append(TEXT_328); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_292); >+ stringBuffer.append(TEXT_329); > stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_293); >+ stringBuffer.append(TEXT_330); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_294); >+ stringBuffer.append(TEXT_331); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_295); >+ stringBuffer.append(TEXT_332); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_296); >+ stringBuffer.append(TEXT_333); > > for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { > GenLink genLink = (GenLink)it.next(); >@@ -2688,60 +2933,60 @@ > continue; > } > >- stringBuffer.append(TEXT_297); >+ stringBuffer.append(TEXT_334); > stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_298); >+ stringBuffer.append(TEXT_335); > stringBuffer.append(reconnectCommandNameInfix); > stringBuffer.append(genLink.getVisualID()); >- stringBuffer.append(TEXT_299); >+ stringBuffer.append(TEXT_336); > > } > >- stringBuffer.append(TEXT_300); >+ stringBuffer.append(TEXT_337); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_301); >+ stringBuffer.append(TEXT_338); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_302); >+ stringBuffer.append(TEXT_339); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_303); >+ stringBuffer.append(TEXT_340); > > } > >- stringBuffer.append(TEXT_304); >+ stringBuffer.append(TEXT_341); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); >- stringBuffer.append(TEXT_305); >+ stringBuffer.append(TEXT_342); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest")); >- stringBuffer.append(TEXT_306); >+ stringBuffer.append(TEXT_343); > > if (!myHelper.hasOutgoingLinks()) { > >- stringBuffer.append(TEXT_307); >+ stringBuffer.append(TEXT_344); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_308); >+ stringBuffer.append(TEXT_345); > > } else { > >- stringBuffer.append(TEXT_309); >+ stringBuffer.append(TEXT_346); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); >- stringBuffer.append(TEXT_310); >+ stringBuffer.append(TEXT_347); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); >- stringBuffer.append(TEXT_311); >+ stringBuffer.append(TEXT_348); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_312); >+ stringBuffer.append(TEXT_349); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); >- stringBuffer.append(TEXT_313); >+ stringBuffer.append(TEXT_350); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); >- stringBuffer.append(TEXT_314); >+ stringBuffer.append(TEXT_351); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_315); >+ stringBuffer.append(TEXT_352); > stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_316); >+ stringBuffer.append(TEXT_353); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_317); >+ stringBuffer.append(TEXT_354); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_318); >+ stringBuffer.append(TEXT_355); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_319); >+ stringBuffer.append(TEXT_356); > > for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { > GenLink genLink = (GenLink)it.next(); >@@ -2767,42 +3012,42 @@ > continue; > } > >- stringBuffer.append(TEXT_320); >+ stringBuffer.append(TEXT_357); > stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_321); >+ stringBuffer.append(TEXT_358); > stringBuffer.append(reconnectCommandNameInfix); > stringBuffer.append(genLink.getVisualID()); >- stringBuffer.append(TEXT_322); >+ stringBuffer.append(TEXT_359); > > } > >- stringBuffer.append(TEXT_323); >+ stringBuffer.append(TEXT_360); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_324); >+ stringBuffer.append(TEXT_361); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_325); >+ stringBuffer.append(TEXT_362); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_326); >+ stringBuffer.append(TEXT_363); > > } > >- stringBuffer.append(TEXT_327); >+ stringBuffer.append(TEXT_364); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); >- stringBuffer.append(TEXT_328); >+ stringBuffer.append(TEXT_365); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateConnectionRequest")); >- stringBuffer.append(TEXT_329); >+ stringBuffer.append(TEXT_366); > if (palette != null && myHelper.hasOutgoingLinks()) { >- stringBuffer.append(TEXT_330); >+ stringBuffer.append(TEXT_367); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateConnectionRequestEx")); >- stringBuffer.append(TEXT_331); >+ stringBuffer.append(TEXT_368); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateConnectionRequestEx")); >- stringBuffer.append(TEXT_332); >+ stringBuffer.append(TEXT_369); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateConnectionRequestEx")); >- stringBuffer.append(TEXT_333); >+ stringBuffer.append(TEXT_370); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_334); >+ stringBuffer.append(TEXT_371); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_335); >+ stringBuffer.append(TEXT_372); > > for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { > GenLink genLink = (GenLink)it.next(); >@@ -2828,42 +3073,42 @@ > continue; > } > >- stringBuffer.append(TEXT_336); >+ stringBuffer.append(TEXT_373); > stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_337); >+ stringBuffer.append(TEXT_374); > stringBuffer.append(createCommandNameInfix); > stringBuffer.append(genLink.getVisualID()); >- stringBuffer.append(TEXT_338); >+ stringBuffer.append(TEXT_375); > > } > >- stringBuffer.append(TEXT_339); >+ stringBuffer.append(TEXT_376); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); >- stringBuffer.append(TEXT_340); >+ stringBuffer.append(TEXT_377); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_341); >+ stringBuffer.append(TEXT_378); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_342); >+ stringBuffer.append(TEXT_379); > }/*when there's palette*/ >- stringBuffer.append(TEXT_343); >+ stringBuffer.append(TEXT_380); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); >- stringBuffer.append(TEXT_344); >+ stringBuffer.append(TEXT_381); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.CreateConnectionRequest")); >- stringBuffer.append(TEXT_345); >+ stringBuffer.append(TEXT_382); > if (palette != null && myHelper.hasIncomingLinks()) { >- stringBuffer.append(TEXT_346); >+ stringBuffer.append(TEXT_383); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_347); >+ stringBuffer.append(TEXT_384); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateConnectionRequestEx")); >- stringBuffer.append(TEXT_348); >+ stringBuffer.append(TEXT_385); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateConnectionRequestEx")); >- stringBuffer.append(TEXT_349); >+ stringBuffer.append(TEXT_386); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateConnectionRequestEx")); >- stringBuffer.append(TEXT_350); >+ stringBuffer.append(TEXT_387); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_351); >+ stringBuffer.append(TEXT_388); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_352); >+ stringBuffer.append(TEXT_389); > > for(Iterator it = genDiagram.getLinks().iterator(); it.hasNext(); ) { > GenLink genLink = (GenLink)it.next(); >@@ -2887,94 +3132,94 @@ > continue; > } > >- stringBuffer.append(TEXT_353); >+ stringBuffer.append(TEXT_390); > stringBuffer.append(importManager.getImportedName(genLink.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_354); >+ stringBuffer.append(TEXT_391); > stringBuffer.append(createCommandNameInfix); > stringBuffer.append(genLink.getVisualID()); >- stringBuffer.append(TEXT_355); >+ stringBuffer.append(TEXT_392); > > } > >- stringBuffer.append(TEXT_356); >+ stringBuffer.append(TEXT_393); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_357); >+ stringBuffer.append(TEXT_394); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_358); >+ stringBuffer.append(TEXT_395); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_359); >+ stringBuffer.append(TEXT_396); > }/*when there's palette*/ >- stringBuffer.append(TEXT_360); >+ stringBuffer.append(TEXT_397); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_361); >+ stringBuffer.append(TEXT_398); > > if (myHelper.getPrimaryLabel() != null) { > >- stringBuffer.append(TEXT_362); >+ stringBuffer.append(TEXT_399); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); >- stringBuffer.append(TEXT_363); >+ stringBuffer.append(TEXT_400); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.DirectEditPolicy")); >- stringBuffer.append(TEXT_364); >+ stringBuffer.append(TEXT_401); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); >- stringBuffer.append(TEXT_365); >+ stringBuffer.append(TEXT_402); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); >- stringBuffer.append(TEXT_366); >+ stringBuffer.append(TEXT_403); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); >- stringBuffer.append(TEXT_367); >+ stringBuffer.append(TEXT_404); > > } > > > if (!genNode.getChildNodes().isEmpty()) { > >- stringBuffer.append(TEXT_368); >+ stringBuffer.append(TEXT_405); > > } > > > if (myHelper.containsLinks()) { > >- stringBuffer.append(TEXT_369); >+ stringBuffer.append(TEXT_406); > > } > >- stringBuffer.append(TEXT_370); >+ stringBuffer.append(TEXT_407); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); >- stringBuffer.append(TEXT_371); >+ stringBuffer.append(TEXT_408); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); >- stringBuffer.append(TEXT_372); >+ stringBuffer.append(TEXT_409); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); >- stringBuffer.append(TEXT_373); >+ stringBuffer.append(TEXT_410); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.StackLayout")); >- stringBuffer.append(TEXT_374); >+ stringBuffer.append(TEXT_411); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); >- stringBuffer.append(TEXT_375); >+ stringBuffer.append(TEXT_412); > > if (myHelper.hasBothChildrenAndCompartments()) { > >- stringBuffer.append(TEXT_376); >+ stringBuffer.append(TEXT_413); > > } > >- stringBuffer.append(TEXT_377); >+ stringBuffer.append(TEXT_414); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); >- stringBuffer.append(TEXT_378); >+ stringBuffer.append(TEXT_415); > > if (!genNode.getCompartments().isEmpty() && !genNode.getChildNodes().isEmpty()) { > >- stringBuffer.append(TEXT_379); >+ stringBuffer.append(TEXT_416); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); >- stringBuffer.append(TEXT_380); >+ stringBuffer.append(TEXT_417); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); >- stringBuffer.append(TEXT_381); >+ stringBuffer.append(TEXT_418); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.RectangleFigure")); >- stringBuffer.append(TEXT_382); >+ stringBuffer.append(TEXT_419); > > } > >- stringBuffer.append(TEXT_383); >+ stringBuffer.append(TEXT_420); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); >- stringBuffer.append(TEXT_384); >+ stringBuffer.append(TEXT_421); > > String figureQualifiedClassName = null; > Viewmap viewmap = genNode.getViewmap(); >@@ -2984,98 +3229,98 @@ > figureQualifiedClassName = "org.eclipse.draw2d.RectangleFigure"; > } > >- stringBuffer.append(TEXT_385); >+ stringBuffer.append(TEXT_422); > stringBuffer.append(importManager.getImportedName(figureQualifiedClassName)); >- stringBuffer.append(TEXT_386); >+ stringBuffer.append(TEXT_423); > if (isXYLayout) { >- stringBuffer.append(TEXT_387); >+ stringBuffer.append(TEXT_424); > } /* use flow layout*/ >- stringBuffer.append(TEXT_388); >+ stringBuffer.append(TEXT_425); > } else if (viewmap instanceof SnippetViewmap) { >- stringBuffer.append(TEXT_389); >+ stringBuffer.append(TEXT_426); > stringBuffer.append(((SnippetViewmap) viewmap).getBody()); >- stringBuffer.append(TEXT_390); >+ stringBuffer.append(TEXT_427); > } else if (viewmap instanceof InnerClassViewmap) { > figureQualifiedClassName = ((InnerClassViewmap) viewmap).getClassName(); > >- stringBuffer.append(TEXT_391); >+ stringBuffer.append(TEXT_428); > stringBuffer.append(figureQualifiedClassName); >- stringBuffer.append(TEXT_392); >+ stringBuffer.append(TEXT_429); > stringBuffer.append(figureQualifiedClassName); >- stringBuffer.append(TEXT_393); >+ stringBuffer.append(TEXT_430); > if (!genNode.getChildNodes().isEmpty() && isXYLayout) { /*otherwise, leave to figure's default value*/ >- stringBuffer.append(TEXT_394); >+ stringBuffer.append(TEXT_431); > } >- stringBuffer.append(TEXT_395); >+ stringBuffer.append(TEXT_432); > } >- stringBuffer.append(TEXT_396); >+ stringBuffer.append(TEXT_433); > if (figureQualifiedClassName != null) { >- stringBuffer.append(TEXT_397); >+ stringBuffer.append(TEXT_434); > stringBuffer.append(figureQualifiedClassName); >- stringBuffer.append(TEXT_398); >+ stringBuffer.append(TEXT_435); > stringBuffer.append(figureQualifiedClassName); >- stringBuffer.append(TEXT_399); >+ stringBuffer.append(TEXT_436); > } >- stringBuffer.append(TEXT_400); >+ stringBuffer.append(TEXT_437); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); >- stringBuffer.append(TEXT_401); >+ stringBuffer.append(TEXT_438); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_402); >+ stringBuffer.append(TEXT_439); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_403); >+ stringBuffer.append(TEXT_440); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAnnotation")); >- stringBuffer.append(TEXT_404); >+ stringBuffer.append(TEXT_441); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); >- stringBuffer.append(TEXT_405); >+ stringBuffer.append(TEXT_442); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Figure")); >- stringBuffer.append(TEXT_406); >+ stringBuffer.append(TEXT_443); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BorderLayout")); >- stringBuffer.append(TEXT_407); >+ stringBuffer.append(TEXT_444); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ImageFigure")); >- stringBuffer.append(TEXT_408); >+ stringBuffer.append(TEXT_445); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ImageFigure")); >- stringBuffer.append(TEXT_409); >+ stringBuffer.append(TEXT_446); > stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); >- stringBuffer.append(TEXT_410); >+ stringBuffer.append(TEXT_447); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); >- stringBuffer.append(TEXT_411); >+ stringBuffer.append(TEXT_448); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.BorderLayout")); >- stringBuffer.append(TEXT_412); >+ stringBuffer.append(TEXT_449); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); >- stringBuffer.append(TEXT_413); >+ stringBuffer.append(TEXT_450); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); >- stringBuffer.append(TEXT_414); >+ stringBuffer.append(TEXT_451); > > if (!isXYLayout) { > String layoutClassName = importManager.getImportedName("org.eclipse.draw2d.ToolbarLayout"); > >- stringBuffer.append(TEXT_415); >+ stringBuffer.append(TEXT_452); > stringBuffer.append(layoutClassName); >- stringBuffer.append(TEXT_416); >+ stringBuffer.append(TEXT_453); > stringBuffer.append(layoutClassName); >- stringBuffer.append(TEXT_417); >+ stringBuffer.append(TEXT_454); > } else { >- stringBuffer.append(TEXT_418); >+ stringBuffer.append(TEXT_455); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.FreeformLayout")); >- stringBuffer.append(TEXT_419); >+ stringBuffer.append(TEXT_456); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); >- stringBuffer.append(TEXT_420); >+ stringBuffer.append(TEXT_457); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >- stringBuffer.append(TEXT_421); >+ stringBuffer.append(TEXT_458); > } >- stringBuffer.append(TEXT_422); >+ stringBuffer.append(TEXT_459); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); >- stringBuffer.append(TEXT_423); >+ stringBuffer.append(TEXT_460); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); >- stringBuffer.append(TEXT_424); >+ stringBuffer.append(TEXT_461); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); >- stringBuffer.append(TEXT_425); >+ stringBuffer.append(TEXT_462); > > if (myHelper.hasFixedChildren()) { > >- stringBuffer.append(TEXT_426); >+ stringBuffer.append(TEXT_463); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); >- stringBuffer.append(TEXT_427); >+ stringBuffer.append(TEXT_464); > > for (Iterator it = myHelper.getInnerFixedLabels(); it.hasNext(); ) { > GenNodeLabel genLabel = (GenNodeLabel) it.next(); >@@ -3083,15 +3328,15 @@ > final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) genLabel.getViewmap(); > final String childSetterName = childViewmap.getSetterName() == null ? "setLabel" : childViewmap.getSetterName(); > >- stringBuffer.append(TEXT_428); >+ stringBuffer.append(TEXT_465); > stringBuffer.append(labelEditPart); >- stringBuffer.append(TEXT_429); >+ stringBuffer.append(TEXT_466); > stringBuffer.append(labelEditPart); >- stringBuffer.append(TEXT_430); >+ stringBuffer.append(TEXT_467); > stringBuffer.append(childSetterName); >- stringBuffer.append(TEXT_431); >+ stringBuffer.append(TEXT_468); > stringBuffer.append(childViewmap.getGetterName()); >- stringBuffer.append(TEXT_432); >+ stringBuffer.append(TEXT_469); > > } > >@@ -3100,19 +3345,19 @@ > final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) next.getViewmap(); > String compartmentEditPartFQN = importManager.getImportedName(next.getEditPartQualifiedClassName()); > >- stringBuffer.append(TEXT_433); >+ stringBuffer.append(TEXT_470); > stringBuffer.append(compartmentEditPartFQN); >- stringBuffer.append(TEXT_434); >+ stringBuffer.append(TEXT_471); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); >- stringBuffer.append(TEXT_435); >+ stringBuffer.append(TEXT_472); > stringBuffer.append(childViewmap.getGetterName()); >- stringBuffer.append(TEXT_436); >+ stringBuffer.append(TEXT_473); > stringBuffer.append(compartmentEditPartFQN); >- stringBuffer.append(TEXT_437); >+ stringBuffer.append(TEXT_474); > > } // for pinned compartments > >- stringBuffer.append(TEXT_438); >+ stringBuffer.append(TEXT_475); > > //XXX: ignore labels assuming that they never may be removed > for (Iterator it = myHelper.getPinnedCompartments(); it.hasNext(); ) { >@@ -3120,67 +3365,67 @@ > final ParentAssignedViewmap childViewmap = (ParentAssignedViewmap) next.getViewmap(); > String compartmentEditPartFQN = importManager.getImportedName(next.getEditPartQualifiedClassName()); > >- stringBuffer.append(TEXT_439); >+ stringBuffer.append(TEXT_476); > stringBuffer.append(compartmentEditPartFQN); >- stringBuffer.append(TEXT_440); >+ stringBuffer.append(TEXT_477); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); >- stringBuffer.append(TEXT_441); >+ stringBuffer.append(TEXT_478); > stringBuffer.append(childViewmap.getGetterName()); >- stringBuffer.append(TEXT_442); >+ stringBuffer.append(TEXT_479); > stringBuffer.append(compartmentEditPartFQN); >- stringBuffer.append(TEXT_443); >+ stringBuffer.append(TEXT_480); > > } // for pinned compartments > >- stringBuffer.append(TEXT_444); >+ stringBuffer.append(TEXT_481); > > } // if myHelper.hasFixedChildren() > >- stringBuffer.append(TEXT_445); >+ stringBuffer.append(TEXT_482); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); >- stringBuffer.append(TEXT_446); >+ stringBuffer.append(TEXT_483); > > if (myHelper.getPrimaryLabel() != null) { > >- stringBuffer.append(TEXT_447); >+ stringBuffer.append(TEXT_484); > stringBuffer.append(importManager.getImportedName("java.util.Iterator")); >- stringBuffer.append(TEXT_448); >+ stringBuffer.append(TEXT_485); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_449); >+ stringBuffer.append(TEXT_486); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_450); >+ stringBuffer.append(TEXT_487); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_451); >+ stringBuffer.append(TEXT_488); > stringBuffer.append(importManager.getImportedName(myHelper.getPrimaryLabel().getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_452); >+ stringBuffer.append(TEXT_489); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); >- stringBuffer.append(TEXT_453); >+ stringBuffer.append(TEXT_490); > > } > >- stringBuffer.append(TEXT_454); >+ stringBuffer.append(TEXT_491); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); >- stringBuffer.append(TEXT_455); >+ stringBuffer.append(TEXT_492); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); >- stringBuffer.append(TEXT_456); >+ stringBuffer.append(TEXT_493); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); >- stringBuffer.append(TEXT_457); >+ stringBuffer.append(TEXT_494); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); >- stringBuffer.append(TEXT_458); >+ stringBuffer.append(TEXT_495); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); >- stringBuffer.append(TEXT_459); >+ stringBuffer.append(TEXT_496); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); >- stringBuffer.append(TEXT_460); >+ stringBuffer.append(TEXT_497); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); >- stringBuffer.append(TEXT_461); >+ stringBuffer.append(TEXT_498); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); >- stringBuffer.append(TEXT_462); >+ stringBuffer.append(TEXT_499); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_463); >+ stringBuffer.append(TEXT_500); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_464); >+ stringBuffer.append(TEXT_501); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_465); >+ stringBuffer.append(TEXT_502); > > for (Iterator it = myHelper.getAllInnerLabels(); it.hasNext(); ) { > GenNodeLabel genLabel = (GenNodeLabel) it.next(); >@@ -3188,212 +3433,212 @@ > continue; > } > >- stringBuffer.append(TEXT_466); >+ stringBuffer.append(TEXT_503); > stringBuffer.append(importManager.getImportedName(genLabel.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_467); >+ stringBuffer.append(TEXT_504); > > } > >- stringBuffer.append(TEXT_468); >+ stringBuffer.append(TEXT_505); > > if (myHelper.hasExternalLabels()) { > >- stringBuffer.append(TEXT_469); >+ stringBuffer.append(TEXT_506); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); >- stringBuffer.append(TEXT_470); >+ stringBuffer.append(TEXT_507); > > for (Iterator externalLabels = myHelper.getExternalLabels(); externalLabels.hasNext();) { > GenNodeLabel next = (GenNodeLabel) externalLabels.next(); > >- stringBuffer.append(TEXT_471); >+ stringBuffer.append(TEXT_508); > stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_472); >+ stringBuffer.append(TEXT_509); > > } > >- stringBuffer.append(TEXT_473); >+ stringBuffer.append(TEXT_510); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); >- stringBuffer.append(TEXT_474); >+ stringBuffer.append(TEXT_511); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.LayerManager")); >- stringBuffer.append(TEXT_475); >+ stringBuffer.append(TEXT_512); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.LayerManager")); >- stringBuffer.append(TEXT_476); >+ stringBuffer.append(TEXT_513); > stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartFactoryQualifiedClassName())); >- stringBuffer.append(TEXT_477); >+ stringBuffer.append(TEXT_514); > > } > if (!genNode.getChildNodes().isEmpty()) { > >- stringBuffer.append(TEXT_478); >+ stringBuffer.append(TEXT_515); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); >- stringBuffer.append(TEXT_479); >+ stringBuffer.append(TEXT_516); > > for(Iterator directChildren = genNode.getChildNodes().iterator(); directChildren.hasNext(); ) { > GenChildNode next = (GenChildNode) directChildren.next(); > >- stringBuffer.append(TEXT_480); >+ stringBuffer.append(TEXT_517); > stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_481); >+ stringBuffer.append(TEXT_518); > > } > >- stringBuffer.append(TEXT_482); >+ stringBuffer.append(TEXT_519); > > } > if (myHelper.hasExternalLabels() || myHelper.hasFixedChildren() || myHelper.hasBothChildrenAndCompartments()) { > >- stringBuffer.append(TEXT_483); >+ stringBuffer.append(TEXT_520); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); >- stringBuffer.append(TEXT_484); >+ stringBuffer.append(TEXT_521); > > if (myHelper.hasExternalLabels()) { > >- stringBuffer.append(TEXT_485); >+ stringBuffer.append(TEXT_522); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); >- stringBuffer.append(TEXT_486); >+ stringBuffer.append(TEXT_523); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); >- stringBuffer.append(TEXT_487); >+ stringBuffer.append(TEXT_524); > > } > if (myHelper.hasFixedChildren()) { > >- stringBuffer.append(TEXT_488); >+ stringBuffer.append(TEXT_525); > > } > if (myHelper.hasBothChildrenAndCompartments()) { > >- stringBuffer.append(TEXT_489); >+ stringBuffer.append(TEXT_526); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); >- stringBuffer.append(TEXT_490); >+ stringBuffer.append(TEXT_527); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); >- stringBuffer.append(TEXT_491); >+ stringBuffer.append(TEXT_528); > > } > >- stringBuffer.append(TEXT_492); >+ stringBuffer.append(TEXT_529); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); >- stringBuffer.append(TEXT_493); >+ stringBuffer.append(TEXT_530); > > if (myHelper.hasExternalLabels()) { > >- stringBuffer.append(TEXT_494); >+ stringBuffer.append(TEXT_531); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); >- stringBuffer.append(TEXT_495); >+ stringBuffer.append(TEXT_532); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); >- stringBuffer.append(TEXT_496); >+ stringBuffer.append(TEXT_533); > > } > if (myHelper.hasFixedChildren()){ > >- stringBuffer.append(TEXT_497); >+ stringBuffer.append(TEXT_534); > > } > if (myHelper.hasBothChildrenAndCompartments()) { > >- stringBuffer.append(TEXT_498); >+ stringBuffer.append(TEXT_535); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); >- stringBuffer.append(TEXT_499); >+ stringBuffer.append(TEXT_536); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); >- stringBuffer.append(TEXT_500); >+ stringBuffer.append(TEXT_537); > > } > >- stringBuffer.append(TEXT_501); >+ stringBuffer.append(TEXT_538); > > } > > > if (myHelper.hasExternalLabels()) { > >- stringBuffer.append(TEXT_502); >+ stringBuffer.append(TEXT_539); > stringBuffer.append(importManager.getImportedName("java.util.Iterator")); >- stringBuffer.append(TEXT_503); >+ stringBuffer.append(TEXT_540); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); >- stringBuffer.append(TEXT_504); >+ stringBuffer.append(TEXT_541); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPart")); >- stringBuffer.append(TEXT_505); >+ stringBuffer.append(TEXT_542); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); >- stringBuffer.append(TEXT_506); >+ stringBuffer.append(TEXT_543); > > } > >- stringBuffer.append(TEXT_507); >+ stringBuffer.append(TEXT_544); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Node")); >- stringBuffer.append(TEXT_508); >+ stringBuffer.append(TEXT_545); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); >- stringBuffer.append(TEXT_509); >+ stringBuffer.append(TEXT_546); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); >- stringBuffer.append(TEXT_510); >+ stringBuffer.append(TEXT_547); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Bounds")); >- stringBuffer.append(TEXT_511); >+ stringBuffer.append(TEXT_548); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); >- stringBuffer.append(TEXT_512); >+ stringBuffer.append(TEXT_549); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >- stringBuffer.append(TEXT_513); >+ stringBuffer.append(TEXT_550); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_514); >+ stringBuffer.append(TEXT_551); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_515); >+ stringBuffer.append(TEXT_552); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_516); >+ stringBuffer.append(TEXT_553); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); >- stringBuffer.append(TEXT_517); >+ stringBuffer.append(TEXT_554); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); >- stringBuffer.append(TEXT_518); >+ stringBuffer.append(TEXT_555); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); >- stringBuffer.append(TEXT_519); >+ stringBuffer.append(TEXT_556); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); >- stringBuffer.append(TEXT_520); >+ stringBuffer.append(TEXT_557); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); >- stringBuffer.append(TEXT_521); >+ stringBuffer.append(TEXT_558); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); >- stringBuffer.append(TEXT_522); >+ stringBuffer.append(TEXT_559); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); >- stringBuffer.append(TEXT_523); >+ stringBuffer.append(TEXT_560); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ConnectionEditPart")); >- stringBuffer.append(TEXT_524); >+ stringBuffer.append(TEXT_561); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); >- stringBuffer.append(TEXT_525); >+ stringBuffer.append(TEXT_562); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionAnchor")); >- stringBuffer.append(TEXT_526); >+ stringBuffer.append(TEXT_563); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); >- stringBuffer.append(TEXT_527); >+ stringBuffer.append(TEXT_564); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ChopboxAnchor")); >- stringBuffer.append(TEXT_528); >+ stringBuffer.append(TEXT_565); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.TreeEditPart")); >- stringBuffer.append(TEXT_529); >+ stringBuffer.append(TEXT_566); > /*@ include file="adapters/propertySource.javajetinc"*/ >- stringBuffer.append(TEXT_530); >+ stringBuffer.append(TEXT_567); > > if (!genNode.getChildNodes().isEmpty()) { > >- stringBuffer.append(TEXT_531); >+ stringBuffer.append(TEXT_568); > > } > > > if (myHelper.containsLinks()) { > >- stringBuffer.append(TEXT_532); >+ stringBuffer.append(TEXT_569); > > } > >- stringBuffer.append(TEXT_533); >+ stringBuffer.append(TEXT_570); > > if (myHelper.containsLinks()) { > >- stringBuffer.append(TEXT_534); >+ stringBuffer.append(TEXT_571); > > } > > > if (!genNode.getChildNodes().isEmpty()) { > >- stringBuffer.append(TEXT_535); >+ stringBuffer.append(TEXT_572); > > } > >- stringBuffer.append(TEXT_536); >+ stringBuffer.append(TEXT_573); > > { > final String _getViewCode = "getDiagramNode()"; >@@ -3403,22 +3648,22 @@ > final boolean isListLayout = !isXYLayout; > final List childNodes = genNode.getChildNodes(); > >- stringBuffer.append(TEXT_537); >- stringBuffer.append(TEXT_538); >+ stringBuffer.append(TEXT_574); >+ stringBuffer.append(TEXT_575); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher")); >- stringBuffer.append(TEXT_539); >+ stringBuffer.append(TEXT_576); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_540); >+ stringBuffer.append(TEXT_577); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_541); >+ stringBuffer.append(TEXT_578); > stringBuffer.append(_getDiagramCode); >- stringBuffer.append(TEXT_542); >+ stringBuffer.append(TEXT_579); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher")); >- stringBuffer.append(TEXT_543); >+ stringBuffer.append(TEXT_580); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher")); >- stringBuffer.append(TEXT_544); >+ stringBuffer.append(TEXT_581); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ChildNotationModelRefresher")); >- stringBuffer.append(TEXT_545); >+ stringBuffer.append(TEXT_582); > > boolean hasConstraintsInChildren = false; > for (Iterator it = childNodes.iterator(); it.hasNext(); ) { >@@ -3433,19 +3678,19 @@ > > if (hasConstraintsInChildren) { > >- stringBuffer.append(TEXT_546); >+ stringBuffer.append(TEXT_583); > stringBuffer.append(genDiagram.getVisualIDRegistryQualifiedClassName()); >- stringBuffer.append(TEXT_547); >+ stringBuffer.append(TEXT_584); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_548); >+ stringBuffer.append(TEXT_585); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_549); >+ stringBuffer.append(TEXT_586); > > } > >- stringBuffer.append(TEXT_550); >+ stringBuffer.append(TEXT_587); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_551); >+ stringBuffer.append(TEXT_588); > > { > boolean hasDeclaredFilter = false; >@@ -3464,25 +3709,25 @@ > if (!hasDeclaredFilter) { > hasDeclaredFilter = true; > >- stringBuffer.append(TEXT_552); >+ stringBuffer.append(TEXT_589); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_553); >+ stringBuffer.append(TEXT_590); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_554); >+ stringBuffer.append(TEXT_591); > stringBuffer.append(importManager.getImportedName(childMetaFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_555); >+ stringBuffer.append(TEXT_592); > stringBuffer.append(childMetaFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_556); >+ stringBuffer.append(TEXT_593); > > } else { > >- stringBuffer.append(TEXT_557); >+ stringBuffer.append(TEXT_594); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_558); >+ stringBuffer.append(TEXT_595); > stringBuffer.append(importManager.getImportedName(childMetaFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_559); >+ stringBuffer.append(TEXT_596); > stringBuffer.append(childMetaFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_560); >+ stringBuffer.append(TEXT_597); > > } > } //for >@@ -3490,22 +3735,22 @@ > > if (hasDeclaredFilter) { > >- stringBuffer.append(TEXT_561); >+ stringBuffer.append(TEXT_598); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_562); >+ stringBuffer.append(TEXT_599); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_563); >+ stringBuffer.append(TEXT_600); > > } else { > hasDeclaredFilter = true; > >- stringBuffer.append(TEXT_564); >+ stringBuffer.append(TEXT_601); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_565); >+ stringBuffer.append(TEXT_602); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_566); >+ stringBuffer.append(TEXT_603); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_567); >+ stringBuffer.append(TEXT_604); > > } > >@@ -3514,43 +3759,43 @@ > if (hasDeclaredFilter) { > hasDeclaredFilter = true; > >- stringBuffer.append(TEXT_568); >+ stringBuffer.append(TEXT_605); > > } else { > >- stringBuffer.append(TEXT_569); >+ stringBuffer.append(TEXT_606); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_570); >+ stringBuffer.append(TEXT_607); > > } > } > if (!hasDeclaredFilter) { > >- stringBuffer.append(TEXT_571); >+ stringBuffer.append(TEXT_608); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_572); >+ stringBuffer.append(TEXT_609); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_573); >+ stringBuffer.append(TEXT_610); > > } > >- stringBuffer.append(TEXT_574); >+ stringBuffer.append(TEXT_611); > > } //local declaration of hasDeclaredFilter > >- stringBuffer.append(TEXT_575); >+ stringBuffer.append(TEXT_612); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); >- stringBuffer.append(TEXT_576); >+ stringBuffer.append(TEXT_613); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); >- stringBuffer.append(TEXT_577); >+ stringBuffer.append(TEXT_614); > > { > String _parentNode = "getHost()"; > >- stringBuffer.append(TEXT_578); >- stringBuffer.append(TEXT_579); >+ stringBuffer.append(TEXT_615); >+ stringBuffer.append(TEXT_616); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_580); >+ stringBuffer.append(TEXT_617); > > for (Iterator it = childNodes.iterator(); it.hasNext(); ) { > GenNode nextNode = (GenNode) it.next(); >@@ -3560,15 +3805,15 @@ > } > String childNodeInterfaceName = importManager.getImportedName(nextNode.getDomainMetaClass().getQualifiedInterfaceName()); > >- stringBuffer.append(TEXT_581); >+ stringBuffer.append(TEXT_618); > stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_582); >+ stringBuffer.append(TEXT_619); > stringBuffer.append(childNodeInterfaceName); >- stringBuffer.append(TEXT_583); >+ stringBuffer.append(TEXT_620); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand")); >- stringBuffer.append(TEXT_584); >+ stringBuffer.append(TEXT_621); > stringBuffer.append(_parentNode); >- stringBuffer.append(TEXT_585); >+ stringBuffer.append(TEXT_622); > > if (!isListLayout) { > int defaultWidth = 40; >@@ -3579,48 +3824,48 @@ > defaultHeight = defSizeAttrs.getHeight(); > } > >- stringBuffer.append(TEXT_586); >+ stringBuffer.append(TEXT_623); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >- stringBuffer.append(TEXT_587); >+ stringBuffer.append(TEXT_624); > stringBuffer.append(defaultWidth); >- stringBuffer.append(TEXT_588); >+ stringBuffer.append(TEXT_625); > stringBuffer.append(defaultHeight); >- stringBuffer.append(TEXT_589); >+ stringBuffer.append(TEXT_626); > > } else { > >- stringBuffer.append(TEXT_590); >+ stringBuffer.append(TEXT_627); > > } > >- stringBuffer.append(TEXT_591); >+ stringBuffer.append(TEXT_628); > stringBuffer.append(importManager.getImportedName(nextNode.getNotationViewFactoryQualifiedClassName())); >- stringBuffer.append(TEXT_592); >+ stringBuffer.append(TEXT_629); > > } > >- stringBuffer.append(TEXT_593); >+ stringBuffer.append(TEXT_630); > > } > >- stringBuffer.append(TEXT_594); >+ stringBuffer.append(TEXT_631); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_595); >- stringBuffer.append(TEXT_596); >+ stringBuffer.append(TEXT_632); >+ stringBuffer.append(TEXT_633); > > if (childNodes.size() == 0) { > >- stringBuffer.append(TEXT_597); >+ stringBuffer.append(TEXT_634); > stringBuffer.append(importManager.getImportedName("java.util.Collections")); >- stringBuffer.append(TEXT_598); >+ stringBuffer.append(TEXT_635); > > } else { > >- stringBuffer.append(TEXT_599); >+ stringBuffer.append(TEXT_636); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_600); >+ stringBuffer.append(TEXT_637); > stringBuffer.append(importManager.getImportedName("java.util.LinkedList")); >- stringBuffer.append(TEXT_601); >+ stringBuffer.append(TEXT_638); > > Map genFeature2genNodeMap = new LinkedHashMap(); > for (int nodeIndex = 0; nodeIndex < childNodes.size(); nodeIndex++) { >@@ -3638,15 +3883,15 @@ > Set entrySet = genFeature2genNodeMap.entrySet(); > if (entrySet.size() > 0) { > >- stringBuffer.append(TEXT_602); >+ stringBuffer.append(TEXT_639); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_603); >+ stringBuffer.append(TEXT_640); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_604); >+ stringBuffer.append(TEXT_641); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_605); >+ stringBuffer.append(TEXT_642); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_606); >+ stringBuffer.append(TEXT_643); > > } > for (Iterator entries = entrySet.iterator(); entries.hasNext();) { >@@ -3655,127 +3900,127 @@ > Collection genNodesCollection = (Collection) nextEntry.getValue(); > if (childMetaFeature.isListType()) { > >- stringBuffer.append(TEXT_607); >+ stringBuffer.append(TEXT_644); > stringBuffer.append(importManager.getImportedName("java.util.Iterator")); >- stringBuffer.append(TEXT_608); >+ stringBuffer.append(TEXT_645); > myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", childMetaFeature, null, true); >- stringBuffer.append(TEXT_609); >+ stringBuffer.append(TEXT_646); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_610); >+ stringBuffer.append(TEXT_647); > > } else { > >- stringBuffer.append(TEXT_611); >+ stringBuffer.append(TEXT_648); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_612); >+ stringBuffer.append(TEXT_649); > myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", childMetaFeature, null, false); >- stringBuffer.append(TEXT_613); >+ stringBuffer.append(TEXT_650); > > } > >- stringBuffer.append(TEXT_614); >+ stringBuffer.append(TEXT_651); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_615); >+ stringBuffer.append(TEXT_652); > > boolean generateSwitch = genNodesCollection.size() != 1; > if (generateSwitch) { > >- stringBuffer.append(TEXT_616); >+ stringBuffer.append(TEXT_653); > > } > for (Iterator genNodesIterator = genNodesCollection.iterator(); genNodesIterator.hasNext();) { > GenNode nextNode = (GenNode) genNodesIterator.next(); > if (generateSwitch) { > >- stringBuffer.append(TEXT_617); >+ stringBuffer.append(TEXT_654); > stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_618); >+ stringBuffer.append(TEXT_655); > > } else { > >- stringBuffer.append(TEXT_619); >+ stringBuffer.append(TEXT_656); > stringBuffer.append(importManager.getImportedName(nextNode.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_620); >+ stringBuffer.append(TEXT_657); > > } > >- stringBuffer.append(TEXT_621); >+ stringBuffer.append(TEXT_658); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); >- stringBuffer.append(TEXT_622); >+ stringBuffer.append(TEXT_659); > > if (generateSwitch) { > >- stringBuffer.append(TEXT_623); >+ stringBuffer.append(TEXT_660); > > } else { > >- stringBuffer.append(TEXT_624); >+ stringBuffer.append(TEXT_661); > > } > } > if (generateSwitch) { > >- stringBuffer.append(TEXT_625); >+ stringBuffer.append(TEXT_662); > > } > if (childMetaFeature.isListType()) { > >- stringBuffer.append(TEXT_626); >+ stringBuffer.append(TEXT_663); > > } > } > >- stringBuffer.append(TEXT_627); >+ stringBuffer.append(TEXT_664); > > } > >- stringBuffer.append(TEXT_628); >+ stringBuffer.append(TEXT_665); > stringBuffer.append(genDiagram.isSynchronized()); >- stringBuffer.append(TEXT_629); >+ stringBuffer.append(TEXT_666); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); >- stringBuffer.append(TEXT_630); >+ stringBuffer.append(TEXT_667); > stringBuffer.append(genDiagram.isSynchronized()); >- stringBuffer.append(TEXT_631); >+ stringBuffer.append(TEXT_668); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_632); >+ stringBuffer.append(TEXT_669); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_633); >+ stringBuffer.append(TEXT_670); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.AbstractNotationModelRefresher")); >- stringBuffer.append(TEXT_634); >+ stringBuffer.append(TEXT_671); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_635); >+ stringBuffer.append(TEXT_672); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_636); >+ stringBuffer.append(TEXT_673); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_637); >+ stringBuffer.append(TEXT_674); > stringBuffer.append(_getDiagramCode); >- stringBuffer.append(TEXT_638); >+ stringBuffer.append(TEXT_675); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_639); >+ stringBuffer.append(TEXT_676); > > } > >- stringBuffer.append(TEXT_640); >+ stringBuffer.append(TEXT_677); > > if (myHelper.containsLinks() || _includeUncontainedLinks) { > >- stringBuffer.append(TEXT_641); >+ stringBuffer.append(TEXT_678); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_642); >+ stringBuffer.append(TEXT_679); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_643); >+ stringBuffer.append(TEXT_680); > stringBuffer.append(_getDiagramCode); >- stringBuffer.append(TEXT_644); >+ stringBuffer.append(TEXT_681); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService")); >- stringBuffer.append(TEXT_645); >+ stringBuffer.append(TEXT_682); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService")); >- stringBuffer.append(TEXT_646); >+ stringBuffer.append(TEXT_683); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.EditPartRegistryBasedViewService")); >- stringBuffer.append(TEXT_647); >+ stringBuffer.append(TEXT_684); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.OwnedLinksNotationModelRefresher")); >- stringBuffer.append(TEXT_648); >+ stringBuffer.append(TEXT_685); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.IViewService")); >- stringBuffer.append(TEXT_649); >+ stringBuffer.append(TEXT_686); > > boolean hasConstraintsInContainedLinks = false; > for (Iterator it = myHelper.getContainedTypeModelFacetLinks(); it.hasNext(); ) { >@@ -3788,42 +4033,42 @@ > } > if (hasConstraintsInContainedLinks) { > >- stringBuffer.append(TEXT_650); >+ stringBuffer.append(TEXT_687); > stringBuffer.append(genDiagram.getVisualIDRegistryQualifiedClassName()); >- stringBuffer.append(TEXT_651); >+ stringBuffer.append(TEXT_688); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_652); >+ stringBuffer.append(TEXT_689); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_653); >+ stringBuffer.append(TEXT_690); > > } > if (_includeUncontainedLinks) { > >- stringBuffer.append(TEXT_654); >+ stringBuffer.append(TEXT_691); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_655); >+ stringBuffer.append(TEXT_692); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_656); >+ stringBuffer.append(TEXT_693); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); >- stringBuffer.append(TEXT_657); >+ stringBuffer.append(TEXT_694); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_658); >+ stringBuffer.append(TEXT_695); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); >- stringBuffer.append(TEXT_659); >+ stringBuffer.append(TEXT_696); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_660); >+ stringBuffer.append(TEXT_697); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); >- stringBuffer.append(TEXT_661); >+ stringBuffer.append(TEXT_698); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_662); >+ stringBuffer.append(TEXT_699); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); >- stringBuffer.append(TEXT_663); >+ stringBuffer.append(TEXT_700); > > } > >- stringBuffer.append(TEXT_664); >+ stringBuffer.append(TEXT_701); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_665); >+ stringBuffer.append(TEXT_702); > > { > boolean hasDeclaredFilter = false; >@@ -3836,7 +4081,7 @@ > } > GenFeature _feature = modelFacet.getChildMetaFeature(); > >- stringBuffer.append(TEXT_666); >+ stringBuffer.append(TEXT_703); > > /* > * input: >@@ -3850,32 +4095,32 @@ > if (!hasDeclaredFilter) { > hasDeclaredFilter = true; > >- stringBuffer.append(TEXT_667); >+ stringBuffer.append(TEXT_704); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_668); >+ stringBuffer.append(TEXT_705); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_669); >+ stringBuffer.append(TEXT_706); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_670); >+ stringBuffer.append(TEXT_707); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_671); >+ stringBuffer.append(TEXT_708); > > } else { > >- stringBuffer.append(TEXT_672); >+ stringBuffer.append(TEXT_709); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_673); >+ stringBuffer.append(TEXT_710); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_674); >+ stringBuffer.append(TEXT_711); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_675); >+ stringBuffer.append(TEXT_712); > > } > > > _feature = modelFacet.getSourceMetaFeature(); > >- stringBuffer.append(TEXT_676); >+ stringBuffer.append(TEXT_713); > > /* > * input: >@@ -3889,32 +4134,32 @@ > if (!hasDeclaredFilter) { > hasDeclaredFilter = true; > >- stringBuffer.append(TEXT_677); >+ stringBuffer.append(TEXT_714); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_678); >+ stringBuffer.append(TEXT_715); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_679); >+ stringBuffer.append(TEXT_716); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_680); >+ stringBuffer.append(TEXT_717); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_681); >+ stringBuffer.append(TEXT_718); > > } else { > >- stringBuffer.append(TEXT_682); >+ stringBuffer.append(TEXT_719); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_683); >+ stringBuffer.append(TEXT_720); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_684); >+ stringBuffer.append(TEXT_721); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_685); >+ stringBuffer.append(TEXT_722); > > } > > > _feature = modelFacet.getTargetMetaFeature(); > >- stringBuffer.append(TEXT_686); >+ stringBuffer.append(TEXT_723); > > /* > * input: >@@ -3928,25 +4173,25 @@ > if (!hasDeclaredFilter) { > hasDeclaredFilter = true; > >- stringBuffer.append(TEXT_687); >+ stringBuffer.append(TEXT_724); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_688); >+ stringBuffer.append(TEXT_725); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_689); >+ stringBuffer.append(TEXT_726); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_690); >+ stringBuffer.append(TEXT_727); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_691); >+ stringBuffer.append(TEXT_728); > > } else { > >- stringBuffer.append(TEXT_692); >+ stringBuffer.append(TEXT_729); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_693); >+ stringBuffer.append(TEXT_730); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_694); >+ stringBuffer.append(TEXT_731); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_695); >+ stringBuffer.append(TEXT_732); > > } > >@@ -3956,7 +4201,7 @@ > GenLink nextLink = (GenLink) it.next(); > GenFeature _feature = ((FeatureModelFacet) nextLink.getModelFacet()).getMetaFeature(); > >- stringBuffer.append(TEXT_696); >+ stringBuffer.append(TEXT_733); > > /* > * input: >@@ -3970,25 +4215,25 @@ > if (!hasDeclaredFilter) { > hasDeclaredFilter = true; > >- stringBuffer.append(TEXT_697); >+ stringBuffer.append(TEXT_734); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_698); >+ stringBuffer.append(TEXT_735); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_699); >+ stringBuffer.append(TEXT_736); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_700); >+ stringBuffer.append(TEXT_737); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_701); >+ stringBuffer.append(TEXT_738); > > } else { > >- stringBuffer.append(TEXT_702); >+ stringBuffer.append(TEXT_739); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_703); >+ stringBuffer.append(TEXT_740); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_704); >+ stringBuffer.append(TEXT_741); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_705); >+ stringBuffer.append(TEXT_742); > > } > >@@ -3997,65 +4242,65 @@ > if (hasConstraintsInContainedLinks) { > if (hasDeclaredFilter) { > >- stringBuffer.append(TEXT_706); >+ stringBuffer.append(TEXT_743); > > } else { > hasDeclaredFilter = true; > >- stringBuffer.append(TEXT_707); >+ stringBuffer.append(TEXT_744); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_708); >+ stringBuffer.append(TEXT_745); > > } > } > if (_includeUncontainedLinks) { > if (hasDeclaredFilter) { > >- stringBuffer.append(TEXT_709); >+ stringBuffer.append(TEXT_746); > > } else { > hasDeclaredFilter = true; > >- stringBuffer.append(TEXT_710); >+ stringBuffer.append(TEXT_747); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_711); >+ stringBuffer.append(TEXT_748); > > } > } > if (!hasDeclaredFilter) { > >- stringBuffer.append(TEXT_712); >+ stringBuffer.append(TEXT_749); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_713); >+ stringBuffer.append(TEXT_750); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.NotificationFilter")); >- stringBuffer.append(TEXT_714); >+ stringBuffer.append(TEXT_751); > > } > } //local declaration of hasDeclaredFilter > >- stringBuffer.append(TEXT_715); >+ stringBuffer.append(TEXT_752); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalElementCommand")); >- stringBuffer.append(TEXT_716); >+ stringBuffer.append(TEXT_753); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); >- stringBuffer.append(TEXT_717); >+ stringBuffer.append(TEXT_754); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); >- stringBuffer.append(TEXT_718); >+ stringBuffer.append(TEXT_755); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); >- stringBuffer.append(TEXT_719); >+ stringBuffer.append(TEXT_756); > > { > Iterator _containedTypeModelFacetLinks = myHelper.getContainedTypeModelFacetLinks(); > Iterator _containedFeatureModelFacetLinks = myHelper.getContainedFeatureModelFacetLinks(); > String _diagramCode = "getHost().getDiagram()"; > >- stringBuffer.append(TEXT_720); >- stringBuffer.append(TEXT_721); >+ stringBuffer.append(TEXT_757); >+ stringBuffer.append(TEXT_758); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_722); >+ stringBuffer.append(TEXT_759); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_723); >+ stringBuffer.append(TEXT_760); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.IViewDecorator")); >- stringBuffer.append(TEXT_724); >+ stringBuffer.append(TEXT_761); > > for(Iterator it = _containedTypeModelFacetLinks; it.hasNext(); ) { > GenLink nextLink = (GenLink) it.next(); >@@ -4064,48 +4309,48 @@ > continue; > } > >- stringBuffer.append(TEXT_725); >+ stringBuffer.append(TEXT_762); > stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_726); >+ stringBuffer.append(TEXT_763); > stringBuffer.append(importManager.getImportedName(modelFacet.getMetaClass().getQualifiedInterfaceName())); >- stringBuffer.append(TEXT_727); >+ stringBuffer.append(TEXT_764); > stringBuffer.append(importManager.getImportedName(nextLink.getNotationViewFactoryQualifiedClassName())); >- stringBuffer.append(TEXT_728); >+ stringBuffer.append(TEXT_765); > > } > for(Iterator it = _containedFeatureModelFacetLinks; it.hasNext(); ) { > GenLink nextLink = (GenLink) it.next(); > >- stringBuffer.append(TEXT_729); >+ stringBuffer.append(TEXT_766); > stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_730); >+ stringBuffer.append(TEXT_767); > stringBuffer.append(importManager.getImportedName(nextLink.getNotationViewFactoryQualifiedClassName())); >- stringBuffer.append(TEXT_731); >+ stringBuffer.append(TEXT_768); > > } > >- stringBuffer.append(TEXT_732); >+ stringBuffer.append(TEXT_769); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalEdgeCommand")); >- stringBuffer.append(TEXT_733); >+ stringBuffer.append(TEXT_770); > stringBuffer.append(_diagramCode); >- stringBuffer.append(TEXT_734); >+ stringBuffer.append(TEXT_771); > > } > >- stringBuffer.append(TEXT_735); >+ stringBuffer.append(TEXT_772); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_736); >+ stringBuffer.append(TEXT_773); > > { > Iterator _containedTypeModelFacetLinks = myHelper.getContainedTypeModelFacetLinks(); > Iterator _containedFeatureModelFacetLinks = myHelper.getContainedFeatureModelFacetLinks(); > >- stringBuffer.append(TEXT_737); >- stringBuffer.append(TEXT_738); >+ stringBuffer.append(TEXT_774); >+ stringBuffer.append(TEXT_775); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_739); >+ stringBuffer.append(TEXT_776); > stringBuffer.append(importManager.getImportedName("java.util.LinkedList")); >- stringBuffer.append(TEXT_740); >+ stringBuffer.append(TEXT_777); > > Map genFeature2genLinkMap = new LinkedHashMap(); > for(Iterator it = _containedTypeModelFacetLinks; it.hasNext(); ) { >@@ -4128,18 +4373,18 @@ > } > if (!genFeature2genLinkMap.isEmpty() || !genFeature2featureGenLinkMap.isEmpty()) { > >- stringBuffer.append(TEXT_741); >+ stringBuffer.append(TEXT_778); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_742); >+ stringBuffer.append(TEXT_779); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_743); >+ stringBuffer.append(TEXT_780); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_744); >+ stringBuffer.append(TEXT_781); > > } > if (!genFeature2genLinkMap.isEmpty()) { > >- stringBuffer.append(TEXT_745); >+ stringBuffer.append(TEXT_782); > > } > for (Iterator entries = genFeature2genLinkMap.entrySet().iterator(); entries.hasNext();) { >@@ -4148,32 +4393,32 @@ > Collection genLinksCollection = (Collection) nextEntry.getValue(); > if (metaFeature.isListType()) { > >- stringBuffer.append(TEXT_746); >+ stringBuffer.append(TEXT_783); > stringBuffer.append(importManager.getImportedName("java.util.Iterator")); >- stringBuffer.append(TEXT_747); >+ stringBuffer.append(TEXT_784); > myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, true); >- stringBuffer.append(TEXT_748); >+ stringBuffer.append(TEXT_785); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_749); >+ stringBuffer.append(TEXT_786); > > } else { > >- stringBuffer.append(TEXT_750); >+ stringBuffer.append(TEXT_787); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_751); >+ stringBuffer.append(TEXT_788); > myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, false); >- stringBuffer.append(TEXT_752); >+ stringBuffer.append(TEXT_789); > > } > >- stringBuffer.append(TEXT_753); >+ stringBuffer.append(TEXT_790); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_754); >+ stringBuffer.append(TEXT_791); > > boolean generateSwitch = genLinksCollection.size() != 1; > if (generateSwitch) { > >- stringBuffer.append(TEXT_755); >+ stringBuffer.append(TEXT_792); > > } > for (Iterator genLinksIterator = genLinksCollection.iterator(); genLinksIterator.hasNext(); ) { >@@ -4181,67 +4426,67 @@ > TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) nextLink.getModelFacet(); > if (generateSwitch) { > >- stringBuffer.append(TEXT_756); >+ stringBuffer.append(TEXT_793); > stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_757); >+ stringBuffer.append(TEXT_794); > > } else { > >- stringBuffer.append(TEXT_758); >+ stringBuffer.append(TEXT_795); > stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_759); >+ stringBuffer.append(TEXT_796); > > } > if (modelFacet.getSourceMetaFeature() != null) { > >- stringBuffer.append(TEXT_760); >+ stringBuffer.append(TEXT_797); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_761); >+ stringBuffer.append(TEXT_798); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_762); >+ stringBuffer.append(TEXT_799); > myFeatureGetAccessorHelper.appendFeatureValueGetter("nextValue", modelFacet.getSourceMetaFeature(), null, false); >- stringBuffer.append(TEXT_763); >+ stringBuffer.append(TEXT_800); > > } else { > >- stringBuffer.append(TEXT_764); >+ stringBuffer.append(TEXT_801); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_765); >+ stringBuffer.append(TEXT_802); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_766); >+ stringBuffer.append(TEXT_803); > > } > if (modelFacet.getTargetMetaFeature() != null) { > >- stringBuffer.append(TEXT_767); >+ stringBuffer.append(TEXT_804); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_768); >+ stringBuffer.append(TEXT_805); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_769); >+ stringBuffer.append(TEXT_806); > myFeatureGetAccessorHelper.appendFeatureValueGetter("nextValue", modelFacet.getTargetMetaFeature(), null, false); >- stringBuffer.append(TEXT_770); >+ stringBuffer.append(TEXT_807); > > } else { > >- stringBuffer.append(TEXT_771); >+ stringBuffer.append(TEXT_808); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_772); >+ stringBuffer.append(TEXT_809); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_773); >+ stringBuffer.append(TEXT_810); > > } > >- stringBuffer.append(TEXT_774); >+ stringBuffer.append(TEXT_811); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); >- stringBuffer.append(TEXT_775); >+ stringBuffer.append(TEXT_812); > > if (generateSwitch) { > >- stringBuffer.append(TEXT_776); >+ stringBuffer.append(TEXT_813); > > } else { > >- stringBuffer.append(TEXT_777); >+ stringBuffer.append(TEXT_814); > > } > >@@ -4249,12 +4494,12 @@ > } //iterate over genLinksCollection > if (generateSwitch) { > >- stringBuffer.append(TEXT_778); >+ stringBuffer.append(TEXT_815); > > } > if (metaFeature.isListType()) { > >- stringBuffer.append(TEXT_779); >+ stringBuffer.append(TEXT_816); > > } > } >@@ -4264,180 +4509,180 @@ > Collection genLinksCollection = (Collection) nextEntry.getValue(); > if (metaFeature.isListType()) { > >- stringBuffer.append(TEXT_780); >+ stringBuffer.append(TEXT_817); > stringBuffer.append(importManager.getImportedName("java.util.Iterator")); >- stringBuffer.append(TEXT_781); >+ stringBuffer.append(TEXT_818); > myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, true); >- stringBuffer.append(TEXT_782); >+ stringBuffer.append(TEXT_819); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_783); >+ stringBuffer.append(TEXT_820); > > } else { > >- stringBuffer.append(TEXT_784); >+ stringBuffer.append(TEXT_821); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_785); >+ stringBuffer.append(TEXT_822); > myFeatureGetAccessorHelper.appendFeatureValueGetter("modelObject", metaFeature, null, false); >- stringBuffer.append(TEXT_786); >+ stringBuffer.append(TEXT_823); > > } > >- stringBuffer.append(TEXT_787); >+ stringBuffer.append(TEXT_824); > > for (Iterator genLinksIterator = genLinksCollection.iterator(); genLinksIterator.hasNext(); ) { > GenLink nextLink = (GenLink) genLinksIterator.next(); > >- stringBuffer.append(TEXT_788); >+ stringBuffer.append(TEXT_825); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.LinkDescriptor")); >- stringBuffer.append(TEXT_789); >+ stringBuffer.append(TEXT_826); > stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_790); >+ stringBuffer.append(TEXT_827); > > } > >- stringBuffer.append(TEXT_791); >+ stringBuffer.append(TEXT_828); > > if (metaFeature.isListType()) { > >- stringBuffer.append(TEXT_792); >+ stringBuffer.append(TEXT_829); > > } > } > >- stringBuffer.append(TEXT_793); >+ stringBuffer.append(TEXT_830); > > } > >- stringBuffer.append(TEXT_794); >+ stringBuffer.append(TEXT_831); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_795); >+ stringBuffer.append(TEXT_832); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_796); >+ stringBuffer.append(TEXT_833); > stringBuffer.append(importManager.getImportedName("java.util.LinkedList")); >- stringBuffer.append(TEXT_797); >+ stringBuffer.append(TEXT_834); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_798); >+ stringBuffer.append(TEXT_835); > stringBuffer.append(_getDiagramCode); >- stringBuffer.append(TEXT_799); >+ stringBuffer.append(TEXT_836); > stringBuffer.append(importManager.getImportedName("java.util.Iterator")); >- stringBuffer.append(TEXT_800); >+ stringBuffer.append(TEXT_837); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); >- stringBuffer.append(TEXT_801); >+ stringBuffer.append(TEXT_838); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); >- stringBuffer.append(TEXT_802); >+ stringBuffer.append(TEXT_839); > > if (_includeUncontainedLinks) { > >- stringBuffer.append(TEXT_803); >+ stringBuffer.append(TEXT_840); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_804); >+ stringBuffer.append(TEXT_841); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_805); >+ stringBuffer.append(TEXT_842); > > } > if (myHelper.containsFeatureModelFacetLinks()) { > >- stringBuffer.append(TEXT_806); >+ stringBuffer.append(TEXT_843); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_807); >+ stringBuffer.append(TEXT_844); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_808); >+ stringBuffer.append(TEXT_845); > > for(Iterator it = myHelper.getContainedFeatureModelFacetLinks(); it.hasNext(); ) { > GenLink nextLink = (GenLink) it.next(); > >- stringBuffer.append(TEXT_809); >+ stringBuffer.append(TEXT_846); > stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_810); >+ stringBuffer.append(TEXT_847); > > } > >- stringBuffer.append(TEXT_811); >+ stringBuffer.append(TEXT_848); > > if (myHelper.containsTypeModelFacetLinks()) { > >- stringBuffer.append(TEXT_812); >+ stringBuffer.append(TEXT_849); > > } else { > >- stringBuffer.append(TEXT_813); >+ stringBuffer.append(TEXT_850); > > } > } > if (myHelper.containsTypeModelFacetLinks()) { > if (!myHelper.containsFeatureModelFacetLinks()) { > >- stringBuffer.append(TEXT_814); >+ stringBuffer.append(TEXT_851); > > } > >- stringBuffer.append(TEXT_815); >+ stringBuffer.append(TEXT_852); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_816); >+ stringBuffer.append(TEXT_853); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_817); >+ stringBuffer.append(TEXT_854); > > for(Iterator it = myHelper.getContainedTypeModelFacetLinks(); it.hasNext(); ) { > GenLink nextLink = (GenLink) it.next(); > >- stringBuffer.append(TEXT_818); >+ stringBuffer.append(TEXT_855); > stringBuffer.append(importManager.getImportedName(nextLink.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_819); >+ stringBuffer.append(TEXT_856); > > } > >- stringBuffer.append(TEXT_820); >+ stringBuffer.append(TEXT_857); > > } > >- stringBuffer.append(TEXT_821); >+ stringBuffer.append(TEXT_858); > stringBuffer.append(genDiagram.isSynchronized()); >- stringBuffer.append(TEXT_822); >+ stringBuffer.append(TEXT_859); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.ElementDescriptor")); >- stringBuffer.append(TEXT_823); >+ stringBuffer.append(TEXT_860); > stringBuffer.append(genDiagram.isSynchronized()); >- stringBuffer.append(TEXT_824); >+ stringBuffer.append(TEXT_861); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_825); >+ stringBuffer.append(TEXT_862); > stringBuffer.append(_getViewCode); >- stringBuffer.append(TEXT_826); >+ stringBuffer.append(TEXT_863); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.canonical.AbstractNotationModelRefresher")); >- stringBuffer.append(TEXT_827); >+ stringBuffer.append(TEXT_864); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_828); >+ stringBuffer.append(TEXT_865); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_829); >+ stringBuffer.append(TEXT_866); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_830); >+ stringBuffer.append(TEXT_867); > stringBuffer.append(_getDiagramCode); >- stringBuffer.append(TEXT_831); >+ stringBuffer.append(TEXT_868); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_832); >+ stringBuffer.append(TEXT_869); > > } > > > } //end of local declarations > >- stringBuffer.append(TEXT_833); >- stringBuffer.append(TEXT_834); >- stringBuffer.append(TEXT_835); >+ stringBuffer.append(TEXT_870); >+ stringBuffer.append(TEXT_871); >+ stringBuffer.append(TEXT_872); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter")); >- stringBuffer.append(TEXT_836); >+ stringBuffer.append(TEXT_873); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter")); >- stringBuffer.append(TEXT_837); >- stringBuffer.append(TEXT_838); >- stringBuffer.append(TEXT_839); >+ stringBuffer.append(TEXT_874); >+ stringBuffer.append(TEXT_875); >+ stringBuffer.append(TEXT_876); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); >- stringBuffer.append(TEXT_840); >+ stringBuffer.append(TEXT_877); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); >- stringBuffer.append(TEXT_841); >+ stringBuffer.append(TEXT_878); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); >- stringBuffer.append(TEXT_842); >+ stringBuffer.append(TEXT_879); > > final String primaryView = "getDiagramNode()"; > >- stringBuffer.append(TEXT_843); >+ stringBuffer.append(TEXT_880); > > boolean isFixedFontSetInFigure; > { >@@ -4445,255 +4690,314 @@ > isFixedFontSetInFigure = styleAttributes != null && styleAttributes.isFixedFont(); > } > >- stringBuffer.append(TEXT_844); >+ stringBuffer.append(TEXT_881); > > if (!isFixedFontSetInFigure) { > >- stringBuffer.append(TEXT_845); >+ stringBuffer.append(TEXT_882); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); >- stringBuffer.append(TEXT_846); >+ stringBuffer.append(TEXT_883); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); >- stringBuffer.append(TEXT_847); >+ stringBuffer.append(TEXT_884); > stringBuffer.append(primaryView); >- stringBuffer.append(TEXT_848); >+ stringBuffer.append(TEXT_885); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_849); >+ stringBuffer.append(TEXT_886); > stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); >- stringBuffer.append(TEXT_850); >+ stringBuffer.append(TEXT_887); > stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); >- stringBuffer.append(TEXT_851); >+ stringBuffer.append(TEXT_888); > stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); >- stringBuffer.append(TEXT_852); >+ stringBuffer.append(TEXT_889); > stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); >- stringBuffer.append(TEXT_853); >+ stringBuffer.append(TEXT_890); > stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); >- stringBuffer.append(TEXT_854); >+ stringBuffer.append(TEXT_891); > stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.FontData")); >- stringBuffer.append(TEXT_855); >+ stringBuffer.append(TEXT_892); > stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); >- stringBuffer.append(TEXT_856); >+ stringBuffer.append(TEXT_893); > > } > >- stringBuffer.append(TEXT_857); >+ stringBuffer.append(TEXT_894); > > if (!isFixedFontSetInFigure) { > >- stringBuffer.append(TEXT_858); >+ stringBuffer.append(TEXT_895); > stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); >- stringBuffer.append(TEXT_859); >+ stringBuffer.append(TEXT_896); > > } > >- stringBuffer.append(TEXT_860); >- stringBuffer.append(TEXT_861); >- stringBuffer.append(TEXT_862); >+ stringBuffer.append(TEXT_897); >+ stringBuffer.append(TEXT_898); >+ stringBuffer.append(TEXT_899); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle")); >- stringBuffer.append(TEXT_863); >+ stringBuffer.append(TEXT_900); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.LineStyle")); >- stringBuffer.append(TEXT_864); >+ stringBuffer.append(TEXT_901); > stringBuffer.append(primaryView); >- stringBuffer.append(TEXT_865); >+ stringBuffer.append(TEXT_902); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_866); >+ stringBuffer.append(TEXT_903); > stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); >- stringBuffer.append(TEXT_867); >+ stringBuffer.append(TEXT_904); > stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); >- stringBuffer.append(TEXT_868); >+ stringBuffer.append(TEXT_905); > stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); >- stringBuffer.append(TEXT_869); >+ stringBuffer.append(TEXT_906); > stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); >- stringBuffer.append(TEXT_870); >+ stringBuffer.append(TEXT_907); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle")); >- stringBuffer.append(TEXT_871); >+ stringBuffer.append(TEXT_908); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FillStyle")); >- stringBuffer.append(TEXT_872); >+ stringBuffer.append(TEXT_909); > stringBuffer.append(primaryView); >- stringBuffer.append(TEXT_873); >+ stringBuffer.append(TEXT_910); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_874); >+ stringBuffer.append(TEXT_911); > stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); >- stringBuffer.append(TEXT_875); >+ stringBuffer.append(TEXT_912); > stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); >- stringBuffer.append(TEXT_876); >+ stringBuffer.append(TEXT_913); > stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); >- stringBuffer.append(TEXT_877); >+ stringBuffer.append(TEXT_914); > stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); >- stringBuffer.append(TEXT_878); >- stringBuffer.append(TEXT_879); >- stringBuffer.append(TEXT_880); >+ stringBuffer.append(TEXT_915); >+ stringBuffer.append(TEXT_916); >+ stringBuffer.append(TEXT_917); > stringBuffer.append(importManager.getImportedName("java.util.HashMap")); >- stringBuffer.append(TEXT_881); >+ stringBuffer.append(TEXT_918); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EStructuralFeature")); >- stringBuffer.append(TEXT_882); >+ stringBuffer.append(TEXT_919); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.Notification")); >- stringBuffer.append(TEXT_883); >+ stringBuffer.append(TEXT_920); > stringBuffer.append(importManager.getImportedName("java.util.HashMap")); >- stringBuffer.append(TEXT_884); >- stringBuffer.append(TEXT_885); >- stringBuffer.append(TEXT_886); >+ stringBuffer.append(TEXT_921); >+ stringBuffer.append(TEXT_922); >+ stringBuffer.append(TEXT_923); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_887); >+ stringBuffer.append(TEXT_924); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_888); >- stringBuffer.append(TEXT_889); >- stringBuffer.append(TEXT_890); >+ stringBuffer.append(TEXT_925); >+ stringBuffer.append(TEXT_926); >+ stringBuffer.append(TEXT_927); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_891); >+ stringBuffer.append(TEXT_928); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_892); >+ stringBuffer.append(TEXT_929); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_893); >+ stringBuffer.append(TEXT_930); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_894); >+ stringBuffer.append(TEXT_931); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_895); >- stringBuffer.append(TEXT_896); >- stringBuffer.append(TEXT_897); >+ stringBuffer.append(TEXT_932); >+ stringBuffer.append(TEXT_933); >+ stringBuffer.append(TEXT_934); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_898); >- stringBuffer.append(TEXT_899); >- stringBuffer.append(TEXT_900); >+ stringBuffer.append(TEXT_935); >+ stringBuffer.append(TEXT_936); >+ stringBuffer.append(TEXT_937); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_901); >- stringBuffer.append(TEXT_902); >- stringBuffer.append(TEXT_903); >+ stringBuffer.append(TEXT_938); >+ stringBuffer.append(TEXT_939); >+ stringBuffer.append(TEXT_940); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_904); >- stringBuffer.append(TEXT_905); >- stringBuffer.append(TEXT_906); >+ stringBuffer.append(TEXT_941); >+ stringBuffer.append(TEXT_942); >+ stringBuffer.append(TEXT_943); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_907); >+ stringBuffer.append(TEXT_944); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_908); >+ stringBuffer.append(TEXT_945); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_909); >+ stringBuffer.append(TEXT_946); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_910); >- stringBuffer.append(TEXT_911); >- stringBuffer.append(TEXT_912); >+ stringBuffer.append(TEXT_947); >+ stringBuffer.append(TEXT_948); >+ stringBuffer.append(TEXT_949); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_913); >+ stringBuffer.append(TEXT_950); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); >- stringBuffer.append(TEXT_914); >+ stringBuffer.append(TEXT_951); > > for(Iterator it = genNode.getChildNodes().iterator(); it.hasNext(); ) { > GenChildNode next = (GenChildNode)it.next(); > boolean isStatic = true; > boolean isListLayout = !isXYLayout; >- String resolvedSemanticElement = "parent.getElement()"; > >- stringBuffer.append(TEXT_915); >+ stringBuffer.append(TEXT_952); > > if (genDiagram.getPalette() != null) { > >- stringBuffer.append(TEXT_916); >+ stringBuffer.append(TEXT_953); > if (isStatic) { >- stringBuffer.append(TEXT_917); >+ stringBuffer.append(TEXT_954); > } >- stringBuffer.append(TEXT_918); >+ stringBuffer.append(TEXT_955); > stringBuffer.append(next.getDomainMetaClass().getName()); > stringBuffer.append(next.getVisualID()); >- stringBuffer.append(TEXT_919); >+ stringBuffer.append(TEXT_956); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); >- stringBuffer.append(TEXT_920); >+ stringBuffer.append(TEXT_957); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand")); >- stringBuffer.append(TEXT_921); >+ stringBuffer.append(TEXT_958); > stringBuffer.append(next.getDomainMetaClass().getName()); > stringBuffer.append(next.getVisualID()); >- stringBuffer.append(TEXT_922); >+ stringBuffer.append(TEXT_959); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_923); >+ stringBuffer.append(TEXT_960); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateRequestEx")); >- stringBuffer.append(TEXT_924); >+ stringBuffer.append(TEXT_961); > if (!isListLayout) { >- stringBuffer.append(TEXT_925); >+ stringBuffer.append(TEXT_962); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); >- stringBuffer.append(TEXT_926); >+ stringBuffer.append(TEXT_963); > } >- stringBuffer.append(TEXT_927); >+ stringBuffer.append(TEXT_964); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_928); >+ stringBuffer.append(TEXT_965); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_929); >+ stringBuffer.append(TEXT_966); > > if (next.getDomainMetaClass().isMapEntry()) { > /*Workaround for Ecore example: map entries cannot be created using factory, only using reflective EFactory.create() method*/ > >- stringBuffer.append(TEXT_930); >+ stringBuffer.append(TEXT_967); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_931); >+ stringBuffer.append(TEXT_968); > stringBuffer.append(importManager.getImportedName(next.getDomainMetaClass().getGenPackage().getQualifiedFactoryInterfaceName())); >- stringBuffer.append(TEXT_932); >+ stringBuffer.append(TEXT_969); > stringBuffer.append(importManager.getImportedName(next.getDomainMetaClass().getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_933); >+ stringBuffer.append(TEXT_970); > stringBuffer.append(next.getDomainMetaClass().getClassifierAccessorName()); >- stringBuffer.append(TEXT_934); >+ stringBuffer.append(TEXT_971); > > } else { > >- stringBuffer.append(TEXT_935); >+ stringBuffer.append(TEXT_972); > stringBuffer.append(importManager.getImportedName(next.getDomainMetaClass().getQualifiedInterfaceName())); >- stringBuffer.append(TEXT_936); >+ stringBuffer.append(TEXT_973); > stringBuffer.append(importManager.getImportedName(next.getDomainMetaClass().getGenPackage().getQualifiedFactoryInterfaceName())); >- stringBuffer.append(TEXT_937); >+ stringBuffer.append(TEXT_974); > stringBuffer.append(next.getDomainMetaClass().getClassifierAccessorName()); >- stringBuffer.append(TEXT_938); >+ stringBuffer.append(TEXT_975); >+ >+ } >+ >+ stringBuffer.append(TEXT_976); >+ /*XXX: Class name DomainElementInitializer should be user-customizable*/ >+ stringBuffer.append(TEXT_977); >+ stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")); >+ stringBuffer.append(TEXT_978); >+ stringBuffer.append(next.getUniqueIdentifier()); >+ stringBuffer.append(TEXT_979); >+ if (next.getDomainMetaClass().isExternalInterface()) { >+ stringBuffer.append(TEXT_980); >+ stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >+ stringBuffer.append(TEXT_981); >+ } >+ stringBuffer.append(TEXT_982); >+ >+ TypeModelFacet facet = next.getModelFacet(); >+ GenFeature childFeature = facet.getChildMetaFeature(); >+ GenFeature containmentFeature = facet.getContainmentMetaFeature(); >+ { >+ GenFeature _feature = containmentFeature; >+ String _ownerInstance = "parent.getElement()"; >+ String _exceedsUpperBound = "this.domainModelAddCommand = null;this.notationAddCommand = null;return;"; >+ GenClass _ownerGenClass = null; >+ >+ stringBuffer.append(TEXT_983); >+ >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ >+ stringBuffer.append(TEXT_984); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >+ stringBuffer.append(TEXT_985); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_986); >+ >+ } else { >+ >+ stringBuffer.append(TEXT_987); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_988); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_989); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_990); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_991); >+ >+ } >+} >+ >+ >+ } >+ if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { >+ GenFeature _feature = childFeature; >+ String _ownerInstance = "parent.getElement()"; >+ String _exceedsUpperBound = "this.domainModelAddCommand = null;this.notationAddCommand = null;return;"; >+ GenClass _ownerGenClass = null; >+ >+ stringBuffer.append(TEXT_992); >+ >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ >+ stringBuffer.append(TEXT_993); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >+ stringBuffer.append(TEXT_994); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_995); >+ >+ } else { >+ >+ stringBuffer.append(TEXT_996); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_997); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_998); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_999); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_1000); > > } >+} > >- stringBuffer.append(TEXT_939); >- /*XXX: Class name DomainElementInitializer should be user-customizable*/ >- stringBuffer.append(TEXT_940); >- stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")); >- stringBuffer.append(TEXT_941); >- stringBuffer.append(next.getUniqueIdentifier()); >- stringBuffer.append(TEXT_942); >- if (next.getDomainMetaClass().isExternalInterface()) { >- stringBuffer.append(TEXT_943); >- stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_944); >- } >- stringBuffer.append(TEXT_945); >- >- TypeModelFacet facet = next.getModelFacet(); >- GenFeature childFeature = facet.getChildMetaFeature(); >- GenFeature containmentFeature = facet.getContainmentMetaFeature(); >- if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { >- >- stringBuffer.append(TEXT_946); >+ stringBuffer.append(TEXT_1001); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_947); >+ stringBuffer.append(TEXT_1002); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_948); >+ stringBuffer.append(TEXT_1003); > stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_949); >- stringBuffer.append(resolvedSemanticElement); >- stringBuffer.append(TEXT_950); >+ stringBuffer.append(TEXT_1004); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_951); >+ stringBuffer.append(TEXT_1005); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_952); >+ stringBuffer.append(TEXT_1006); > stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_953); >- stringBuffer.append(resolvedSemanticElement); >- stringBuffer.append(TEXT_954); >+ stringBuffer.append(TEXT_1007); > stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_955); >+ stringBuffer.append(TEXT_1008); > stringBuffer.append(childFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_956); >+ stringBuffer.append(TEXT_1009); > > } else { > >- stringBuffer.append(TEXT_957); >+ stringBuffer.append(TEXT_1010); > stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_958); >- stringBuffer.append(resolvedSemanticElement); >- stringBuffer.append(TEXT_959); >+ stringBuffer.append(TEXT_1011); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_960); >+ stringBuffer.append(TEXT_1012); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_961); >+ stringBuffer.append(TEXT_1013); > > } > >@@ -4707,33 +5011,33 @@ > defaultHeight = defSizeAttrs.getHeight(); > } > >- stringBuffer.append(TEXT_962); >+ stringBuffer.append(TEXT_1014); > stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Dimension")); >- stringBuffer.append(TEXT_963); >+ stringBuffer.append(TEXT_1015); > stringBuffer.append(defaultWidth); >- stringBuffer.append(TEXT_964); >+ stringBuffer.append(TEXT_1016); > stringBuffer.append(defaultHeight); >- stringBuffer.append(TEXT_965); >+ stringBuffer.append(TEXT_1017); > > } > >- stringBuffer.append(TEXT_966); >+ stringBuffer.append(TEXT_1018); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.CreateNotationalNodeCommand")); >- stringBuffer.append(TEXT_967); >+ stringBuffer.append(TEXT_1019); > if (next.getDomainMetaClass().isExternalInterface()) { >- stringBuffer.append(TEXT_968); >+ stringBuffer.append(TEXT_1020); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_969); >+ stringBuffer.append(TEXT_1021); > } >- stringBuffer.append(TEXT_970); >+ stringBuffer.append(TEXT_1022); > if(!isListLayout) { >- stringBuffer.append(TEXT_971); >+ stringBuffer.append(TEXT_1023); > } else { >- stringBuffer.append(TEXT_972); >+ stringBuffer.append(TEXT_1024); > } >- stringBuffer.append(TEXT_973); >+ stringBuffer.append(TEXT_1025); > stringBuffer.append(importManager.getImportedName(next.getNotationViewFactoryQualifiedClassName())); >- stringBuffer.append(TEXT_974); >+ stringBuffer.append(TEXT_1026); > > } > >@@ -4765,79 +5069,80 @@ > } > GenLinkConstraints linkConstraints = genLink.getCreationConstraints(); > >- stringBuffer.append(TEXT_975); >+ stringBuffer.append(TEXT_1027); > stringBuffer.append(reconnectCommandNameInfix); > stringBuffer.append(genLink.getVisualID()); >- stringBuffer.append(TEXT_976); >+ stringBuffer.append(TEXT_1028); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); >- stringBuffer.append(TEXT_977); >+ stringBuffer.append(TEXT_1029); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); >- stringBuffer.append(TEXT_978); >+ stringBuffer.append(TEXT_1030); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_979); >+ stringBuffer.append(TEXT_1031); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_980); >+ stringBuffer.append(TEXT_1032); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_981); >+ stringBuffer.append(TEXT_1033); > stringBuffer.append(reconnectCommandNameInfix); > stringBuffer.append(genLink.getVisualID()); >- stringBuffer.append(TEXT_982); >+ stringBuffer.append(TEXT_1034); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest")); >- stringBuffer.append(TEXT_983); >+ stringBuffer.append(TEXT_1035); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); >- stringBuffer.append(TEXT_984); >+ stringBuffer.append(TEXT_1036); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_985); >+ stringBuffer.append(TEXT_1037); > stringBuffer.append(reconnectCommandNameInfix); > stringBuffer.append(genLink.getVisualID()); >- stringBuffer.append(TEXT_986); >+ stringBuffer.append(TEXT_1038); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); >- stringBuffer.append(TEXT_987); >+ stringBuffer.append(TEXT_1039); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_988); >+ stringBuffer.append(TEXT_1040); > > if (linkConstraints != null) { > >- stringBuffer.append(TEXT_989); >+ stringBuffer.append(TEXT_1041); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_990); >+ stringBuffer.append(TEXT_1042); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_991); >+ stringBuffer.append(TEXT_1043); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_992); >+ stringBuffer.append(TEXT_1044); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); >- stringBuffer.append(TEXT_993); >+ stringBuffer.append(TEXT_1045); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_994); >+ stringBuffer.append(TEXT_1046); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_995); >+ stringBuffer.append(TEXT_1047); > > } else { > >- stringBuffer.append(TEXT_996); >+ stringBuffer.append(TEXT_1048); > > } > >- stringBuffer.append(TEXT_997); >+ stringBuffer.append(TEXT_1049); > > if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { > TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); > GenFeature containmentFeature = modelFacet.getContainmentMetaFeature(); >+ GenFeature childFeature = modelFacet.getChildMetaFeature(); > if (containmentFeature == null) { > >- stringBuffer.append(TEXT_998); >+ stringBuffer.append(TEXT_1050); > > } else { > >- stringBuffer.append(TEXT_999); >+ stringBuffer.append(TEXT_1051); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName())); >- stringBuffer.append(TEXT_1000); >+ stringBuffer.append(TEXT_1052); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName())); >- stringBuffer.append(TEXT_1001); >+ stringBuffer.append(TEXT_1053); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1002); >+ stringBuffer.append(TEXT_1054); > stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName()); >- stringBuffer.append(TEXT_1003); >+ stringBuffer.append(TEXT_1055); > > { > GenFeature _feature = containmentFeature; >@@ -4845,36 +5150,35 @@ > String _exceedsUpperBound = "return false;"; > GenClass _ownerGenClass = containmentFeature.getGenClass(); > >- stringBuffer.append(TEXT_1004); >+ stringBuffer.append(TEXT_1056); > > int upperBound = _feature.getEcoreFeature().getUpperBound(); > if (upperBound > 0) { > if (upperBound == 1) { > >- stringBuffer.append(TEXT_1005); >+ stringBuffer.append(TEXT_1057); > myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >- stringBuffer.append(TEXT_1006); >+ stringBuffer.append(TEXT_1058); > stringBuffer.append(_exceedsUpperBound); >- stringBuffer.append(TEXT_1007); >+ stringBuffer.append(TEXT_1059); > > } else { > >- stringBuffer.append(TEXT_1008); >+ stringBuffer.append(TEXT_1060); > myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >- stringBuffer.append(TEXT_1009); >+ stringBuffer.append(TEXT_1061); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1010); >+ stringBuffer.append(TEXT_1062); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1011); >+ stringBuffer.append(TEXT_1063); > stringBuffer.append(_exceedsUpperBound); >- stringBuffer.append(TEXT_1012); >+ stringBuffer.append(TEXT_1064); > > } > } > > > } >- GenFeature childFeature = modelFacet.getChildMetaFeature(); > if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { > { > GenFeature _feature = childFeature; >@@ -4882,29 +5186,29 @@ > String _exceedsUpperBound = "return false;"; > GenClass _ownerGenClass = containmentFeature.getGenClass(); > >- stringBuffer.append(TEXT_1013); >+ stringBuffer.append(TEXT_1065); > > int upperBound = _feature.getEcoreFeature().getUpperBound(); > if (upperBound > 0) { > if (upperBound == 1) { > >- stringBuffer.append(TEXT_1014); >+ stringBuffer.append(TEXT_1066); > myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >- stringBuffer.append(TEXT_1015); >+ stringBuffer.append(TEXT_1067); > stringBuffer.append(_exceedsUpperBound); >- stringBuffer.append(TEXT_1016); >+ stringBuffer.append(TEXT_1068); > > } else { > >- stringBuffer.append(TEXT_1017); >+ stringBuffer.append(TEXT_1069); > myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >- stringBuffer.append(TEXT_1018); >+ stringBuffer.append(TEXT_1070); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1019); >+ stringBuffer.append(TEXT_1071); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1020); >+ stringBuffer.append(TEXT_1072); > stringBuffer.append(_exceedsUpperBound); >- stringBuffer.append(TEXT_1021); >+ stringBuffer.append(TEXT_1073); > > } > } >@@ -4914,28 +5218,66 @@ > } > } > //No need to check the size of the source or target features: their size does not change >+ //Still need to check the eOpposite() of the source feature >+ GenFeature sourceFeature = modelFacet.getSourceMetaFeature(); >+ GenFeature sourceReverseFeature = sourceFeature == null ? null : sourceFeature.getReverse(); >+ if (sourceReverseFeature != null && !sourceReverseFeature.isDerived() && sourceReverseFeature != containmentFeature && sourceReverseFeature != childFeature) { >+ GenFeature _feature = sourceReverseFeature; >+ String _ownerInstance = "newSource.getElement()"; >+ String _exceedsUpperBound = "return false;"; >+ GenClass _ownerGenClass = null; >+ >+ stringBuffer.append(TEXT_1074); >+ >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ >+ stringBuffer.append(TEXT_1075); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >+ stringBuffer.append(TEXT_1076); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_1077); >+ >+ } else { >+ >+ stringBuffer.append(TEXT_1078); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_1079); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_1080); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_1081); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_1082); >+ >+ } >+} >+ >+ >+ } > { > String _source = "newSource.getElement()"; > String _target = "edge.getTarget().getElement()"; > >- stringBuffer.append(TEXT_1022); >+ stringBuffer.append(TEXT_1083); > > if (linkConstraints != null) { > >- stringBuffer.append(TEXT_1023); >+ stringBuffer.append(TEXT_1084); > stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); >- stringBuffer.append(TEXT_1024); >+ stringBuffer.append(TEXT_1085); > stringBuffer.append(_source); >- stringBuffer.append(TEXT_1025); >+ stringBuffer.append(TEXT_1086); > stringBuffer.append(_target); >- stringBuffer.append(TEXT_1026); >+ stringBuffer.append(TEXT_1087); > > } > > > } //local declarations for linkConstraints.jetinc > >- stringBuffer.append(TEXT_1027); >+ stringBuffer.append(TEXT_1088); > > } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { > GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); >@@ -4945,29 +5287,29 @@ > String _exceedsUpperBound = "return false;"; > GenClass _ownerGenClass = null; > >- stringBuffer.append(TEXT_1028); >+ stringBuffer.append(TEXT_1089); > > int upperBound = _feature.getEcoreFeature().getUpperBound(); > if (upperBound > 0) { > if (upperBound == 1) { > >- stringBuffer.append(TEXT_1029); >+ stringBuffer.append(TEXT_1090); > myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >- stringBuffer.append(TEXT_1030); >+ stringBuffer.append(TEXT_1091); > stringBuffer.append(_exceedsUpperBound); >- stringBuffer.append(TEXT_1031); >+ stringBuffer.append(TEXT_1092); > > } else { > >- stringBuffer.append(TEXT_1032); >+ stringBuffer.append(TEXT_1093); > myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >- stringBuffer.append(TEXT_1033); >+ stringBuffer.append(TEXT_1094); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1034); >+ stringBuffer.append(TEXT_1095); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1035); >+ stringBuffer.append(TEXT_1096); > stringBuffer.append(_exceedsUpperBound); >- stringBuffer.append(TEXT_1036); >+ stringBuffer.append(TEXT_1097); > > } > } >@@ -4978,44 +5320,44 @@ > String _source = "newSource.getElement()"; > String _target = "edge.getTarget().getElement()"; > >- stringBuffer.append(TEXT_1037); >+ stringBuffer.append(TEXT_1098); > > if (linkConstraints != null) { > >- stringBuffer.append(TEXT_1038); >+ stringBuffer.append(TEXT_1099); > stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); >- stringBuffer.append(TEXT_1039); >+ stringBuffer.append(TEXT_1100); > stringBuffer.append(_source); >- stringBuffer.append(TEXT_1040); >+ stringBuffer.append(TEXT_1101); > stringBuffer.append(_target); >- stringBuffer.append(TEXT_1041); >+ stringBuffer.append(TEXT_1102); > > } > > > } //local declarations for linkConstraints.jetinc > >- stringBuffer.append(TEXT_1042); >+ stringBuffer.append(TEXT_1103); > > } else { > >- stringBuffer.append(TEXT_1043); >+ stringBuffer.append(TEXT_1104); > > } > >- stringBuffer.append(TEXT_1044); >+ stringBuffer.append(TEXT_1105); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_1045); >+ stringBuffer.append(TEXT_1106); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_1046); >+ stringBuffer.append(TEXT_1107); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_1047); >+ stringBuffer.append(TEXT_1108); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_1048); >+ stringBuffer.append(TEXT_1109); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_1049); >+ stringBuffer.append(TEXT_1110); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.ReconnectNotationalEdgeSourceCommand")); >- stringBuffer.append(TEXT_1050); >+ stringBuffer.append(TEXT_1111); > > if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { > TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); >@@ -5034,118 +5376,118 @@ > } > if (containmentFeature != null || setChild) { > >- stringBuffer.append(TEXT_1051); >+ stringBuffer.append(TEXT_1112); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_1052); >+ stringBuffer.append(TEXT_1113); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1053); >+ stringBuffer.append(TEXT_1114); > stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName()); >- stringBuffer.append(TEXT_1054); >+ stringBuffer.append(TEXT_1115); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); >- stringBuffer.append(TEXT_1055); >+ stringBuffer.append(TEXT_1116); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_1056); >+ stringBuffer.append(TEXT_1117); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); >- stringBuffer.append(TEXT_1057); >+ stringBuffer.append(TEXT_1118); > > } > if (containmentFeature != null) { > if (containmentFeature.getEcoreFeature().isMany()) { > >- stringBuffer.append(TEXT_1058); >+ stringBuffer.append(TEXT_1119); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_1059); >+ stringBuffer.append(TEXT_1120); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1060); >+ stringBuffer.append(TEXT_1121); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1061); >+ stringBuffer.append(TEXT_1122); > > } else { > >- stringBuffer.append(TEXT_1062); >+ stringBuffer.append(TEXT_1123); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1063); >+ stringBuffer.append(TEXT_1124); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1064); >+ stringBuffer.append(TEXT_1125); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1065); >+ stringBuffer.append(TEXT_1126); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1066); >+ stringBuffer.append(TEXT_1127); > > } > >- stringBuffer.append(TEXT_1067); >+ stringBuffer.append(TEXT_1128); > stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1068); >+ stringBuffer.append(TEXT_1129); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1069); >+ stringBuffer.append(TEXT_1130); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1070); >+ stringBuffer.append(TEXT_1131); > > } > if (setChild) { > if (childFeature.getEcoreFeature().isMany()) { > >- stringBuffer.append(TEXT_1071); >+ stringBuffer.append(TEXT_1132); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_1072); >+ stringBuffer.append(TEXT_1133); > stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1073); >+ stringBuffer.append(TEXT_1134); > stringBuffer.append(childFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1074); >+ stringBuffer.append(TEXT_1135); > > } else { > >- stringBuffer.append(TEXT_1075); >+ stringBuffer.append(TEXT_1136); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1076); >+ stringBuffer.append(TEXT_1137); > stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1077); >+ stringBuffer.append(TEXT_1138); > stringBuffer.append(childFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1078); >+ stringBuffer.append(TEXT_1139); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1079); >+ stringBuffer.append(TEXT_1140); > > } > >- stringBuffer.append(TEXT_1080); >+ stringBuffer.append(TEXT_1141); > stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1081); >+ stringBuffer.append(TEXT_1142); > stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1082); >+ stringBuffer.append(TEXT_1143); > stringBuffer.append(childFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1083); >+ stringBuffer.append(TEXT_1144); > > } > >- stringBuffer.append(TEXT_1084); >+ stringBuffer.append(TEXT_1145); > > if (setSource) { > if (sourceFeature.getEcoreFeature().isMany()) { > >- stringBuffer.append(TEXT_1085); >+ stringBuffer.append(TEXT_1146); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_1086); >+ stringBuffer.append(TEXT_1147); > stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1087); >+ stringBuffer.append(TEXT_1148); > stringBuffer.append(sourceFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1088); >+ stringBuffer.append(TEXT_1149); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); >- stringBuffer.append(TEXT_1089); >+ stringBuffer.append(TEXT_1150); > stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1090); >+ stringBuffer.append(TEXT_1151); > stringBuffer.append(sourceFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1091); >+ stringBuffer.append(TEXT_1152); > > } else { > >- stringBuffer.append(TEXT_1092); >+ stringBuffer.append(TEXT_1153); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1093); >+ stringBuffer.append(TEXT_1154); > stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1094); >+ stringBuffer.append(TEXT_1155); > stringBuffer.append(sourceFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1095); >+ stringBuffer.append(TEXT_1156); > > } > } >@@ -5153,53 +5495,53 @@ > GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); > if (metaFeature.getEcoreFeature().isMany()) { > >- stringBuffer.append(TEXT_1096); >+ stringBuffer.append(TEXT_1157); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_1097); >+ stringBuffer.append(TEXT_1158); > stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1098); >+ stringBuffer.append(TEXT_1159); > stringBuffer.append(metaFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1099); >+ stringBuffer.append(TEXT_1160); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); >- stringBuffer.append(TEXT_1100); >+ stringBuffer.append(TEXT_1161); > stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1101); >+ stringBuffer.append(TEXT_1162); > stringBuffer.append(metaFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1102); >+ stringBuffer.append(TEXT_1163); > > } else { > >- stringBuffer.append(TEXT_1103); >+ stringBuffer.append(TEXT_1164); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1104); >+ stringBuffer.append(TEXT_1165); > stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1105); >+ stringBuffer.append(TEXT_1166); > stringBuffer.append(metaFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1106); >+ stringBuffer.append(TEXT_1167); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1107); >+ stringBuffer.append(TEXT_1168); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1108); >+ stringBuffer.append(TEXT_1169); > stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1109); >+ stringBuffer.append(TEXT_1170); > stringBuffer.append(metaFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1110); >+ stringBuffer.append(TEXT_1171); > > } > } > >- stringBuffer.append(TEXT_1111); >- stringBuffer.append(TEXT_1112); >+ stringBuffer.append(TEXT_1172); >+ stringBuffer.append(TEXT_1173); > > if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { > >- stringBuffer.append(TEXT_1113); >+ stringBuffer.append(TEXT_1174); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_1114); >+ stringBuffer.append(TEXT_1175); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_1115); >+ stringBuffer.append(TEXT_1176); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EClass")); >- stringBuffer.append(TEXT_1116); >+ stringBuffer.append(TEXT_1177); > > } > >@@ -5207,16 +5549,16 @@ > if (linkConstraints != null) { > String _edge = "edge"; > >- stringBuffer.append(TEXT_1117); >- stringBuffer.append(TEXT_1118); >+ stringBuffer.append(TEXT_1178); >+ stringBuffer.append(TEXT_1179); > > //input: _edge : String > >- stringBuffer.append(TEXT_1119); >+ stringBuffer.append(TEXT_1180); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_1120); >+ stringBuffer.append(TEXT_1181); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_1121); >+ stringBuffer.append(TEXT_1182); > > if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { > TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); >@@ -5243,221 +5585,221 @@ > } > } > >- stringBuffer.append(TEXT_1122); >+ stringBuffer.append(TEXT_1183); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_1123); >+ stringBuffer.append(TEXT_1184); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_1124); >+ stringBuffer.append(TEXT_1185); > > if (containmentFeature.getEcoreFeature().isMany()) { > >- stringBuffer.append(TEXT_1125); >+ stringBuffer.append(TEXT_1186); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_1126); >+ stringBuffer.append(TEXT_1187); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1127); >+ stringBuffer.append(TEXT_1188); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1128); >+ stringBuffer.append(TEXT_1189); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1129); >+ stringBuffer.append(TEXT_1190); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1130); >+ stringBuffer.append(TEXT_1191); > > } else { > >- stringBuffer.append(TEXT_1131); >+ stringBuffer.append(TEXT_1192); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1132); >+ stringBuffer.append(TEXT_1193); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1133); >+ stringBuffer.append(TEXT_1194); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1134); >+ stringBuffer.append(TEXT_1195); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1135); >+ stringBuffer.append(TEXT_1196); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1136); >+ stringBuffer.append(TEXT_1197); > > } > } else { > >- stringBuffer.append(TEXT_1137); >+ stringBuffer.append(TEXT_1198); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); >- stringBuffer.append(TEXT_1138); >+ stringBuffer.append(TEXT_1199); > > } > if (removeChild) { > if (childFeature.getEcoreFeature().isMany()) { > >- stringBuffer.append(TEXT_1139); >+ stringBuffer.append(TEXT_1200); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_1140); >+ stringBuffer.append(TEXT_1201); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1141); >+ stringBuffer.append(TEXT_1202); > stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1142); >+ stringBuffer.append(TEXT_1203); > stringBuffer.append(childFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1143); >+ stringBuffer.append(TEXT_1204); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1144); >+ stringBuffer.append(TEXT_1205); > > } else { > >- stringBuffer.append(TEXT_1145); >+ stringBuffer.append(TEXT_1206); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1146); >+ stringBuffer.append(TEXT_1207); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1147); >+ stringBuffer.append(TEXT_1208); > stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1148); >+ stringBuffer.append(TEXT_1209); > stringBuffer.append(childFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1149); >+ stringBuffer.append(TEXT_1210); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1150); >+ stringBuffer.append(TEXT_1211); > > } > } > if (removeSource) { > if (sourceFeature.getEcoreFeature().isMany()) { > >- stringBuffer.append(TEXT_1151); >+ stringBuffer.append(TEXT_1212); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_1152); >+ stringBuffer.append(TEXT_1213); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1153); >+ stringBuffer.append(TEXT_1214); > stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1154); >+ stringBuffer.append(TEXT_1215); > stringBuffer.append(sourceFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1155); >+ stringBuffer.append(TEXT_1216); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1156); >+ stringBuffer.append(TEXT_1217); > > } else { > >- stringBuffer.append(TEXT_1157); >+ stringBuffer.append(TEXT_1218); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1158); >+ stringBuffer.append(TEXT_1219); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1159); >+ stringBuffer.append(TEXT_1220); > stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1160); >+ stringBuffer.append(TEXT_1221); > stringBuffer.append(sourceFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1161); >+ stringBuffer.append(TEXT_1222); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1162); >+ stringBuffer.append(TEXT_1223); > > } > } > if (removeTarget) { > if (targetFeature.getEcoreFeature().isMany()) { > >- stringBuffer.append(TEXT_1163); >+ stringBuffer.append(TEXT_1224); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_1164); >+ stringBuffer.append(TEXT_1225); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1165); >+ stringBuffer.append(TEXT_1226); > stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1166); >+ stringBuffer.append(TEXT_1227); > stringBuffer.append(targetFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1167); >+ stringBuffer.append(TEXT_1228); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1168); >+ stringBuffer.append(TEXT_1229); > > } else { > >- stringBuffer.append(TEXT_1169); >+ stringBuffer.append(TEXT_1230); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1170); >+ stringBuffer.append(TEXT_1231); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1171); >+ stringBuffer.append(TEXT_1232); > stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1172); >+ stringBuffer.append(TEXT_1233); > stringBuffer.append(targetFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1173); >+ stringBuffer.append(TEXT_1234); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1174); >+ stringBuffer.append(TEXT_1235); > > } > } > >- stringBuffer.append(TEXT_1175); >+ stringBuffer.append(TEXT_1236); > > } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { > GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); > if (metaFeature.getEcoreFeature().isMany()) { > >- stringBuffer.append(TEXT_1176); >+ stringBuffer.append(TEXT_1237); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_1177); >+ stringBuffer.append(TEXT_1238); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1178); >+ stringBuffer.append(TEXT_1239); > stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1179); >+ stringBuffer.append(TEXT_1240); > stringBuffer.append(metaFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1180); >+ stringBuffer.append(TEXT_1241); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1181); >+ stringBuffer.append(TEXT_1242); > > } else { > >- stringBuffer.append(TEXT_1182); >+ stringBuffer.append(TEXT_1243); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1183); >+ stringBuffer.append(TEXT_1244); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1184); >+ stringBuffer.append(TEXT_1245); > stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1185); >+ stringBuffer.append(TEXT_1246); > stringBuffer.append(metaFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1186); >+ stringBuffer.append(TEXT_1247); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1187); >+ stringBuffer.append(TEXT_1248); > > } > > > } > >- stringBuffer.append(TEXT_1188); >+ stringBuffer.append(TEXT_1249); > > } > >- stringBuffer.append(TEXT_1189); >+ stringBuffer.append(TEXT_1250); > > if (palette != null) { > >- stringBuffer.append(TEXT_1190); >+ stringBuffer.append(TEXT_1251); > stringBuffer.append(createCommandNameInfix); > stringBuffer.append(genLink.getVisualID()); >- stringBuffer.append(TEXT_1191); >+ stringBuffer.append(TEXT_1252); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); >- stringBuffer.append(TEXT_1192); >+ stringBuffer.append(TEXT_1253); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_1193); >+ stringBuffer.append(TEXT_1254); > stringBuffer.append(createCommandNameInfix); > stringBuffer.append(genLink.getVisualID()); >- stringBuffer.append(TEXT_1194); >+ stringBuffer.append(TEXT_1255); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateConnectionRequestEx")); >- stringBuffer.append(TEXT_1195); >+ stringBuffer.append(TEXT_1256); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_1196); >+ stringBuffer.append(TEXT_1257); > > if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { > TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); > GenFeature containmentFeature = modelFacet.getContainmentMetaFeature(); > if (containmentFeature == null) { > >- stringBuffer.append(TEXT_1197); >+ stringBuffer.append(TEXT_1258); > > } else { > >- stringBuffer.append(TEXT_1198); >+ stringBuffer.append(TEXT_1259); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName())); >- stringBuffer.append(TEXT_1199); >+ stringBuffer.append(TEXT_1260); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getQualifiedInterfaceName())); >- stringBuffer.append(TEXT_1200); >+ stringBuffer.append(TEXT_1261); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1201); >+ stringBuffer.append(TEXT_1262); > stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName()); >- stringBuffer.append(TEXT_1202); >+ stringBuffer.append(TEXT_1263); > > { > GenFeature _feature = containmentFeature; >@@ -5465,29 +5807,29 @@ > String _exceedsUpperBound = "return false;"; > GenClass _ownerGenClass = containmentFeature.getGenClass(); > >- stringBuffer.append(TEXT_1203); >+ stringBuffer.append(TEXT_1264); > > int upperBound = _feature.getEcoreFeature().getUpperBound(); > if (upperBound > 0) { > if (upperBound == 1) { > >- stringBuffer.append(TEXT_1204); >+ stringBuffer.append(TEXT_1265); > myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >- stringBuffer.append(TEXT_1205); >+ stringBuffer.append(TEXT_1266); > stringBuffer.append(_exceedsUpperBound); >- stringBuffer.append(TEXT_1206); >+ stringBuffer.append(TEXT_1267); > > } else { > >- stringBuffer.append(TEXT_1207); >+ stringBuffer.append(TEXT_1268); > myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >- stringBuffer.append(TEXT_1208); >+ stringBuffer.append(TEXT_1269); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1209); >+ stringBuffer.append(TEXT_1270); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1210); >+ stringBuffer.append(TEXT_1271); > stringBuffer.append(_exceedsUpperBound); >- stringBuffer.append(TEXT_1211); >+ stringBuffer.append(TEXT_1272); > > } > } >@@ -5502,29 +5844,29 @@ > String _exceedsUpperBound = "return false;"; > GenClass _ownerGenClass = containmentFeature.getGenClass(); > >- stringBuffer.append(TEXT_1212); >+ stringBuffer.append(TEXT_1273); > > int upperBound = _feature.getEcoreFeature().getUpperBound(); > if (upperBound > 0) { > if (upperBound == 1) { > >- stringBuffer.append(TEXT_1213); >+ stringBuffer.append(TEXT_1274); > myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >- stringBuffer.append(TEXT_1214); >+ stringBuffer.append(TEXT_1275); > stringBuffer.append(_exceedsUpperBound); >- stringBuffer.append(TEXT_1215); >+ stringBuffer.append(TEXT_1276); > > } else { > >- stringBuffer.append(TEXT_1216); >+ stringBuffer.append(TEXT_1277); > myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >- stringBuffer.append(TEXT_1217); >+ stringBuffer.append(TEXT_1278); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1218); >+ stringBuffer.append(TEXT_1279); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1219); >+ stringBuffer.append(TEXT_1280); > stringBuffer.append(_exceedsUpperBound); >- stringBuffer.append(TEXT_1220); >+ stringBuffer.append(TEXT_1281); > > } > } >@@ -5532,28 +5874,66 @@ > > } > } >+ //Need to check the eOpposite() of the source feature >+ GenFeature sourceFeature = modelFacet.getSourceMetaFeature(); >+ GenFeature sourceReverseFeature = sourceFeature == null ? null : sourceFeature.getReverse(); >+ if (sourceReverseFeature != null && !sourceReverseFeature.isDerived() && sourceReverseFeature != containmentFeature && sourceReverseFeature != childFeature) { >+ GenFeature _feature = sourceReverseFeature; >+ String _ownerInstance = "source.getElement()"; >+ String _exceedsUpperBound = "return false;"; >+ GenClass _ownerGenClass = null; >+ >+ stringBuffer.append(TEXT_1282); >+ >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ >+ stringBuffer.append(TEXT_1283); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >+ stringBuffer.append(TEXT_1284); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_1285); >+ >+ } else { >+ >+ stringBuffer.append(TEXT_1286); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_1287); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_1288); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_1289); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_1290); >+ >+ } >+} >+ >+ >+ } > { > String _source = "source.getElement()"; > String _target = "null"; > >- stringBuffer.append(TEXT_1221); >+ stringBuffer.append(TEXT_1291); > > if (linkConstraints != null) { > >- stringBuffer.append(TEXT_1222); >+ stringBuffer.append(TEXT_1292); > stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); >- stringBuffer.append(TEXT_1223); >+ stringBuffer.append(TEXT_1293); > stringBuffer.append(_source); >- stringBuffer.append(TEXT_1224); >+ stringBuffer.append(TEXT_1294); > stringBuffer.append(_target); >- stringBuffer.append(TEXT_1225); >+ stringBuffer.append(TEXT_1295); > > } > > > } //local declarations for linkConstraints.jetinc > >- stringBuffer.append(TEXT_1226); >+ stringBuffer.append(TEXT_1296); > > } > } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { >@@ -5564,29 +5944,29 @@ > String _exceedsUpperBound = "return false;"; > GenClass _ownerGenClass = null; > >- stringBuffer.append(TEXT_1227); >+ stringBuffer.append(TEXT_1297); > > int upperBound = _feature.getEcoreFeature().getUpperBound(); > if (upperBound > 0) { > if (upperBound == 1) { > >- stringBuffer.append(TEXT_1228); >+ stringBuffer.append(TEXT_1298); > myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >- stringBuffer.append(TEXT_1229); >+ stringBuffer.append(TEXT_1299); > stringBuffer.append(_exceedsUpperBound); >- stringBuffer.append(TEXT_1230); >+ stringBuffer.append(TEXT_1300); > > } else { > >- stringBuffer.append(TEXT_1231); >+ stringBuffer.append(TEXT_1301); > myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >- stringBuffer.append(TEXT_1232); >+ stringBuffer.append(TEXT_1302); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1233); >+ stringBuffer.append(TEXT_1303); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1234); >+ stringBuffer.append(TEXT_1304); > stringBuffer.append(_exceedsUpperBound); >- stringBuffer.append(TEXT_1235); >+ stringBuffer.append(TEXT_1305); > > } > } >@@ -5597,47 +5977,47 @@ > String _source = "source.getElement()"; > String _target = "null"; > >- stringBuffer.append(TEXT_1236); >+ stringBuffer.append(TEXT_1306); > > if (linkConstraints != null) { > >- stringBuffer.append(TEXT_1237); >+ stringBuffer.append(TEXT_1307); > stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); >- stringBuffer.append(TEXT_1238); >+ stringBuffer.append(TEXT_1308); > stringBuffer.append(_source); >- stringBuffer.append(TEXT_1239); >+ stringBuffer.append(TEXT_1309); > stringBuffer.append(_target); >- stringBuffer.append(TEXT_1240); >+ stringBuffer.append(TEXT_1310); > > } > > > } //local declarations for linkConstraints.jetinc > >- stringBuffer.append(TEXT_1241); >+ stringBuffer.append(TEXT_1311); > > } else { > >- stringBuffer.append(TEXT_1242); >+ stringBuffer.append(TEXT_1312); > > } > >- stringBuffer.append(TEXT_1243); >- stringBuffer.append(TEXT_1244); >+ stringBuffer.append(TEXT_1313); >+ stringBuffer.append(TEXT_1314); > > if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { > >- stringBuffer.append(TEXT_1245); >+ stringBuffer.append(TEXT_1315); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_1246); >+ stringBuffer.append(TEXT_1316); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_1247); >+ stringBuffer.append(TEXT_1317); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EClass")); >- stringBuffer.append(TEXT_1248); >+ stringBuffer.append(TEXT_1318); > > } > >- stringBuffer.append(TEXT_1249); >+ stringBuffer.append(TEXT_1319); > > } //if there's palette > } //outgoing links >@@ -5667,205 +6047,282 @@ > } > GenLinkConstraints linkConstraints = genLink.getCreationConstraints(); > >- stringBuffer.append(TEXT_1250); >+ stringBuffer.append(TEXT_1320); > stringBuffer.append(reconnectCommandNameInfix); > stringBuffer.append(genLink.getVisualID()); >- stringBuffer.append(TEXT_1251); >+ stringBuffer.append(TEXT_1321); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); >- stringBuffer.append(TEXT_1252); >+ stringBuffer.append(TEXT_1322); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); >- stringBuffer.append(TEXT_1253); >+ stringBuffer.append(TEXT_1323); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_1254); >+ stringBuffer.append(TEXT_1324); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_1255); >+ stringBuffer.append(TEXT_1325); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_1256); >+ stringBuffer.append(TEXT_1326); > stringBuffer.append(reconnectCommandNameInfix); > stringBuffer.append(genLink.getVisualID()); >- stringBuffer.append(TEXT_1257); >+ stringBuffer.append(TEXT_1327); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.ReconnectRequest")); >- stringBuffer.append(TEXT_1258); >+ stringBuffer.append(TEXT_1328); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); >- stringBuffer.append(TEXT_1259); >+ stringBuffer.append(TEXT_1329); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_1260); >+ stringBuffer.append(TEXT_1330); > stringBuffer.append(reconnectCommandNameInfix); > stringBuffer.append(genLink.getVisualID()); >- stringBuffer.append(TEXT_1261); >+ stringBuffer.append(TEXT_1331); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); >- stringBuffer.append(TEXT_1262); >+ stringBuffer.append(TEXT_1332); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_1263); >+ stringBuffer.append(TEXT_1333); > > if (linkConstraints != null) { > >- stringBuffer.append(TEXT_1264); >+ stringBuffer.append(TEXT_1334); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_1265); >+ stringBuffer.append(TEXT_1335); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_1266); >+ stringBuffer.append(TEXT_1336); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_1267); >+ stringBuffer.append(TEXT_1337); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); >- stringBuffer.append(TEXT_1268); >+ stringBuffer.append(TEXT_1338); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_1269); >+ stringBuffer.append(TEXT_1339); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_1270); >+ stringBuffer.append(TEXT_1340); >+ >+ } else { >+ >+ stringBuffer.append(TEXT_1341); >+ >+ } >+ >+ stringBuffer.append(TEXT_1342); >+ >+ if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { >+ TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); >+ //Need to check the eOpposite() of the target feature >+ GenFeature targetFeature = modelFacet.getTargetMetaFeature(); >+ GenFeature targetReverseFeature = targetFeature == null ? null : targetFeature.getReverse(); >+ if (targetReverseFeature != null && !targetReverseFeature.isDerived()) { >+ GenFeature _feature = targetReverseFeature; >+ String _ownerInstance = "newTarget.getElement()"; >+ String _exceedsUpperBound = "return false;"; >+ GenClass _ownerGenClass = null; >+ >+ stringBuffer.append(TEXT_1343); >+ >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ >+ stringBuffer.append(TEXT_1344); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >+ stringBuffer.append(TEXT_1345); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_1346); > > } else { > >- stringBuffer.append(TEXT_1271); >+ stringBuffer.append(TEXT_1347); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_1348); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_1349); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_1350); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_1351); > > } >+} > >- stringBuffer.append(TEXT_1272); > >- if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { >+ } > { > String _source = "edge.getSource().getElement()"; > String _target = "newTarget.getElement()"; > >- stringBuffer.append(TEXT_1273); >+ stringBuffer.append(TEXT_1352); > > if (linkConstraints != null) { > >- stringBuffer.append(TEXT_1274); >+ stringBuffer.append(TEXT_1353); > stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); >- stringBuffer.append(TEXT_1275); >+ stringBuffer.append(TEXT_1354); > stringBuffer.append(_source); >- stringBuffer.append(TEXT_1276); >+ stringBuffer.append(TEXT_1355); > stringBuffer.append(_target); >- stringBuffer.append(TEXT_1277); >+ stringBuffer.append(TEXT_1356); > > } > > > } //local declarations for linkConstraints.jetinc > >- stringBuffer.append(TEXT_1278); >+ stringBuffer.append(TEXT_1357); > > } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { >+ //Need to check eOpposite() of the metaFeature >+ GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); >+ GenFeature reverseMetaFeature = metaFeature == null ? null : metaFeature.getReverse(); >+ if (reverseMetaFeature != null && !reverseMetaFeature.isDerived()) { >+ GenFeature _feature = reverseMetaFeature; >+ String _ownerInstance = "newTarget.getElement()"; >+ String _exceedsUpperBound = "return false;"; >+ GenClass _ownerGenClass = null; >+ >+ stringBuffer.append(TEXT_1358); >+ >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ >+ stringBuffer.append(TEXT_1359); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >+ stringBuffer.append(TEXT_1360); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_1361); >+ >+ } else { >+ >+ stringBuffer.append(TEXT_1362); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_1363); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_1364); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_1365); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_1366); >+ >+ } >+} >+ >+ >+ } > { > String _source = "edge.getSource().getElement()"; > String _target = "newTarget.getElement()"; > >- stringBuffer.append(TEXT_1279); >+ stringBuffer.append(TEXT_1367); > > if (linkConstraints != null) { > >- stringBuffer.append(TEXT_1280); >+ stringBuffer.append(TEXT_1368); > stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); >- stringBuffer.append(TEXT_1281); >+ stringBuffer.append(TEXT_1369); > stringBuffer.append(_source); >- stringBuffer.append(TEXT_1282); >+ stringBuffer.append(TEXT_1370); > stringBuffer.append(_target); >- stringBuffer.append(TEXT_1283); >+ stringBuffer.append(TEXT_1371); > > } > > > } //local declarations for linkConstraints.jetinc > >- stringBuffer.append(TEXT_1284); >+ stringBuffer.append(TEXT_1372); > > } else { > >- stringBuffer.append(TEXT_1285); >+ stringBuffer.append(TEXT_1373); > > } > >- stringBuffer.append(TEXT_1286); >+ stringBuffer.append(TEXT_1374); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_1287); >+ stringBuffer.append(TEXT_1375); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_1288); >+ stringBuffer.append(TEXT_1376); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_1289); >+ stringBuffer.append(TEXT_1377); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_1290); >+ stringBuffer.append(TEXT_1378); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_1291); >+ stringBuffer.append(TEXT_1379); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.ReconnectNotationalEdgeTargetCommand")); >- stringBuffer.append(TEXT_1292); >+ stringBuffer.append(TEXT_1380); > > if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { > TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); > GenFeature targetFeature = modelFacet.getTargetMetaFeature(); > if (targetFeature.getEcoreFeature().isMany()) { > >- stringBuffer.append(TEXT_1293); >+ stringBuffer.append(TEXT_1381); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_1294); >+ stringBuffer.append(TEXT_1382); > stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1295); >+ stringBuffer.append(TEXT_1383); > stringBuffer.append(targetFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1296); >+ stringBuffer.append(TEXT_1384); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); >- stringBuffer.append(TEXT_1297); >+ stringBuffer.append(TEXT_1385); > stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1298); >+ stringBuffer.append(TEXT_1386); > stringBuffer.append(targetFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1299); >+ stringBuffer.append(TEXT_1387); > > } else { > >- stringBuffer.append(TEXT_1300); >+ stringBuffer.append(TEXT_1388); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1301); >+ stringBuffer.append(TEXT_1389); > stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1302); >+ stringBuffer.append(TEXT_1390); > stringBuffer.append(targetFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1303); >+ stringBuffer.append(TEXT_1391); > > } > } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { > GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); > if (metaFeature.getEcoreFeature().isMany()) { > >- stringBuffer.append(TEXT_1304); >+ stringBuffer.append(TEXT_1392); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_1305); >+ stringBuffer.append(TEXT_1393); > stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1306); >+ stringBuffer.append(TEXT_1394); > stringBuffer.append(metaFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1307); >+ stringBuffer.append(TEXT_1395); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); >- stringBuffer.append(TEXT_1308); >+ stringBuffer.append(TEXT_1396); > stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1309); >+ stringBuffer.append(TEXT_1397); > stringBuffer.append(metaFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1310); >+ stringBuffer.append(TEXT_1398); > > } else { > >- stringBuffer.append(TEXT_1311); >+ stringBuffer.append(TEXT_1399); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1312); >+ stringBuffer.append(TEXT_1400); > stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1313); >+ stringBuffer.append(TEXT_1401); > stringBuffer.append(metaFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1314); >+ stringBuffer.append(TEXT_1402); > > } > } > >- stringBuffer.append(TEXT_1315); >+ stringBuffer.append(TEXT_1403); > > if (linkConstraints != null) { > String _edge = "edge"; > >- stringBuffer.append(TEXT_1316); >- stringBuffer.append(TEXT_1317); >+ stringBuffer.append(TEXT_1404); >+ stringBuffer.append(TEXT_1405); > > //input: _edge : String > >- stringBuffer.append(TEXT_1318); >+ stringBuffer.append(TEXT_1406); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_1319); >+ stringBuffer.append(TEXT_1407); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_1320); >+ stringBuffer.append(TEXT_1408); > > if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { > TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); >@@ -5892,264 +6349,264 @@ > } > } > >- stringBuffer.append(TEXT_1321); >+ stringBuffer.append(TEXT_1409); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_1322); >+ stringBuffer.append(TEXT_1410); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_1323); >+ stringBuffer.append(TEXT_1411); > > if (containmentFeature.getEcoreFeature().isMany()) { > >- stringBuffer.append(TEXT_1324); >+ stringBuffer.append(TEXT_1412); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_1325); >+ stringBuffer.append(TEXT_1413); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1326); >+ stringBuffer.append(TEXT_1414); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1327); >+ stringBuffer.append(TEXT_1415); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1328); >+ stringBuffer.append(TEXT_1416); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1329); >+ stringBuffer.append(TEXT_1417); > > } else { > >- stringBuffer.append(TEXT_1330); >+ stringBuffer.append(TEXT_1418); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1331); >+ stringBuffer.append(TEXT_1419); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1332); >+ stringBuffer.append(TEXT_1420); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1333); >+ stringBuffer.append(TEXT_1421); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1334); >+ stringBuffer.append(TEXT_1422); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1335); >+ stringBuffer.append(TEXT_1423); > > } > } else { > >- stringBuffer.append(TEXT_1336); >+ stringBuffer.append(TEXT_1424); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); >- stringBuffer.append(TEXT_1337); >+ stringBuffer.append(TEXT_1425); > > } > if (removeChild) { > if (childFeature.getEcoreFeature().isMany()) { > >- stringBuffer.append(TEXT_1338); >+ stringBuffer.append(TEXT_1426); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_1339); >+ stringBuffer.append(TEXT_1427); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1340); >+ stringBuffer.append(TEXT_1428); > stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1341); >+ stringBuffer.append(TEXT_1429); > stringBuffer.append(childFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1342); >+ stringBuffer.append(TEXT_1430); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1343); >+ stringBuffer.append(TEXT_1431); > > } else { > >- stringBuffer.append(TEXT_1344); >+ stringBuffer.append(TEXT_1432); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1345); >+ stringBuffer.append(TEXT_1433); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1346); >+ stringBuffer.append(TEXT_1434); > stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1347); >+ stringBuffer.append(TEXT_1435); > stringBuffer.append(childFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1348); >+ stringBuffer.append(TEXT_1436); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1349); >+ stringBuffer.append(TEXT_1437); > > } > } > if (removeSource) { > if (sourceFeature.getEcoreFeature().isMany()) { > >- stringBuffer.append(TEXT_1350); >+ stringBuffer.append(TEXT_1438); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_1351); >+ stringBuffer.append(TEXT_1439); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1352); >+ stringBuffer.append(TEXT_1440); > stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1353); >+ stringBuffer.append(TEXT_1441); > stringBuffer.append(sourceFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1354); >+ stringBuffer.append(TEXT_1442); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1355); >+ stringBuffer.append(TEXT_1443); > > } else { > >- stringBuffer.append(TEXT_1356); >+ stringBuffer.append(TEXT_1444); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1357); >+ stringBuffer.append(TEXT_1445); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1358); >+ stringBuffer.append(TEXT_1446); > stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1359); >+ stringBuffer.append(TEXT_1447); > stringBuffer.append(sourceFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1360); >+ stringBuffer.append(TEXT_1448); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1361); >+ stringBuffer.append(TEXT_1449); > > } > } > if (removeTarget) { > if (targetFeature.getEcoreFeature().isMany()) { > >- stringBuffer.append(TEXT_1362); >+ stringBuffer.append(TEXT_1450); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_1363); >+ stringBuffer.append(TEXT_1451); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1364); >+ stringBuffer.append(TEXT_1452); > stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1365); >+ stringBuffer.append(TEXT_1453); > stringBuffer.append(targetFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1366); >+ stringBuffer.append(TEXT_1454); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1367); >+ stringBuffer.append(TEXT_1455); > > } else { > >- stringBuffer.append(TEXT_1368); >+ stringBuffer.append(TEXT_1456); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1369); >+ stringBuffer.append(TEXT_1457); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1370); >+ stringBuffer.append(TEXT_1458); > stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1371); >+ stringBuffer.append(TEXT_1459); > stringBuffer.append(targetFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1372); >+ stringBuffer.append(TEXT_1460); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1373); >+ stringBuffer.append(TEXT_1461); > > } > } > >- stringBuffer.append(TEXT_1374); >+ stringBuffer.append(TEXT_1462); > > } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { > GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); > if (metaFeature.getEcoreFeature().isMany()) { > >- stringBuffer.append(TEXT_1375); >+ stringBuffer.append(TEXT_1463); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_1376); >+ stringBuffer.append(TEXT_1464); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1377); >+ stringBuffer.append(TEXT_1465); > stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1378); >+ stringBuffer.append(TEXT_1466); > stringBuffer.append(metaFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1379); >+ stringBuffer.append(TEXT_1467); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1380); >+ stringBuffer.append(TEXT_1468); > > } else { > >- stringBuffer.append(TEXT_1381); >+ stringBuffer.append(TEXT_1469); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1382); >+ stringBuffer.append(TEXT_1470); > stringBuffer.append(_edge); >- stringBuffer.append(TEXT_1383); >+ stringBuffer.append(TEXT_1471); > stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1384); >+ stringBuffer.append(TEXT_1472); > stringBuffer.append(metaFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1385); >+ stringBuffer.append(TEXT_1473); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1386); >+ stringBuffer.append(TEXT_1474); > > } > > > } > >- stringBuffer.append(TEXT_1387); >+ stringBuffer.append(TEXT_1475); > > } > >- stringBuffer.append(TEXT_1388); >+ stringBuffer.append(TEXT_1476); > > if (palette != null) { > >- stringBuffer.append(TEXT_1389); >+ stringBuffer.append(TEXT_1477); > stringBuffer.append(createCommandNameInfix); > stringBuffer.append(genLink.getVisualID()); >- stringBuffer.append(TEXT_1390); >+ stringBuffer.append(TEXT_1478); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.AbstractCommand")); >- stringBuffer.append(TEXT_1391); >+ stringBuffer.append(TEXT_1479); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_1392); >+ stringBuffer.append(TEXT_1480); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_1393); >+ stringBuffer.append(TEXT_1481); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); >- stringBuffer.append(TEXT_1394); >+ stringBuffer.append(TEXT_1482); > stringBuffer.append(createCommandNameInfix); > stringBuffer.append(genLink.getVisualID()); >- stringBuffer.append(TEXT_1395); >+ stringBuffer.append(TEXT_1483); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.requests.CreateConnectionRequestEx")); >- stringBuffer.append(TEXT_1396); >+ stringBuffer.append(TEXT_1484); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_1397); >+ stringBuffer.append(TEXT_1485); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_1398); >+ stringBuffer.append(TEXT_1486); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_1399); >+ stringBuffer.append(TEXT_1487); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_1400); >+ stringBuffer.append(TEXT_1488); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); >- stringBuffer.append(TEXT_1401); >+ stringBuffer.append(TEXT_1489); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); >- stringBuffer.append(TEXT_1402); >+ stringBuffer.append(TEXT_1490); > > if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { > TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); > GenClass linkClass = modelFacet.getMetaClass(); > >- stringBuffer.append(TEXT_1403); >+ stringBuffer.append(TEXT_1491); > stringBuffer.append(importManager.getImportedName(importManager.getImportedName(linkClass.getQualifiedInterfaceName()))); >- stringBuffer.append(TEXT_1404); >+ stringBuffer.append(TEXT_1492); > stringBuffer.append(importManager.getImportedName(linkClass.getGenPackage().getQualifiedFactoryInterfaceName())); >- stringBuffer.append(TEXT_1405); >+ stringBuffer.append(TEXT_1493); > stringBuffer.append(linkClass.getClassifierAccessorName()); >- stringBuffer.append(TEXT_1406); >+ stringBuffer.append(TEXT_1494); > if (linkClass.isExternalInterface()) { >- stringBuffer.append(TEXT_1407); >+ stringBuffer.append(TEXT_1495); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_1408); >+ stringBuffer.append(TEXT_1496); > } >- stringBuffer.append(TEXT_1409); >+ stringBuffer.append(TEXT_1497); > /*XXX: Class name DomainElementInitializer should be user-customizable*/ >- stringBuffer.append(TEXT_1410); >+ stringBuffer.append(TEXT_1498); > stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")); >- stringBuffer.append(TEXT_1411); >+ stringBuffer.append(TEXT_1499); > stringBuffer.append(genLink.getUniqueIdentifier()); >- stringBuffer.append(TEXT_1412); >+ stringBuffer.append(TEXT_1500); > if (linkClass.isExternalInterface()) { >- stringBuffer.append(TEXT_1413); >+ stringBuffer.append(TEXT_1501); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_1414); >+ stringBuffer.append(TEXT_1502); > } >- stringBuffer.append(TEXT_1415); >+ stringBuffer.append(TEXT_1503); > > } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { > >- stringBuffer.append(TEXT_1416); >+ stringBuffer.append(TEXT_1504); > > } > >- stringBuffer.append(TEXT_1417); >+ stringBuffer.append(TEXT_1505); > stringBuffer.append(importManager.getImportedName(genLink.getNotationViewFactoryQualifiedClassName())); >- stringBuffer.append(TEXT_1418); >+ stringBuffer.append(TEXT_1506); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_1419); >+ stringBuffer.append(TEXT_1507); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_1420); >+ stringBuffer.append(TEXT_1508); > > if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { > >- stringBuffer.append(TEXT_1421); >+ stringBuffer.append(TEXT_1509); > > TypeLinkModelFacet modelFacet = (TypeLinkModelFacet) genLink.getModelFacet(); > GenFeature sourceFeature = modelFacet.getSourceMetaFeature(); >@@ -6176,30 +6633,30 @@ > } > } > >- stringBuffer.append(TEXT_1422); >+ stringBuffer.append(TEXT_1510); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_1423); >+ stringBuffer.append(TEXT_1511); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenClass().getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1424); >+ stringBuffer.append(TEXT_1512); > stringBuffer.append(containmentFeature.getGenClass().getClassifierAccessorName()); >- stringBuffer.append(TEXT_1425); >+ stringBuffer.append(TEXT_1513); > stringBuffer.append(importManager.getImportedName(containmentFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1426); >+ stringBuffer.append(TEXT_1514); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1427); >+ stringBuffer.append(TEXT_1515); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1428); >+ stringBuffer.append(TEXT_1516); > > } > if (addChild) { > >- stringBuffer.append(TEXT_1429); >+ stringBuffer.append(TEXT_1517); > stringBuffer.append(importManager.getImportedName(childFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1430); >+ stringBuffer.append(TEXT_1518); > stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1431); >+ stringBuffer.append(TEXT_1519); > stringBuffer.append(childFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1432); >+ stringBuffer.append(TEXT_1520); > > } > if (addSource) { >@@ -6209,29 +6666,29 @@ > String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;"; > GenClass _ownerGenClass = modelFacet.getMetaClass(); > >- stringBuffer.append(TEXT_1433); >+ stringBuffer.append(TEXT_1521); > > int upperBound = _feature.getEcoreFeature().getUpperBound(); > if (upperBound > 0) { > if (upperBound == 1) { > >- stringBuffer.append(TEXT_1434); >+ stringBuffer.append(TEXT_1522); > myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >- stringBuffer.append(TEXT_1435); >+ stringBuffer.append(TEXT_1523); > stringBuffer.append(_exceedsUpperBound); >- stringBuffer.append(TEXT_1436); >+ stringBuffer.append(TEXT_1524); > > } else { > >- stringBuffer.append(TEXT_1437); >+ stringBuffer.append(TEXT_1525); > myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >- stringBuffer.append(TEXT_1438); >+ stringBuffer.append(TEXT_1526); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1439); >+ stringBuffer.append(TEXT_1527); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1440); >+ stringBuffer.append(TEXT_1528); > stringBuffer.append(_exceedsUpperBound); >- stringBuffer.append(TEXT_1441); >+ stringBuffer.append(TEXT_1529); > > } > } >@@ -6239,13 +6696,13 @@ > > } > >- stringBuffer.append(TEXT_1442); >+ stringBuffer.append(TEXT_1530); > stringBuffer.append(importManager.getImportedName(sourceFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1443); >+ stringBuffer.append(TEXT_1531); > stringBuffer.append(importManager.getImportedName(sourceFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1444); >+ stringBuffer.append(TEXT_1532); > stringBuffer.append(sourceFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1445); >+ stringBuffer.append(TEXT_1533); > > } > if (addTarget) { >@@ -6255,100 +6712,174 @@ > String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;"; > GenClass _ownerGenClass = modelFacet.getMetaClass(); > >- stringBuffer.append(TEXT_1446); >+ stringBuffer.append(TEXT_1534); > > int upperBound = _feature.getEcoreFeature().getUpperBound(); > if (upperBound > 0) { > if (upperBound == 1) { > >- stringBuffer.append(TEXT_1447); >+ stringBuffer.append(TEXT_1535); > myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >- stringBuffer.append(TEXT_1448); >+ stringBuffer.append(TEXT_1536); > stringBuffer.append(_exceedsUpperBound); >- stringBuffer.append(TEXT_1449); >+ stringBuffer.append(TEXT_1537); > > } else { > >- stringBuffer.append(TEXT_1450); >+ stringBuffer.append(TEXT_1538); > myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >- stringBuffer.append(TEXT_1451); >+ stringBuffer.append(TEXT_1539); > stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1452); >+ stringBuffer.append(TEXT_1540); > stringBuffer.append(_feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1453); >+ stringBuffer.append(TEXT_1541); > stringBuffer.append(_exceedsUpperBound); >- stringBuffer.append(TEXT_1454); >+ stringBuffer.append(TEXT_1542); > > } > } > > > } >+ //Need to check the eOpposite() of the target feature >+ GenFeature targetReverseFeature = targetFeature == null ? null : targetFeature.getReverse(); >+ if (targetReverseFeature != null && !targetReverseFeature.isDerived()) { >+ GenFeature _feature = targetReverseFeature; >+ String _ownerInstance = "target.getElement()"; >+ String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;"; >+ GenClass _ownerGenClass = null; > >- stringBuffer.append(TEXT_1455); >+ stringBuffer.append(TEXT_1543); >+ >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ >+ stringBuffer.append(TEXT_1544); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >+ stringBuffer.append(TEXT_1545); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_1546); >+ >+ } else { >+ >+ stringBuffer.append(TEXT_1547); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_1548); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_1549); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_1550); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_1551); >+ >+ } >+} >+ >+ >+ } >+ >+ stringBuffer.append(TEXT_1552); > stringBuffer.append(importManager.getImportedName(targetFeature.getEcoreFeature().isMany() ? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1456); >+ stringBuffer.append(TEXT_1553); > stringBuffer.append(importManager.getImportedName(targetFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1457); >+ stringBuffer.append(TEXT_1554); > stringBuffer.append(targetFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1458); >+ stringBuffer.append(TEXT_1555); > > } > >- stringBuffer.append(TEXT_1459); >+ stringBuffer.append(TEXT_1556); > > } else if (genLink.getModelFacet() instanceof FeatureModelFacet) { > GenFeature metaFeature = ((FeatureModelFacet) genLink.getModelFacet()).getMetaFeature(); >+ //Need to check eOpposite() of the metaFeature >+ GenFeature reverseMetaFeature = metaFeature == null ? null : metaFeature.getReverse(); >+ if (reverseMetaFeature != null && !reverseMetaFeature.isDerived()) { >+ GenFeature _feature = reverseMetaFeature; >+ String _ownerInstance = "target.getElement()"; >+ String _exceedsUpperBound = "domainModelAddCommand = null;\nreturn;"; >+ GenClass _ownerGenClass = null; > >- stringBuffer.append(TEXT_1460); >+ stringBuffer.append(TEXT_1557); >+ >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+ >+ stringBuffer.append(TEXT_1558); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false); >+ stringBuffer.append(TEXT_1559); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_1560); >+ >+ } else { >+ >+ stringBuffer.append(TEXT_1561); >+ myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true); >+ stringBuffer.append(TEXT_1562); >+ stringBuffer.append(importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())); >+ stringBuffer.append(TEXT_1563); >+ stringBuffer.append(_feature.getFeatureAccessorName()); >+ stringBuffer.append(TEXT_1564); >+ stringBuffer.append(_exceedsUpperBound); >+ stringBuffer.append(TEXT_1565); >+ >+ } >+} >+ >+ >+ } >+ >+ stringBuffer.append(TEXT_1566); > stringBuffer.append(importManager.getImportedName(metaFeature.getEcoreFeature().isMany()? "org.eclipse.emf.edit.command.AddCommand" : "org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1461); >+ stringBuffer.append(TEXT_1567); > stringBuffer.append(importManager.getImportedName(metaFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1462); >+ stringBuffer.append(TEXT_1568); > stringBuffer.append(metaFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1463); >+ stringBuffer.append(TEXT_1569); > > } > >- stringBuffer.append(TEXT_1464); >- stringBuffer.append(TEXT_1465); >+ stringBuffer.append(TEXT_1570); >+ stringBuffer.append(TEXT_1571); > > if (genLink.getModelFacet() instanceof TypeLinkModelFacet) { > >- stringBuffer.append(TEXT_1466); >+ stringBuffer.append(TEXT_1572); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_1467); >+ stringBuffer.append(TEXT_1573); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); >- stringBuffer.append(TEXT_1468); >+ stringBuffer.append(TEXT_1574); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EClass")); >- stringBuffer.append(TEXT_1469); >+ stringBuffer.append(TEXT_1575); > > } > >- stringBuffer.append(TEXT_1470); >+ stringBuffer.append(TEXT_1576); > > { > String _source = "source.getElement()"; > String _target = "target.getElement()"; > >- stringBuffer.append(TEXT_1471); >+ stringBuffer.append(TEXT_1577); > > if (linkConstraints != null) { > >- stringBuffer.append(TEXT_1472); >+ stringBuffer.append(TEXT_1578); > stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoriesPackageName() + ".DomainElementInitializer")+"."+genDiagram.getLinkCreationConstraintsClassName()+"."+linkConstraints.getConstraintsInstanceFieldName()); >- stringBuffer.append(TEXT_1473); >+ stringBuffer.append(TEXT_1579); > stringBuffer.append(_source); >- stringBuffer.append(TEXT_1474); >+ stringBuffer.append(TEXT_1580); > stringBuffer.append(_target); >- stringBuffer.append(TEXT_1475); >+ stringBuffer.append(TEXT_1581); > > } > > > } //local declarations for linkConstraints.jetinc > >- stringBuffer.append(TEXT_1476); >+ stringBuffer.append(TEXT_1582); > > } > >@@ -6357,48 +6888,48 @@ > if (genNode.getViewmap() instanceof InnerClassViewmap) { > String classBody = ((InnerClassViewmap) genNode.getViewmap()).getClassBody(); > >- stringBuffer.append(TEXT_1477); >+ stringBuffer.append(TEXT_1583); > stringBuffer.append(classBody); >- stringBuffer.append(TEXT_1478); >+ stringBuffer.append(TEXT_1584); > > if (classBody.indexOf("DPtoLP") != -1) { > >- stringBuffer.append(TEXT_1479); >+ stringBuffer.append(TEXT_1585); > > } > > > } > >- stringBuffer.append(TEXT_1480); >+ stringBuffer.append(TEXT_1586); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.tree.BaseTreeEditPart")); >- stringBuffer.append(TEXT_1481); >+ stringBuffer.append(TEXT_1587); > stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); >- stringBuffer.append(TEXT_1482); >- stringBuffer.append(TEXT_1483); >- stringBuffer.append(TEXT_1484); >+ stringBuffer.append(TEXT_1588); >+ stringBuffer.append(TEXT_1589); >+ stringBuffer.append(TEXT_1590); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); >- stringBuffer.append(TEXT_1485); >+ stringBuffer.append(TEXT_1591); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ComponentEditPolicy")); >- stringBuffer.append(TEXT_1486); >+ stringBuffer.append(TEXT_1592); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); >- stringBuffer.append(TEXT_1487); >+ stringBuffer.append(TEXT_1593); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.GroupRequest")); >- stringBuffer.append(TEXT_1488); >+ stringBuffer.append(TEXT_1594); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_1489); >+ stringBuffer.append(TEXT_1595); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_1490); >+ stringBuffer.append(TEXT_1596); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_1491); >+ stringBuffer.append(TEXT_1597); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_1492); >+ stringBuffer.append(TEXT_1598); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_1493); >+ stringBuffer.append(TEXT_1599); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_1494); >+ stringBuffer.append(TEXT_1600); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_1495); >+ stringBuffer.append(TEXT_1601); > > { > TypeModelFacet facet = genNode.getModelFacet(); >@@ -6406,90 +6937,90 @@ > GenFeature containmentFeature = facet.getContainmentMetaFeature(); > if (childFeature != null && childFeature != containmentFeature && !childFeature.isDerived()) { > >- stringBuffer.append(TEXT_1496); >+ stringBuffer.append(TEXT_1602); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_1497); >+ stringBuffer.append(TEXT_1603); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_1498); >+ stringBuffer.append(TEXT_1604); > > if (containmentFeature.getEcoreFeature().isMany()) { > >- stringBuffer.append(TEXT_1499); >+ stringBuffer.append(TEXT_1605); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_1500); >+ stringBuffer.append(TEXT_1606); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1501); >+ stringBuffer.append(TEXT_1607); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1502); >+ stringBuffer.append(TEXT_1608); > > } else { > >- stringBuffer.append(TEXT_1503); >+ stringBuffer.append(TEXT_1609); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1504); >+ stringBuffer.append(TEXT_1610); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1505); >+ stringBuffer.append(TEXT_1611); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1506); >+ stringBuffer.append(TEXT_1612); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1507); >+ stringBuffer.append(TEXT_1613); > > } > > > if (childFeature.getEcoreFeature().isMany()) { > >- stringBuffer.append(TEXT_1508); >+ stringBuffer.append(TEXT_1614); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_1509); >+ stringBuffer.append(TEXT_1615); > stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1510); >+ stringBuffer.append(TEXT_1616); > stringBuffer.append(childFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1511); >+ stringBuffer.append(TEXT_1617); > > } else { > >- stringBuffer.append(TEXT_1512); >+ stringBuffer.append(TEXT_1618); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1513); >+ stringBuffer.append(TEXT_1619); > stringBuffer.append(importManager.getImportedName(childFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1514); >+ stringBuffer.append(TEXT_1620); > stringBuffer.append(childFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1515); >+ stringBuffer.append(TEXT_1621); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1516); >+ stringBuffer.append(TEXT_1622); > > } > >- stringBuffer.append(TEXT_1517); >+ stringBuffer.append(TEXT_1623); > > } else { > if (containmentFeature.getEcoreFeature().isMany()) { > >- stringBuffer.append(TEXT_1518); >+ stringBuffer.append(TEXT_1624); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_1519); >+ stringBuffer.append(TEXT_1625); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1520); >+ stringBuffer.append(TEXT_1626); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1521); >+ stringBuffer.append(TEXT_1627); > > } else { > >- stringBuffer.append(TEXT_1522); >+ stringBuffer.append(TEXT_1628); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1523); >+ stringBuffer.append(TEXT_1629); > stringBuffer.append(importManager.getImportedName(containmentFeature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1524); >+ stringBuffer.append(TEXT_1630); > stringBuffer.append(containmentFeature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1525); >+ stringBuffer.append(TEXT_1631); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1526); >+ stringBuffer.append(TEXT_1632); > > } > } > >- stringBuffer.append(TEXT_1527); >+ stringBuffer.append(TEXT_1633); > > } /*restrict local vars used in component edit policy*/ > >@@ -6500,271 +7031,271 @@ > LabelModelFacet labelModelFacet = myHelper.getPrimaryLabel().getModelFacet(); > GenClass underlyingMetaClass = genNode.getDomainMetaClass(); > >- stringBuffer.append(TEXT_1528); >- stringBuffer.append(TEXT_1529); >+ stringBuffer.append(TEXT_1634); >+ stringBuffer.append(TEXT_1635); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); >- stringBuffer.append(TEXT_1530); >+ stringBuffer.append(TEXT_1636); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.DirectEditPolicy")); >- stringBuffer.append(TEXT_1531); >+ stringBuffer.append(TEXT_1637); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); >- stringBuffer.append(TEXT_1532); >- stringBuffer.append(TEXT_1533); >- stringBuffer.append(TEXT_1534); >+ stringBuffer.append(TEXT_1638); >+ stringBuffer.append(TEXT_1639); >+ stringBuffer.append(TEXT_1640); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); >- stringBuffer.append(TEXT_1535); >+ stringBuffer.append(TEXT_1641); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); >- stringBuffer.append(TEXT_1536); >+ stringBuffer.append(TEXT_1642); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_1537); >+ stringBuffer.append(TEXT_1643); > stringBuffer.append(importManager.getImportedName("java.text.MessageFormat")); >- stringBuffer.append(TEXT_1538); >+ stringBuffer.append(TEXT_1644); > stringBuffer.append(editPatternCode); >- stringBuffer.append(TEXT_1539); >+ stringBuffer.append(TEXT_1645); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_1540); >+ stringBuffer.append(TEXT_1646); > stringBuffer.append(importManager.getImportedName("java.text.ParseException")); >- stringBuffer.append(TEXT_1541); >+ stringBuffer.append(TEXT_1647); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_1542); >+ stringBuffer.append(TEXT_1648); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_1543); >+ stringBuffer.append(TEXT_1649); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); >- stringBuffer.append(TEXT_1544); >+ stringBuffer.append(TEXT_1650); > stringBuffer.append(primaryView); >- stringBuffer.append(TEXT_1545); >+ stringBuffer.append(TEXT_1651); > > if (labelModelFacet instanceof FeatureLabelModelFacet) { > GenFeature featureToSet = ((FeatureLabelModelFacet)labelModelFacet).getMetaFeature(); > EStructuralFeature ecoreFeature = featureToSet.getEcoreFeature(); > >- stringBuffer.append(TEXT_1546); >+ stringBuffer.append(TEXT_1652); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_1547); >+ stringBuffer.append(TEXT_1653); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_1548); >+ stringBuffer.append(TEXT_1654); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_1549); >+ stringBuffer.append(TEXT_1655); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_1550); >+ stringBuffer.append(TEXT_1656); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_1551); >+ stringBuffer.append(TEXT_1657); > stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); >- stringBuffer.append(TEXT_1552); >+ stringBuffer.append(TEXT_1658); > stringBuffer.append(resolvedSemanticElement); >- stringBuffer.append(TEXT_1553); >+ stringBuffer.append(TEXT_1659); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); >- stringBuffer.append(TEXT_1554); >+ stringBuffer.append(TEXT_1660); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); >- stringBuffer.append(TEXT_1555); >+ stringBuffer.append(TEXT_1661); > stringBuffer.append(importManager.getImportedName(featureToSet.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1556); >+ stringBuffer.append(TEXT_1662); > stringBuffer.append(featureToSet.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1557); >+ stringBuffer.append(TEXT_1663); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.ParserUtil")); >- stringBuffer.append(TEXT_1558); >+ stringBuffer.append(TEXT_1664); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); >- stringBuffer.append(TEXT_1559); >+ stringBuffer.append(TEXT_1665); > > if (ecoreFeature.isMany()) { > >- stringBuffer.append(TEXT_1560); >+ stringBuffer.append(TEXT_1666); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_1561); >+ stringBuffer.append(TEXT_1667); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_1562); >+ stringBuffer.append(TEXT_1668); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.EList")); >- stringBuffer.append(TEXT_1563); >+ stringBuffer.append(TEXT_1669); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.BasicEList")); >- stringBuffer.append(TEXT_1564); >+ stringBuffer.append(TEXT_1670); > stringBuffer.append(featureToSet.getAccessorName()); >- stringBuffer.append(TEXT_1565); >+ stringBuffer.append(TEXT_1671); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_1566); >+ stringBuffer.append(TEXT_1672); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); >- stringBuffer.append(TEXT_1567); >+ stringBuffer.append(TEXT_1673); > > } else { > >- stringBuffer.append(TEXT_1568); >+ stringBuffer.append(TEXT_1674); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1569); >+ stringBuffer.append(TEXT_1675); > > } > >- stringBuffer.append(TEXT_1570); >+ stringBuffer.append(TEXT_1676); > > } else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { > CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; > List metaFeatures = compositeFeatureLabelModelFacet.getMetaFeatures(); > >- stringBuffer.append(TEXT_1571); >+ stringBuffer.append(TEXT_1677); > stringBuffer.append(metaFeatures.size()); >- stringBuffer.append(TEXT_1572); >+ stringBuffer.append(TEXT_1678); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); >- stringBuffer.append(TEXT_1573); >+ stringBuffer.append(TEXT_1679); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_1574); >+ stringBuffer.append(TEXT_1680); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); >- stringBuffer.append(TEXT_1575); >+ stringBuffer.append(TEXT_1681); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); >- stringBuffer.append(TEXT_1576); >+ stringBuffer.append(TEXT_1682); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); >- stringBuffer.append(TEXT_1577); >+ stringBuffer.append(TEXT_1683); > stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); >- stringBuffer.append(TEXT_1578); >+ stringBuffer.append(TEXT_1684); > stringBuffer.append(resolvedSemanticElement); >- stringBuffer.append(TEXT_1579); >+ stringBuffer.append(TEXT_1685); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_1580); >+ stringBuffer.append(TEXT_1686); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); >- stringBuffer.append(TEXT_1581); >+ stringBuffer.append(TEXT_1687); > > boolean haveDeclaredValues = false; > for(int i = 0; i < metaFeatures.size(); i++) { > GenFeature nextFeatureToSet = (GenFeature) metaFeatures.get(i); > EStructuralFeature nextEcoreFeature = nextFeatureToSet.getEcoreFeature(); > >- stringBuffer.append(TEXT_1582); >+ stringBuffer.append(TEXT_1688); > if (i == 0) { > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); >- stringBuffer.append(TEXT_1583); >+ stringBuffer.append(TEXT_1689); > } >- stringBuffer.append(TEXT_1584); >+ stringBuffer.append(TEXT_1690); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); >- stringBuffer.append(TEXT_1585); >+ stringBuffer.append(TEXT_1691); > stringBuffer.append(importManager.getImportedName(nextFeatureToSet.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1586); >+ stringBuffer.append(TEXT_1692); > stringBuffer.append(nextFeatureToSet.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1587); >+ stringBuffer.append(TEXT_1693); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.ParserUtil")); >- stringBuffer.append(TEXT_1588); >+ stringBuffer.append(TEXT_1694); > stringBuffer.append(i); >- stringBuffer.append(TEXT_1589); >+ stringBuffer.append(TEXT_1695); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); >- stringBuffer.append(TEXT_1590); >+ stringBuffer.append(TEXT_1696); > > if (nextEcoreFeature.isMany()) { > >- stringBuffer.append(TEXT_1591); >+ stringBuffer.append(TEXT_1697); > if (!haveDeclaredValues) { haveDeclaredValues = true; > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.EList")); >- stringBuffer.append(TEXT_1592); >+ stringBuffer.append(TEXT_1698); > } >- stringBuffer.append(TEXT_1593); >+ stringBuffer.append(TEXT_1699); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.BasicEList")); >- stringBuffer.append(TEXT_1594); >+ stringBuffer.append(TEXT_1700); > stringBuffer.append(nextFeatureToSet.getAccessorName()); >- stringBuffer.append(TEXT_1595); >+ stringBuffer.append(TEXT_1701); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); >- stringBuffer.append(TEXT_1596); >+ stringBuffer.append(TEXT_1702); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); >- stringBuffer.append(TEXT_1597); >+ stringBuffer.append(TEXT_1703); > > } else { > >- stringBuffer.append(TEXT_1598); >+ stringBuffer.append(TEXT_1704); > stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); >- stringBuffer.append(TEXT_1599); >+ stringBuffer.append(TEXT_1705); > > } > > > } > >- stringBuffer.append(TEXT_1600); >+ stringBuffer.append(TEXT_1706); > > } > >- stringBuffer.append(TEXT_1601); >+ stringBuffer.append(TEXT_1707); > > } > >- stringBuffer.append(TEXT_1602); >+ stringBuffer.append(TEXT_1708); > > if (myHelper.getPrimaryLabel() != null) { > >- stringBuffer.append(TEXT_1603); >- stringBuffer.append(TEXT_1604); >+ stringBuffer.append(TEXT_1709); >+ stringBuffer.append(TEXT_1710); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.TreeDirectEditManager")); >- stringBuffer.append(TEXT_1605); >+ stringBuffer.append(TEXT_1711); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); >- stringBuffer.append(TEXT_1606); >+ stringBuffer.append(TEXT_1712); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); >- stringBuffer.append(TEXT_1607); >+ stringBuffer.append(TEXT_1713); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.TreeDirectEditManager")); >- stringBuffer.append(TEXT_1608); >+ stringBuffer.append(TEXT_1714); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.TreeDirectEditManager")); >- stringBuffer.append(TEXT_1609); >+ stringBuffer.append(TEXT_1715); > stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TextCellEditor")); >- stringBuffer.append(TEXT_1610); >+ stringBuffer.append(TEXT_1716); > stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.CellEditorLocator")); >- stringBuffer.append(TEXT_1611); >+ stringBuffer.append(TEXT_1717); > stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.CellEditor")); >- stringBuffer.append(TEXT_1612); >+ stringBuffer.append(TEXT_1718); > stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.TreeItem")); >- stringBuffer.append(TEXT_1613); >+ stringBuffer.append(TEXT_1719); > stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.TreeItem")); >- stringBuffer.append(TEXT_1614); >+ stringBuffer.append(TEXT_1720); > stringBuffer.append(importManager.getImportedName(myHelper.getPrimaryLabel().getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_1615); >+ stringBuffer.append(TEXT_1721); > > } > >- stringBuffer.append(TEXT_1616); >- stringBuffer.append(TEXT_1617); >- stringBuffer.append(TEXT_1618); >+ stringBuffer.append(TEXT_1722); >+ stringBuffer.append(TEXT_1723); >+ stringBuffer.append(TEXT_1724); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter")); >- stringBuffer.append(TEXT_1619); >+ stringBuffer.append(TEXT_1725); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.RefreshAdapter")); >- stringBuffer.append(TEXT_1620); >+ stringBuffer.append(TEXT_1726); > > if (myHelper.getPrimaryLabel() != null) { > >- stringBuffer.append(TEXT_1621); >+ stringBuffer.append(TEXT_1727); > stringBuffer.append(importManager.getImportedName(myHelper.getPrimaryLabel().getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_1622); >+ stringBuffer.append(TEXT_1728); > stringBuffer.append(importManager.getImportedName(myHelper.getPrimaryLabel().getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_1623); >+ stringBuffer.append(TEXT_1729); > stringBuffer.append(importManager.getImportedName("java.util.Iterator")); >- stringBuffer.append(TEXT_1624); >+ stringBuffer.append(TEXT_1730); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_1625); >+ stringBuffer.append(TEXT_1731); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_1626); >+ stringBuffer.append(TEXT_1732); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_1627); >+ stringBuffer.append(TEXT_1733); > stringBuffer.append(importManager.getImportedName(myHelper.getPrimaryLabel().getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_1628); >+ stringBuffer.append(TEXT_1734); > stringBuffer.append(importManager.getImportedName(myHelper.getPrimaryLabel().getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_1629); >+ stringBuffer.append(TEXT_1735); > stringBuffer.append(genNode.getEditPartClassName()); >- stringBuffer.append(TEXT_1630); >+ stringBuffer.append(TEXT_1736); > > } > >- stringBuffer.append(TEXT_1631); >+ stringBuffer.append(TEXT_1737); > > if (myHelper.getPrimaryLabel() != null) { > LabelModelFacet labelModelFacet = myHelper.getPrimaryLabel().getModelFacet(); > if (labelModelFacet instanceof FeatureLabelModelFacet) { > GenFeature feature = ((FeatureLabelModelFacet)labelModelFacet).getMetaFeature(); > >- stringBuffer.append(TEXT_1632); >+ stringBuffer.append(TEXT_1738); > stringBuffer.append(importManager.getImportedName(feature.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1633); >+ stringBuffer.append(TEXT_1739); > stringBuffer.append(feature.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1634); >+ stringBuffer.append(TEXT_1740); > > } else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { > CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; > for(Iterator it = compositeFeatureLabelModelFacet.getMetaFeatures().iterator(); it.hasNext(); ) { > GenFeature next = (GenFeature) it.next(); > >- stringBuffer.append(TEXT_1635); >+ stringBuffer.append(TEXT_1741); > stringBuffer.append(importManager.getImportedName(next.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1636); >+ stringBuffer.append(TEXT_1742); > stringBuffer.append(next.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1637); >+ stringBuffer.append(TEXT_1743); > > } > } >@@ -6775,11 +7306,11 @@ > for(Iterator it = labelNotifyFeatures.iterator(); it.hasNext(); ) { > GenFeature next = (GenFeature) it.next(); > >- stringBuffer.append(TEXT_1638); >+ stringBuffer.append(TEXT_1744); > stringBuffer.append(importManager.getImportedName(next.getGenPackage().getQualifiedPackageInterfaceName())); >- stringBuffer.append(TEXT_1639); >+ stringBuffer.append(TEXT_1745); > stringBuffer.append(next.getFeatureAccessorName()); >- stringBuffer.append(TEXT_1640); >+ stringBuffer.append(TEXT_1746); > > } > } >@@ -6787,28 +7318,28 @@ > > } > >- stringBuffer.append(TEXT_1641); >+ stringBuffer.append(TEXT_1747); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_1642); >+ stringBuffer.append(TEXT_1748); > stringBuffer.append(importManager.getImportedName("java.util.List")); >- stringBuffer.append(TEXT_1643); >+ stringBuffer.append(TEXT_1749); > stringBuffer.append(importManager.getImportedName("java.util.ArrayList")); >- stringBuffer.append(TEXT_1644); >+ stringBuffer.append(TEXT_1750); > stringBuffer.append(importManager.getImportedName("java.util.Iterator")); >- stringBuffer.append(TEXT_1645); >+ stringBuffer.append(TEXT_1751); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_1646); >+ stringBuffer.append(TEXT_1752); > stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); >- stringBuffer.append(TEXT_1647); >+ stringBuffer.append(TEXT_1753); > stringBuffer.append(importManager.getImportedName(genDiagram.getVisualIDRegistryQualifiedClassName())); >- stringBuffer.append(TEXT_1648); >+ stringBuffer.append(TEXT_1754); > > for(Iterator it = genNode.getChildNodes().iterator(); it.hasNext(); ) { > GenChildNode next = (GenChildNode)it.next(); > >- stringBuffer.append(TEXT_1649); >+ stringBuffer.append(TEXT_1755); > stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_1650); >+ stringBuffer.append(TEXT_1756); > > } > >@@ -6816,15 +7347,15 @@ > for (Iterator compartments = genNode.getCompartments().iterator(); compartments.hasNext();){ > GenCompartment next = (GenCompartment) compartments.next(); > >- stringBuffer.append(TEXT_1651); >+ stringBuffer.append(TEXT_1757); > stringBuffer.append(importManager.getImportedName(next.getEditPartQualifiedClassName())); >- stringBuffer.append(TEXT_1652); >+ stringBuffer.append(TEXT_1758); > > } > >- stringBuffer.append(TEXT_1653); >+ stringBuffer.append(TEXT_1759); > importManager.emitSortedImports(); >- stringBuffer.append(TEXT_1654); >+ stringBuffer.append(TEXT_1760); > return stringBuffer.toString(); > } > } >Index: templates/providers/DomainElementInitializer.javajet >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.codegen.lite/templates/providers/DomainElementInitializer.javajet,v >retrieving revision 1.5 >diff -u -r1.5 DomainElementInitializer.javajet >--- templates/providers/DomainElementInitializer.javajet 5 Oct 2006 12:26:14 -0000 1.5 >+++ templates/providers/DomainElementInitializer.javajet 11 Oct 2006 14:02:55 -0000 >@@ -327,7 +327,7 @@ > } > if (target != null) { > <%=importedAbstractExprCls%> targetConstraint = isBackDirected ? srcEndInv : targetEndInv; >- if (targetConstraint != null && !evaluate(targetConstraint, source, target, true)) { >+ if (targetConstraint != null && !evaluate(targetConstraint, target, source, true)) { > return false; > } > } >Index: src-templates/org/eclipse/gmf/codegen/templates/lite/providers/DomainElementInitializerGenerator.java >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/providers/DomainElementInitializerGenerator.java,v >retrieving revision 1.7 >diff -u -r1.7 DomainElementInitializerGenerator.java >--- src-templates/org/eclipse/gmf/codegen/templates/lite/providers/DomainElementInitializerGenerator.java 5 Oct 2006 12:26:14 -0000 1.7 >+++ src-templates/org/eclipse/gmf/codegen/templates/lite/providers/DomainElementInitializerGenerator.java 11 Oct 2006 14:02:54 -0000 >@@ -198,7 +198,7 @@ > protected final String TEXT_179 = " sourceEnd, "; > protected final String TEXT_180 = " targetEnd) {" + NL + "\t\t\tthis.srcEndInv = sourceEnd;\t\t\t" + NL + "\t\t\tthis.targetEndInv = targetEnd;\t\t\t" + NL + "\t\t}" + NL + "\t\t" + NL + "\t\t/**" + NL + "\t\t * @generated " + NL + "\t\t */\t" + NL + "\t\tpublic boolean canCreateLink(Object source, Object target, boolean isBackDirected) {" + NL + "\t\t\tif (source != null) {" + NL + "\t\t\t\t"; > protected final String TEXT_181 = " sourceConstraint = isBackDirected ? targetEndInv : srcEndInv;" + NL + "\t\t\t\tif (sourceConstraint != null && !evaluate(sourceConstraint, source, target, false)) {" + NL + "\t\t\t\t\treturn false;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\tif (target != null) {" + NL + "\t\t\t\t"; >- protected final String TEXT_182 = " targetConstraint = isBackDirected ? srcEndInv : targetEndInv;" + NL + "\t\t\t\tif (targetConstraint != null && !evaluate(targetConstraint, source, target, true)) {" + NL + "\t\t\t\t\treturn false;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn true;" + NL + "\t\t}" + NL + "\t" + NL + "\t\t/**" + NL + "\t\t * @generated " + NL + "\t\t */" + NL + "\t\tprivate static boolean evaluate("; >+ protected final String TEXT_182 = " targetConstraint = isBackDirected ? srcEndInv : targetEndInv;" + NL + "\t\t\t\tif (targetConstraint != null && !evaluate(targetConstraint, target, source, true)) {" + NL + "\t\t\t\t\treturn false;" + NL + "\t\t\t\t}" + NL + "\t\t\t}" + NL + "\t\t\treturn true;" + NL + "\t\t}" + NL + "\t" + NL + "\t\t/**" + NL + "\t\t * @generated " + NL + "\t\t */" + NL + "\t\tprivate static boolean evaluate("; > protected final String TEXT_183 = " constraint, Object sourceEnd, Object oppositeEnd, boolean clearEnv) {" + NL + "\t\t\t"; > protected final String TEXT_184 = " evalEnv = "; > protected final String TEXT_185 = ".singletonMap(OPPOSITE_END_VAR, oppositeEnd);\t\t\t" + NL + "\t\t\ttry {" + NL + "\t\t\t\tObject val = constraint.evaluate(sourceEnd, evalEnv);" + NL + "\t\t\t\treturn (val instanceof Boolean) ? ((Boolean) val).booleanValue() : false;" + NL + "\t\t\t} catch(Exception e) {\t" + NL + "\t\t\t\t"; >Index: templates/parts/featureMultiplicity.jetinc >=================================================================== >RCS file: templates/parts/featureMultiplicity.jetinc >diff -N templates/parts/featureMultiplicity.jetinc >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ templates/parts/featureMultiplicity.jetinc 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,18 @@ >+<% >+int upperBound = _feature.getEcoreFeature().getUpperBound(); >+if (upperBound > 0) { >+ if (upperBound == 1) { >+%> >+ if (<%myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, false);%> != null) { >+ <%=_exceedsUpperBound%> >+ } >+<% >+ } else { >+%> >+ if (<%myFeatureGetAccessorHelper.appendFeatureValueGetter(_ownerInstance, _feature, _ownerGenClass, true);%>.size() >= <%=importManager.getImportedName(_feature.getGenPackage().getQualifiedPackageInterfaceName())%>.eINSTANCE.get<%=_feature.getFeatureAccessorName()%>().getUpperBound()) { >+ <%=_exceedsUpperBound%> >+ } >+<% >+ } >+} >+%> >#P org.eclipse.gmf.tests.lite >Index: src/org/eclipse/gmf/tests/lite/gef/NotationRefreshTest.java >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.gmf/tests/org.eclipse.gmf.tests.lite/src/org/eclipse/gmf/tests/lite/gef/NotationRefreshTest.java,v >retrieving revision 1.6 >diff -u -r1.6 NotationRefreshTest.java >--- src/org/eclipse/gmf/tests/lite/gef/NotationRefreshTest.java 9 Oct 2006 17:03:17 -0000 1.6 >+++ src/org/eclipse/gmf/tests/lite/gef/NotationRefreshTest.java 11 Oct 2006 14:03:01 -0000 >@@ -34,13 +34,20 @@ > import org.eclipse.gmf.runtime.notation.Edge; > import org.eclipse.gmf.runtime.notation.Node; > import org.eclipse.gmf.runtime.notation.View; >+import org.eclipse.gmf.tests.lite.setup.LibraryConstrainedSetup; > import org.eclipse.gmf.tests.rt.GeneratedCanvasTest; >+import org.eclipse.gmf.tests.setup.SessionSetup; > > public class NotationRefreshTest extends GeneratedCanvasTest { > public NotationRefreshTest(String name) { > super(name); > } > >+ @Override >+ protected SessionSetup createDefaultSetup() { >+ return LibraryConstrainedSetup.getInstance(); >+ } >+ > public void testNotationRefreshOnDeleteNode() throws Exception { > EditPart diagramEP = getDiagramEditPart(); > Diagram diagram = (Diagram) diagramEP.getModel(); >@@ -326,8 +333,15 @@ > checkLinkEnd(opinionsEdge, nodeA); > checkLinkEnd(opinionsEdge, nodeB); > EStructuralFeature targetByClassFeature = opinion.eClass().getEStructuralFeature("book"); >- Command command = SetCommand.create(editingDomain, opinion, targetByClassFeature, SetCommand.UNSET_VALUE); >- assertTrue("Failed to create semantic reroute command", command != null && command.canExecute()); >+ final Command command = SetCommand.create(editingDomain, opinion, targetByClassFeature, SetCommand.UNSET_VALUE); >+ //the returned command is a strict pessimistic command, so canExecute() can only be called from within a transaction. >+ new EMFCommandOperation(editingDomain, new AbstractCommand() { >+ public void redo() { >+ } >+ public void execute() { >+ assertTrue("Failed to create semantic reroute command", command != null && command.canExecute()); >+ } >+ }).execute(new NullProgressMonitor(), null); > new EMFCommandOperation(editingDomain, command).execute(new NullProgressMonitor(), null); > assertNull("Command not executed", opinion.eGet(targetByClassFeature)); > assertFalse(opinionEP.isActive()); >Index: src/org/eclipse/gmf/tests/lite/gef/DiagramNodeCloneMoveTest.java >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.gmf/tests/org.eclipse.gmf.tests.lite/src/org/eclipse/gmf/tests/lite/gef/DiagramNodeCloneMoveTest.java,v >retrieving revision 1.1 >diff -u -r1.1 DiagramNodeCloneMoveTest.java >--- src/org/eclipse/gmf/tests/lite/gef/DiagramNodeCloneMoveTest.java 9 Oct 2006 17:03:17 -0000 1.1 >+++ src/org/eclipse/gmf/tests/lite/gef/DiagramNodeCloneMoveTest.java 11 Oct 2006 14:03:01 -0000 >@@ -14,6 +14,7 @@ > import java.util.Collection; > > import junit.framework.Assert; >+import junit.framework.AssertionFailedError; > > import org.eclipse.core.runtime.NullProgressMonitor; > import org.eclipse.draw2d.geometry.Point; >@@ -35,17 +36,26 @@ > import org.eclipse.gef.commands.Command; > import org.eclipse.gef.requests.ChangeBoundsRequest; > import org.eclipse.gmf.codegen.gmfgen.GenCompartment; >+import org.eclipse.gmf.codegen.gmfgen.GenLink; > import org.eclipse.gmf.codegen.gmfgen.GenNode; > import org.eclipse.gmf.runtime.notation.Diagram; >+import org.eclipse.gmf.runtime.notation.Edge; > import org.eclipse.gmf.runtime.notation.Node; > import org.eclipse.gmf.runtime.notation.View; >+import org.eclipse.gmf.tests.lite.setup.LibraryConstrainedSetup; > import org.eclipse.gmf.tests.rt.GeneratedCanvasTest; >+import org.eclipse.gmf.tests.setup.SessionSetup; > > public class DiagramNodeCloneMoveTest extends GeneratedCanvasTest { > public DiagramNodeCloneMoveTest(String name) { > super(name); > } > >+ @Override >+ protected SessionSetup createDefaultSetup() { >+ return LibraryConstrainedSetup.getInstance(); >+ } >+ > public void testClone() throws Exception { > GenNode nodeB = getSetup().getGenModel().getNodeB(); > assertTrue("Incorrect Setup: passed node has no compartments", nodeB.getCompartments().size() > 0); >@@ -226,6 +236,7 @@ > * Workaround by creating the node in the domain model. > * Works only if the created domain node is in the same EPackage as the container node. > */ >+ @SuppressWarnings("unchecked") > protected Node createNodeIndirect(GenNode nodeType, View notationContainer) { > final Object[] resultHolder = new Object[1]; > Adapter adapter = new AdapterImpl() { >@@ -276,4 +287,73 @@ > } > return one.chain(another); > } >+ >+ public void testNodeMultiplicity() throws Exception { >+ Node writer = getCanvasInstance().getNodeA(); >+ final Node book = getCanvasInstance().getNodeB(); >+ GenNode writerGenNode = getSetup().getGenModel().getNodeA(); >+ GenCompartment brochuresCompartment = (GenCompartment) writerGenNode.getCompartments().get(0); >+ final GenNode brochuresGenNode = (GenNode) brochuresCompartment.getChildNodes().get(0); >+ final View writerCompartment = findChildView(writer, brochuresCompartment); >+ cloneOrMoveNode(book, writerCompartment, true); >+ final Node secondBrochure = createNode(brochuresGenNode, writerCompartment); >+ shouldFail("Should not be possible to create a third node here", new Runnable() { >+ public void run() { >+ createNode(brochuresGenNode, writerCompartment); >+ } >+ }); >+ shouldFail("Should not be possible to clone a third node here", new Runnable() { >+ public void run() { >+ cloneOrMoveNode(secondBrochure, writerCompartment, true); >+ } >+ }); >+ shouldFail("Should not be possible to move a third node here", new Runnable() { >+ public void run() { >+ cloneOrMoveNode(book, writerCompartment, false); >+ } >+ }); >+ } >+ >+ public void testLinkMultiplicity() throws Exception { >+ final Node writer = getCanvasInstance().getNodeA(); >+ final Node book = getCanvasInstance().getNodeB(); >+ final GenLink opinionGenLink = getSetup().getGenModel().getLinkC(); >+ Edge opinion1 = getCanvasInstance().getLinkByClass(); >+ Edge opinion2 = createLink(opinionGenLink, writer, book); >+ assertNotNull(opinion1); >+ assertNotNull(opinion2); >+ shouldFail("Should not be possible to create a third link", new Runnable() { >+ public void run() { >+ Edge opinion3 = createLink(opinionGenLink, writer, book); >+ assertNotNull(opinion3); >+ } >+ }); >+ } >+ >+ public void testLinkTargetFeatureInverseMultiplicity() throws Exception { >+ final Node writer1 = getCanvasInstance().getNodeA(); >+ final Node book = getCanvasInstance().getNodeB(); >+ final GenLink opinionGenLink = getSetup().getGenModel().getLinkC(); >+ Edge opinion1 = getCanvasInstance().getLinkByClass(); >+ assertNotNull(opinion1); >+ final Node writer2 = createNode(getSetup().getGenModel().getNodeA(), writer1.getDiagram()); >+ Edge opinion2 = createLink(opinionGenLink, writer2, book); >+ assertNotNull(opinion2); >+ final Node writer3 = createNode(getSetup().getGenModel().getNodeA(), writer1.getDiagram()); >+ shouldFail("Should not be possible to create a third incoming link to book: Book::opinions multiplicity is 2", new Runnable() { >+ public void run() { >+ Edge opinion3 = createLink(opinionGenLink, writer3, book); >+ assertNotNull(opinion3); >+ } >+ }); >+ } >+ >+ private void shouldFail(String msg, Runnable r) { >+ try { >+ r.run(); >+ } catch (AssertionFailedError e) { >+ return; >+ } >+ fail(msg); >+ } > } >Index: models/library/library_constrained.gmfgen >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.gmf/tests/org.eclipse.gmf.tests.lite/models/library/library_constrained.gmfgen,v >retrieving revision 1.4 >diff -u -r1.4 library_constrained.gmfgen >--- models/library/library_constrained.gmfgen 9 Oct 2006 17:03:17 -0000 1.4 >+++ models/library/library_constrained.gmfgen 11 Oct 2006 14:03:01 -0000 >@@ -276,6 +276,15 @@ > href="library.genmodel#//library/Library/books"/> > <modelElementSelector > body="pages <= 150"/> >+ <modelElementInitializer >+ xsi:type="gmfgen:GenFeatureSeqInitializer"> >+ <initializers >+ xsi:type="gmfgen:GenFeatureValueSpec" >+ body="100"> >+ <feature >+ href="library.genmodel#//library/Book/pages"/> >+ </initializers> >+ </modelElementInitializer> > </modelFacet> > <labels > visualID="5002" >@@ -327,6 +336,15 @@ > href="library.genmodel#//library/Library/books"/> > <modelElementSelector > body="pages > 150"/> >+ <modelElementInitializer >+ xsi:type="gmfgen:GenFeatureSeqInitializer"> >+ <initializers >+ xsi:type="gmfgen:GenFeatureValueSpec" >+ body="200"> >+ <feature >+ href="library.genmodel#//library/Book/pages"/> >+ </initializers> >+ </modelElementInitializer> > </modelFacet> > <labels > visualID="5003" >@@ -398,6 +416,10 @@ > href="library.genmodel#//library/Opinion/text"/> > </modelFacet> > </labels> >+ <creationConstraints> >+ <targetEnd >+ body="pages <= 250"/> >+ </creationConstraints> > </links> > <links > visualID="4002" >@@ -472,6 +494,10 @@ > href="library.genmodel#//library/Opinion/text"/> > </modelFacet> > </labels> >+ <creationConstraints> >+ <targetEnd >+ body="pages > 250"/> >+ </creationConstraints> > </links> > <compartments > visualID="7003" >@@ -524,6 +550,46 @@ > <requiredPluginIDs>org.eclipse.draw2d</requiredPluginIDs> > </viewmap> > </compartments> >+ <palette> >+ <groups >+ title="Nodes" >+ collapse="true"> >+ <entries >+ xsi:type="gmfgen:ToolEntry" >+ title="Book" >+ description="Create New Book" >+ genNodes="//@diagram/@childNodes.0 //@diagram/@topLevelNodes.1"/> >+ <entries >+ xsi:type="gmfgen:ToolEntry" >+ title="Author" >+ description="Create New Author" >+ genNodes="//@diagram/@topLevelNodes.0"/> >+ <entries >+ xsi:type="gmfgen:ToolEntry" >+ title="Chapter" >+ description="Create New Chapter" >+ genNodes="//@diagram/@childNodes.2"/> >+ <entries >+ xsi:type="gmfgen:ToolEntry" >+ title="Review" >+ description="Create New Review" >+ genNodes="//@diagram/@childNodes.1 //@diagram/@childNodes.3 //@diagram/@childNodes.4"/> >+ </groups> >+ <groups >+ title="Links" >+ collapse="true"> >+ <entries >+ xsi:type="gmfgen:ToolEntry" >+ title="Opinion" >+ description="Create New Opinion" >+ genLinks="//@diagram/@links.0 //@diagram/@links.2"/> >+ <entries >+ xsi:type="gmfgen:ToolEntry" >+ title="Book Author" >+ description="Associate With Author" >+ genLinks="//@diagram/@links.1"/> >+ </groups> >+ </palette> > </diagram> > <plugin/> > <editor/> >@@ -743,7 +809,7 @@ > <expressionProviders> > <providers > xsi:type="gmfgen:GenExpressionInterpreter" >- expressions="//@diagram/@topLevelNodes.1/@modelFacet/@modelElementSelector //@diagram/@topLevelNodes.2/@modelFacet/@modelElementSelector //@diagram/@links.0/@modelFacet/@modelElementSelector //@diagram/@links.2/@modelFacet/@modelElementSelector"> >+ expressions="//@diagram/@topLevelNodes.1/@modelFacet/@modelElementSelector //@diagram/@topLevelNodes.1/@modelFacet/@modelElementInitializer/@initializers.0 //@diagram/@topLevelNodes.2/@modelFacet/@modelElementSelector //@diagram/@topLevelNodes.2/@modelFacet/@modelElementInitializer/@initializers.0 //@diagram/@links.0/@modelFacet/@modelElementSelector //@diagram/@links.0/@creationConstraints/@targetEnd //@diagram/@links.2/@modelFacet/@modelElementSelector //@diagram/@links.2/@creationConstraints/@targetEnd"> > <requiredPluginIDs>org.eclipse.emf.ocl</requiredPluginIDs> > <requiredPluginIDs>org.eclipse.emf.query.ocl</requiredPluginIDs> > </providers> >Index: models/library/library_constrained.gmfmap >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.gmf/tests/org.eclipse.gmf.tests.lite/models/library/library_constrained.gmfmap,v >retrieving revision 1.4 >diff -u -r1.4 library_constrained.gmfmap >--- models/library/library_constrained.gmfmap 9 Oct 2006 17:03:17 -0000 1.4 >+++ models/library/library_constrained.gmfmap 11 Oct 2006 14:03:01 -0000 >@@ -3,7 +3,8 @@ > xmlns:xmi="http://www.omg.org/XMI" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" >- xmlns:gmfmap="http://www.eclipse.org/gmf/2005/mappings/2.0"> >+ xmlns:gmfmap="http://www.eclipse.org/gmf/2005/mappings/2.0" >+ xmlns:gmftool="http://www.eclipse.org/gmf/2005/ToolDefinition"> > <nodes> > <containmentFeature > href="library.ecore#//Library/writers"/> >@@ -16,6 +17,9 @@ > <features > href="library.ecore#//Writer/name"/> > </labelMappings> >+ <tool >+ xsi:type="gmftool:CreationTool" >+ href="library_constrained.gmftool#//@palette/@tools.0/@tools.1"/> > <diagramNode > href="../../../../plugin/org.eclipse.gmf.graphdef/models/basic.gmfgraph#NamedNode"/> > <children >@@ -35,6 +39,9 @@ > <features > href="library.ecore#//Book/title"/> > </labelMappings> >+ <tool >+ xsi:type="gmftool:CreationTool" >+ href="library_constrained.gmftool#//@palette/@tools.0/@tools.0"/> > <diagramNode > href="../../../../plugin/org.eclipse.gmf.graphdef/models/basic.gmfgraph#Label"/> > </ownedChild> >@@ -54,12 +61,25 @@ > href="library.ecore#//Book"/> > <domainSpecialization > body="pages <= 150"/> >+ <domainInitializer >+ xsi:type="gmfmap:FeatureSeqInitializer"> >+ <initializers >+ xsi:type="gmfmap:FeatureValueSpec" >+ body="100"> >+ <feature >+ xsi:type="ecore:EAttribute" >+ href="library.ecore#//Book/pages"/> >+ </initializers> >+ </domainInitializer> > <labelMappings> > <diagramLabel > href="../../../../plugin/org.eclipse.gmf.graphdef/models/basic.gmfgraph#NamedNode_Name"/> > <features > href="library.ecore#//Book/title"/> > </labelMappings> >+ <tool >+ xsi:type="gmftool:CreationTool" >+ href="library_constrained.gmftool#//@palette/@tools.0/@tools.0"/> > <diagramNode > href="../../../../plugin/org.eclipse.gmf.graphdef/models/basic.gmfgraph#NamedNode"/> > <children >@@ -75,6 +95,9 @@ > <features > href="library.ecore#//Review/title"/> > </labelMappings> >+ <tool >+ xsi:type="gmftool:CreationTool" >+ href="library_constrained.gmftool#//@palette/@tools.0/@tools.3"/> > <diagramNode > href="../../../../plugin/org.eclipse.gmf.graphdef/models/basic.gmfgraph#Label"/> > </ownedChild> >@@ -93,6 +116,9 @@ > <features > href="library.ecore#//Chapter/name"/> > </labelMappings> >+ <tool >+ xsi:type="gmftool:CreationTool" >+ href="library_constrained.gmftool#//@palette/@tools.0/@tools.2"/> > <diagramNode > href="../../../../plugin/org.eclipse.gmf.graphdef/models/basic.gmfgraph#Label"/> > </ownedChild> >@@ -112,6 +138,16 @@ > href="library.ecore#//Book"/> > <domainSpecialization > body="pages > 150"/> >+ <domainInitializer >+ xsi:type="gmfmap:FeatureSeqInitializer"> >+ <initializers >+ xsi:type="gmfmap:FeatureValueSpec" >+ body="200"> >+ <feature >+ xsi:type="ecore:EAttribute" >+ href="library.ecore#//Book/pages"/> >+ </initializers> >+ </domainInitializer> > <labelMappings> > <diagramLabel > href="../../../../plugin/org.eclipse.gmf.graphdef/models/basic.gmfgraph#NamedNode_Name"/> >@@ -133,6 +169,9 @@ > <features > href="library.ecore#//Review/title"/> > </labelMappings> >+ <tool >+ xsi:type="gmftool:CreationTool" >+ href="library_constrained.gmftool#//@palette/@tools.0/@tools.3"/> > <diagramNode > href="../../../../plugin/org.eclipse.gmf.graphdef/models/basic.gmfgraph#Label"/> > </ownedChild> >@@ -151,6 +190,9 @@ > <features > href="library.ecore#//Chapter/name"/> > </labelMappings> >+ <tool >+ xsi:type="gmftool:CreationTool" >+ href="library_constrained.gmftool#//@palette/@tools.0/@tools.3"/> > <diagramNode > href="../../../../plugin/org.eclipse.gmf.graphdef/models/basic.gmfgraph#Label"/> > </ownedChild> >@@ -176,13 +218,23 @@ > </labelMappings> > <containmentFeature > href="library.ecore#//Writer/opinions"/> >+ <tool >+ xsi:type="gmftool:CreationTool" >+ href="library_constrained.gmftool#//@palette/@tools.1/@tools.0"/> > <diagramLink > href="../../../../plugin/org.eclipse.gmf.graphdef/models/basic.gmfgraph#Link"/> > <linkMetaFeature > xsi:type="ecore:EReference" > href="library.ecore#//Opinion/book"/> >+ <creationConstraints> >+ <targetEnd >+ body="pages <= 250"/> >+ </creationConstraints> > </links> > <links> >+ <tool >+ xsi:type="gmftool:CreationTool" >+ href="library_constrained.gmftool#//@palette/@tools.1/@tools.1"/> > <diagramLink > href="../../../../plugin/org.eclipse.gmf.graphdef/models/basic.gmfgraph#Link"/> > <linkMetaFeature >@@ -203,11 +255,18 @@ > </labelMappings> > <containmentFeature > href="library.ecore#//Writer/opinions"/> >+ <tool >+ xsi:type="gmftool:CreationTool" >+ href="library_constrained.gmftool#//@palette/@tools.1/@tools.0"/> > <diagramLink > href="../../../../plugin/org.eclipse.gmf.graphdef/models/basic.gmfgraph#Link"/> > <linkMetaFeature > xsi:type="ecore:EReference" > href="library.ecore#//Opinion/book"/> >+ <creationConstraints> >+ <targetEnd >+ body="pages > 250"/> >+ </creationConstraints> > </links> > <diagram> > <diagramCanvas >@@ -216,5 +275,7 @@ > href="library.ecore#/"/> > <domainMetaElement > href="library.ecore#//Library"/> >+ <palette >+ href="library_constrained.gmftool#//@palette"/> > </diagram> > </gmfmap:Mapping> >Index: models/library/library.ecore >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.gmf/tests/org.eclipse.gmf.tests.lite/models/library/library.ecore,v >retrieving revision 1.3 >diff -u -r1.3 library.ecore >--- models/library/library.ecore 9 Oct 2006 17:03:17 -0000 1.3 >+++ models/library/library.ecore 11 Oct 2006 14:03:01 -0000 >@@ -20,9 +20,9 @@ > <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> > <eStructuralFeatures xsi:type="ecore:EReference" name="books" upperBound="-1" > eType="#//Book" eOpposite="#//Book/author"/> >- <eStructuralFeatures xsi:type="ecore:EReference" name="brochures" upperBound="-1" >+ <eStructuralFeatures xsi:type="ecore:EReference" name="brochures" upperBound="2" > eType="#//Book" containment="true"/> >- <eStructuralFeatures xsi:type="ecore:EReference" name="opinions" upperBound="-1" >+ <eStructuralFeatures xsi:type="ecore:EReference" name="opinions" upperBound="2" > eType="#//Opinion" containment="true" eOpposite="#//Opinion/writer"/> > </eClassifiers> > <eClassifiers xsi:type="ecore:EClass" name="Book"> >@@ -43,6 +43,8 @@ > eType="#//Review" containment="true" eOpposite="#//Review/book"/> > <eStructuralFeatures xsi:type="ecore:EReference" name="chapters" upperBound="-1" > eType="#//Chapter" containment="true"/> >+ <eStructuralFeatures xsi:type="ecore:EReference" name="opinions" upperBound="2" >+ eType="#//Opinion" eOpposite="#//Opinion/book"/> > </eClassifiers> > <eClassifiers xsi:type="ecore:EEnum" name="BookCategory"> > <eLiterals name="Mystery"/> >@@ -67,7 +69,8 @@ > <eStructuralFeatures xsi:type="ecore:EAttribute" name="context" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> > <eStructuralFeatures xsi:type="ecore:EReference" name="writer" lowerBound="1" > eType="#//Writer" eOpposite="#//Writer/opinions"/> >- <eStructuralFeatures xsi:type="ecore:EReference" name="book" lowerBound="1" eType="#//Book"/> >+ <eStructuralFeatures xsi:type="ecore:EReference" name="book" lowerBound="1" eType="#//Book" >+ eOpposite="#//Book/opinions"/> > </eClassifiers> > <eClassifiers xsi:type="ecore:EClass" name="Chapter"> > <eAnnotations source="http:///org/eclipse/example/library.ecore"> >Index: models/library/library.genmodel >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.gmf/tests/org.eclipse.gmf.tests.lite/models/library/library.genmodel,v >retrieving revision 1.4 >diff -u -r1.4 library.genmodel >--- models/library/library.genmodel 9 Oct 2006 17:03:17 -0000 1.4 >+++ models/library/library.genmodel 11 Oct 2006 14:03:01 -0000 >@@ -30,6 +30,7 @@ > <genFeatures notify="false" createChild="false" ecoreFeature="ecore:EReference library.ecore#//Book/author"/> > <genFeatures children="true" createChild="true" ecoreFeature="ecore:EReference library.ecore#//Book/reviews"/> > <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference library.ecore#//Book/chapters"/> >+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference library.ecore#//Book/opinions"/> > </genClasses> > <genClasses ecoreClass="library.ecore#//Review"> > <genFeatures createChild="false" ecoreFeature="ecore:EAttribute library.ecore#//Review/title"/> >Index: models/library/library_constrained.gmftool >=================================================================== >RCS file: models/library/library_constrained.gmftool >diff -N models/library/library_constrained.gmftool >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ models/library/library_constrained.gmftool 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,43 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<gmftool:ToolRegistry xmi:version="2.0" >+ xmlns:xmi="http://www.omg.org/XMI" >+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >+ xmlns:gmftool="http://www.eclipse.org/gmf/2005/ToolDefinition"> >+ <palette >+ title=""> >+ <tools >+ xsi:type="gmftool:ToolGroup" >+ title="Nodes" >+ collapsible="true"> >+ <tools >+ xsi:type="gmftool:CreationTool" >+ title="Book" >+ description="Create New Book"/> >+ <tools >+ xsi:type="gmftool:CreationTool" >+ title="Author" >+ description="Create New Author"/> >+ <tools >+ xsi:type="gmftool:CreationTool" >+ title="Chapter" >+ description="Create New Chapter"/> >+ <tools >+ xsi:type="gmftool:CreationTool" >+ title="Review" >+ description="Create New Review"/> >+ </tools> >+ <tools >+ xsi:type="gmftool:ToolGroup" >+ title="Links" >+ collapsible="true"> >+ <tools >+ xsi:type="gmftool:CreationTool" >+ title="Opinion" >+ description="Create New Opinion"/> >+ <tools >+ xsi:type="gmftool:CreationTool" >+ title="Book Author" >+ description="Associate With Author"/> >+ </tools> >+ </palette> >+</gmftool:ToolRegistry>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 160225
: 51755