summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-09-28 07:38:48 (EDT)
committerEike Stepper2007-09-28 07:38:48 (EDT)
commit08747051b4c0528d10d0d50dbc70ce4e806f81bf (patch)
treee79b0b4aab768432bc807f83a7ba8a27761ecfda
parentd822da453bea7064bfb6edd436bc4c9d6c1b4015 (diff)
downloadcdo-08747051b4c0528d10d0d50dbc70ce4e806f81bf.zip
cdo-08747051b4c0528d10d0d50dbc70ce4e806f81bf.tar.gz
cdo-08747051b4c0528d10d0d50dbc70ce4e806f81bf.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.java2
-rw-r--r--plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/OpenSessionDialog.java8
2 files changed, 9 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 1a1050b..4a2266c 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
@@ -71,7 +71,7 @@ public final class OpenSessionAction extends LongRunningAction
{
try
{
- MessageDialog.openError(getShell(), getText(), "Could not open a session on the specified repository:\n"
+ MessageDialog.openError(getShell(), getText(), "Unable to open a session on the specified repository.\n"
+ description);
}
catch (RuntimeException ignoe)
diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/OpenSessionDialog.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/OpenSessionDialog.java
index 652a6fe..fd72245 100644
--- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/OpenSessionDialog.java
+++ b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/dialogs/OpenSessionDialog.java
@@ -138,6 +138,14 @@ public class OpenSessionDialog extends TitleAreaDialog
serverDescription = connector.getText();
repositoryName = repository.getText();
legacySupport = legacy.getSelection();
+
+ connectorHistory.add(serverDescription);
+ repositoryHistory.add(repositoryName);
+ OM.PREF_LEGACY_SUPPORT.setValue(legacySupport);
super.okPressed();
}
+
+ public void closeWithSuccess()
+ {
+ }
}