diff options
author | atikhomirov | 2010-12-08 05:43:52 +0000 |
---|---|---|
committer | atikhomirov | 2010-12-08 05:43:52 +0000 |
commit | b36efa4a1ca07b80ab8d6360958fab81daaab004 (patch) | |
tree | e032af89750995e41747fa9678e54e8c06d19fad /plugins | |
parent | 73dcab8bc2eacda28517ee40b1de6932c39b40c3 (diff) | |
download | org.eclipse.gmf-tooling-b36efa4a1ca07b80ab8d6360958fab81daaab004.tar.gz org.eclipse.gmf-tooling-b36efa4a1ca07b80ab8d6360958fab81daaab004.tar.xz org.eclipse.gmf-tooling-b36efa4a1ca07b80ab8d6360958fab81daaab004.zip |
[314670] Edges are not properly synchronized with semantic elementv20101208-2359
explicit refresh helps to bring back edge once model element is back (second part of the aforementioned bugzilla), but seems to be unnecessary if EditParts have their listeners installed
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/org.eclipse.gmf.codegen/templates/impl/diagram/update/CanonicalUpdate.xpt | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates/impl/diagram/update/CanonicalUpdate.xpt b/plugins/org.eclipse.gmf.codegen/templates/impl/diagram/update/CanonicalUpdate.xpt index 44157aff3..de5f056ab 100644 --- a/plugins/org.eclipse.gmf.codegen/templates/impl/diagram/update/CanonicalUpdate.xpt +++ b/plugins/org.eclipse.gmf.codegen/templates/impl/diagram/update/CanonicalUpdate.xpt @@ -324,7 +324,6 @@ private «EXPAND CodeStyle::G('java.util.Collection', editorGen.diagramUpdater.g «EXPAND xpt::Common::generatedMemberComment» private «EXPAND CodeStyle::G('java.util.Collection', 'org.eclipse.core.runtime.IAdaptable')» createConnections(«EXPAND CodeStyle::G('java.util.Collection', editorGen.diagramUpdater.getLinkDescriptorQualifiedClassName())» linkDescriptors, «EXPAND CodeStyle::G2('java.util.Map', 'org.eclipse.emf.ecore.EObject', 'org.eclipse.gmf.runtime.notation.View')» domain2NotationMap) { «EXPAND CodeStyle::newGenericInstance('adapters', 'java.util.LinkedList', 'org.eclipse.core.runtime.IAdaptable')»(); - «EXPAND CodeStyle::newGenericInstance('toRefresh', 'java.util.HashSet', 'org.eclipse.gef.EditPart')»(); «EXPAND CodeStyle::iterate('nextLinkDescriptor', editorGen.diagramUpdater.getLinkDescriptorQualifiedClassName(), 'linkDescriptors')-» org.eclipse.gef.EditPart sourceEditPart = getEditPart(nextLinkDescriptor.getSource(), domain2NotationMap); org.eclipse.gef.EditPart targetEditPart = getEditPart(nextLinkDescriptor.getDestination(), domain2NotationMap); @@ -345,13 +344,8 @@ private «EXPAND CodeStyle::G('java.util.Collection', 'org.eclipse.core.runtime. if (viewAdapter != null) { adapters.add(viewAdapter); } - toRefresh.add(sourceEditPart); - toRefresh.add(targetEditPart); } } - «EXPAND CodeStyle::iterate('ep', 'org.eclipse.gef.EditPart', 'toRefresh')-» - ep.refresh(); - } return adapters; } «ENDDEFINE» |