Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormvelten2011-10-12 15:42:49 +0000
committermvelten2011-10-12 15:42:49 +0000
commit7b7fd90aaf6acc6c9ac06a40e95851e75adef189 (patch)
tree604c3cbd0f0de33e93936c0d1e5f4942204d7fba
parentd6023fde00e92924a99b03c97821a893b59f6b7d (diff)
downloadorg.eclipse.papyrus-7b7fd90aaf6acc6c9ac06a40e95851e75adef189.tar.gz
org.eclipse.papyrus-7b7fd90aaf6acc6c9ac06a40e95851e75adef189.tar.xz
org.eclipse.papyrus-7b7fd90aaf6acc6c9ac06a40e95851e75adef189.zip
revert last useless commit of this class
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.common/src/org/eclipse/papyrus/diagram/common/commands/CommonDeferredCreateConnectionViewCommand.java21
1 files changed, 2 insertions, 19 deletions
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.common/src/org/eclipse/papyrus/diagram/common/commands/CommonDeferredCreateConnectionViewCommand.java b/plugins/uml/org.eclipse.papyrus.diagram.common/src/org/eclipse/papyrus/diagram/common/commands/CommonDeferredCreateConnectionViewCommand.java
index e5ef6798a5c..bc4bab72c25 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.common/src/org/eclipse/papyrus/diagram/common/commands/CommonDeferredCreateConnectionViewCommand.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.common/src/org/eclipse/papyrus/diagram/common/commands/CommonDeferredCreateConnectionViewCommand.java
@@ -109,26 +109,9 @@ public class CommonDeferredCreateConnectionViewCommand extends DeferredCreateCon
@Override
protected CommandResult doExecuteWithResult(IProgressMonitor progressMonitor, IAdaptable info) throws ExecutionException {
Map<?, ?> epRegistry = viewer.getEditPartRegistry();
-
- /**
- * Refresh the registry
- */
- View sourceView = (View)sourceViewAdapter.getAdapter(View.class);
- EObject sourceContainer = sourceView.eContainer();
- IGraphicalEditPart sourceContainerEP = (IGraphicalEditPart)epRegistry.get(sourceContainer);
- View targetView = (View)targetViewAdapter.getAdapter(View.class);
- EObject targetContainer = targetView.eContainer();
- IGraphicalEditPart targetContainerEP = (IGraphicalEditPart)epRegistry.get(targetContainer);
-
- if (sourceContainerEP != null) {
- sourceContainerEP.refresh();
- }
- if (targetContainerEP != null && !targetContainerEP.equals(sourceContainerEP)) {
- targetContainerEP.refresh();
- }
+ IGraphicalEditPart sourceEP = (IGraphicalEditPart)epRegistry.get(sourceViewAdapter.getAdapter(View.class));
+ IGraphicalEditPart targetEP = (IGraphicalEditPart)epRegistry.get(targetViewAdapter.getAdapter(View.class));
- IGraphicalEditPart sourceEP = (IGraphicalEditPart)epRegistry.get(sourceView);
- IGraphicalEditPart targetEP = (IGraphicalEditPart)epRegistry.get(targetView);
/*
* when the source or the target of a link is an other link, the
* previous method returns something like ElementNameEditPart A such

Back to the top