View | Details | Raw Unified | Return to bug 295021 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/ui/internal/net/NetUIMessages.java (-1 / +3 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2009 IBM Corporation and others.
2
 * Copyright (c) 2000, 2010 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 67-72 Link Here
67
	public static String UserValidationDialog_2;
67
	public static String UserValidationDialog_2;
68
	public static String UserValidationDialog_3;
68
	public static String UserValidationDialog_3;
69
69
70
	public static String NetAuthenticator_OperationCanceled;
71
70
	static {
72
	static {
71
		NLS.initializeMessages(BUNDLE_NAME, NetUIMessages.class);
73
		NLS.initializeMessages(BUNDLE_NAME, NetUIMessages.class);
72
	}
74
	}
(-)src/org/eclipse/ui/internal/net/messages.properties (-1 / +3 lines)
Lines 1-5 Link Here
1
###############################################################################
1
###############################################################################
2
# Copyright (c) 2000, 2009 IBM Corporation and others.
2
# Copyright (c) 2000, 2010 IBM Corporation and others.
3
# All rights reserved. This program and the accompanying materials
3
# All rights reserved. This program and the accompanying materials
4
# are made available under the terms of the Eclipse Public License v1.0
4
# are made available under the terms of the Eclipse Public License v1.0
5
# which accompanies this distribution, and is available at
5
# which accompanies this distribution, and is available at
Lines 58-60 Link Here
58
UserValidationDialog_1=Connect to: {0}
58
UserValidationDialog_1=Connect to: {0}
59
UserValidationDialog_2=&Password:
59
UserValidationDialog_2=&Password:
60
UserValidationDialog_3=&User name:
60
UserValidationDialog_3=&User name:
61
62
NetAuthenticator_OperationCanceled=Operation canceled because user denied to provide credentials
(-)src/org/eclipse/ui/internal/net/auth/NetAuthenticator.java (-2 / +5 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2007 IBM Corporation and others.
2
 * Copyright (c) 2000, 2010 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 12-17 Link Here
12
12
13
import java.net.*;
13
import java.net.*;
14
14
15
import org.eclipse.core.runtime.OperationCanceledException;
16
import org.eclipse.ui.internal.net.NetUIMessages;
17
15
public class NetAuthenticator extends Authenticator {
18
public class NetAuthenticator extends Authenticator {
16
	
19
	
17
	/*
20
	/*
Lines 44-49 Link Here
44
			return new PasswordAuthentication(auth.getUser(), auth
47
			return new PasswordAuthentication(auth.getUser(), auth
45
					.getPassword().toCharArray());
48
					.getPassword().toCharArray());
46
		else
49
		else
47
			return null;
50
			throw new OperationCanceledException(NetUIMessages.NetAuthenticator_OperationCanceled);
48
	}
51
	}
49
}
52
}

Return to bug 295021