summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorJens Baumgart2010-09-24 10:59:01 (EDT)
committer Jens Baumgart2010-09-24 10:59:01 (EDT)
commite06d66308d8be69774cee9c2ae98f5f9997e93b5 (patch)
tree47ecf164e77bc72340ff49f124d13c82809e3787
parent4fb81b320fe1b3dc07df3e8bdc4b46a4bae78aac (diff)
downloadegit-e06d66308d8be69774cee9c2ae98f5f9997e93b5.zip
egit-e06d66308d8be69774cee9c2ae98f5f9997e93b5.tar.gz
egit-e06d66308d8be69774cee9c2ae98f5f9997e93b5.tar.bz2
ContextMenuHelper: check for disposed widget when hiding menurefs/changes/59/1659/1
ContextMenuHelper now checks for disposed widgets when hiding the menu. Change-Id: I66efaaf7c0b037ceff1c7c480f88dd1e8efa6fde Signed-off-by: Jens Baumgart <jens.baumgart@sap.com>
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/ContextMenuHelper.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/ContextMenuHelper.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/ContextMenuHelper.java
index 22b582d..e1fad41 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/ContextMenuHelper.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/ContextMenuHelper.java
@@ -74,6 +74,8 @@ public class ContextMenuHelper {
// hide
UIThreadRunnable.syncExec(new VoidResult() {
public void run() {
+ if (menuItem.isDisposed())
+ return; // menu already gone
hide(menuItem.getParent());
}
});
@@ -133,6 +135,8 @@ public class ContextMenuHelper {
// hide
UIThreadRunnable.syncExec(new VoidResult() {
public void run() {
+ if (menuItem.isDisposed())
+ return; // menu already gone
hide(menuItem.getParent());
}
});