Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2014-03-27 11:05:52 -0400
committerVincent Lorenzo2014-03-27 11:14:07 -0400
commit1eb28d11e147be4960464706bf4977277889c6aa (patch)
tree1fdb11d807fe2d71455ebc3416c6b30d0b2b78ef /plugins
parent4c894c2d8fdd8b7b896ca6d7948cfd0749237cba (diff)
downloadorg.eclipse.papyrus-1eb28d11e147be4960464706bf4977277889c6aa.tar.gz
org.eclipse.papyrus-1eb28d11e147be4960464706bf4977277889c6aa.tar.xz
org.eclipse.papyrus-1eb28d11e147be4960464706bf4977277889c6aa.zip
comment the line Display.getDefault().readAndDispatch because it breaks the Papyrus Tests
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/commands/FixEdgeAnchorAfterCreationDeferredCommand.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/commands/FixEdgeAnchorAfterCreationDeferredCommand.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/commands/FixEdgeAnchorAfterCreationDeferredCommand.java
index ac8f3bc8826..28715f4bfbe 100755
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/commands/FixEdgeAnchorAfterCreationDeferredCommand.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/commands/FixEdgeAnchorAfterCreationDeferredCommand.java
@@ -76,8 +76,8 @@ public class FixEdgeAnchorAfterCreationDeferredCommand extends AbstractFixEdgeAn
*/
protected CommandResult doExecuteWithResult(IProgressMonitor progressMonitor, IAdaptable info) throws ExecutionException {
- //we execute all ui thread
- while(Display.getDefault().readAndDispatch());
+ //we execute all ui thread allow to fix anchor after a DnD from the ModelExplorer
+ // while(Display.getDefault().readAndDispatch()); //commented because it breaks the tests
//we refresh the editparts
RefreshConnectionElementsRunnable refreshRunnable = new RefreshConnectionElementsRunnable(this.request, getContainerEP());

Back to the top