summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-09-28 07:22:26 (EDT)
committerEike Stepper2007-09-28 07:22:26 (EDT)
commitd822da453bea7064bfb6edd436bc4c9d6c1b4015 (patch)
treebad4dec60daaf42626c538e66e28b64c4fe4ca16
parentad06935119a9de82bcc2a64cbbe4217a9d1585b7 (diff)
downloadcdo-d822da453bea7064bfb6edd436bc4c9d6c1b4015.zip
cdo-d822da453bea7064bfb6edd436bc4c9d6c1b4015.tar.gz
cdo-d822da453bea7064bfb6edd436bc4c9d6c1b4015.tar.bz2
[204732] Add dialog for "Open Session"
https://bugs.eclipse.org/bugs/show_bug.cgi?id=204732
-rw-r--r--plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenSessionAction.java21
1 files changed, 20 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenSessionAction.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenSessionAction.java
index 9bb5f93..1a1050b 100644
--- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenSessionAction.java
+++ b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/actions/OpenSessionAction.java
@@ -63,7 +63,26 @@ public final class OpenSessionAction extends LongRunningAction
if (session == null)
{
- MessageDialog.openError(getShell(), getText(), "Could not open a session on the specified repository.");
+ try
+ {
+ getShell().getDisplay().syncExec(new Runnable()
+ {
+ public void run()
+ {
+ try
+ {
+ MessageDialog.openError(getShell(), getText(), "Could not open a session on the specified repository:\n"
+ + description);
+ }
+ catch (RuntimeException ignoe)
+ {
+ }
+ }
+ });
+ }
+ catch (RuntimeException ignoe)
+ {
+ }
}
}
} \ No newline at end of file