Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-04-29 22:33:08 +0000
committerslewis2007-04-29 22:33:08 +0000
commit7e6851886c4cb867e6dbb72f9c758a981570198e (patch)
treef4049875fce8f2604af2d7dd61a0a3afa4885879 /providers/bundles/org.eclipse.ecf.provider.irc.ui
parent8b87df51984b700db22b931242deb64235f3dd24 (diff)
downloadorg.eclipse.ecf-7e6851886c4cb867e6dbb72f9c758a981570198e.tar.gz
org.eclipse.ecf-7e6851886c4cb867e6dbb72f9c758a981570198e.tar.xz
org.eclipse.ecf-7e6851886c4cb867e6dbb72f9c758a981570198e.zip
Refactoring of ChatRoomManagerView and dependent classes. Also added support for multiple channels to connect to upon initial connect
Diffstat (limited to 'providers/bundles/org.eclipse.ecf.provider.irc.ui')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.irc.ui/src/org/eclipse/ecf/internal/irc/ui/wizards/IRCConnectWizard.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.irc.ui/src/org/eclipse/ecf/internal/irc/ui/wizards/IRCConnectWizard.java b/providers/bundles/org.eclipse.ecf.provider.irc.ui/src/org/eclipse/ecf/internal/irc/ui/wizards/IRCConnectWizard.java
index 16d8c8ebd..060c04635 100644
--- a/providers/bundles/org.eclipse.ecf.provider.irc.ui/src/org/eclipse/ecf/internal/irc/ui/wizards/IRCConnectWizard.java
+++ b/providers/bundles/org.eclipse.ecf.provider.irc.ui/src/org/eclipse/ecf/internal/irc/ui/wizards/IRCConnectWizard.java
@@ -36,6 +36,8 @@ import org.eclipse.ui.IWorkbench;
public final class IRCConnectWizard extends Wizard implements IConnectWizard {
+ public static final String DEFAULT_GUEST_USER = "guest";
+
private Shell shell;
private IRCConnectWizardPage page;
@@ -48,6 +50,8 @@ public final class IRCConnectWizard extends Wizard implements IConnectWizard {
private String uriString = null;
+ private String guestUser = DEFAULT_GUEST_USER;
+
private IExceptionHandler exceptionHandler = new IExceptionHandler() {
public IStatus handleException(final Throwable exception) {
if (exception != null) {
@@ -88,9 +92,13 @@ public final class IRCConnectWizard extends Wizard implements IConnectWizard {
.createPasswordConnectContext(page.getPassword());
try {
- new URI(page.getConnectID());
+ URI uri = new URI(page.getConnectID());
+ String auth = uri.getAuthority();
+ if (auth.indexOf("@") == -1) {
+ auth = guestUser + "@" + auth;
+ }
targetID = IDFactory.getDefault().createID(
- container.getConnectNamespace(), page.getConnectID());
+ container.getConnectNamespace(), auth);
} catch (Exception e) {
MessageDialog.openError(shell, "Connect Error", NLS.bind(
"Invalid connect ID: {0}", page.getConnectID()));

Back to the top