1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-13 20:15:22 +02:00

[210242][nls] Credentials dialog should look different if password is not supported or optional

https://bugs.eclipse.org/bugs/show_bug.cgi?id=210242
This commit is contained in:
David Dykstal 2008-04-06 20:39:03 +00:00
parent 57bf97aa4c
commit e801d86876
3 changed files with 10 additions and 1 deletions

View file

@ -19,6 +19,7 @@
* David McKnight (IBM) - [223103] [cleanup] fix broken externalized strings
* Rupen Mardirossian (IBM) - [210682] Added BUTTON_OVERWRITE_ALL & and tooltip, also added some verbiage for new SystemCopyDialog.
* Xuan Chen (IBM) - [222263] Need to provide a PropertySet Adapter for System Team View
* David Dykstal (IBM) - [210242] Credentials dialog should look different if password is not supported or optional
*******************************************************************************/
package org.eclipse.rse.internal.ui;
@ -325,6 +326,7 @@ public class SystemResources extends NLS
public static String RESID_PASSWORD_TITLE;
public static String RESID_PASSWORD_LABEL;
public static String RESID_PASSWORD_LABEL_OPTIONAL;
public static String RESID_PASSWORD_TIP;
public static String RESID_PASSWORD_SYSTEMTYPE_LABEL;

View file

@ -21,6 +21,7 @@
# Rupen Mardirossian (IBM) - [210692] Define strings for SystemCopyDialog
# Xuan Chen (IBM) - [222263] Need to provide a PropertySet Adapter for System Team View
# David Dykstal (IBM) - [197018] Last Page of New Filter Wizard mentions Change Action
# David Dykstal (IBM) - [210242] Credentials dialog should look different if password is not supported or optional
################################################################################
# NLS_MESSAGEFORMAT_VAR
@ -528,6 +529,7 @@ RESID_TESTFILTERSTRING_PROMPT_TOOLTIP=Filter string being tested
#=============================================================
RESID_PASSWORD_TITLE = Enter Password
RESID_PASSWORD_LABEL = Password
RESID_PASSWORD_LABEL_OPTIONAL=Password (optional)
RESID_PASSWORD_TIP = Enter password for connecting to this host
RESID_PASSWORD_SYSTEMTYPE_LABEL=System type
RESID_PASSWORD_HOSTNAME_LABEL=Host name

View file

@ -15,6 +15,7 @@
* David Dykstal (IBM) - 168977: refactoring IConnectorService and ServerLauncher hierarchies
* Martin Oberhuber (Wind River) - [184095] Replace systemTypeName by IRSESystemType
* David Dykstal (IBM) - [210474] Deny save password function missing
* David Dykstal (IBM) - [210242] Credentials dialog should look different if password is not supported or optional
********************************************************************************/
package org.eclipse.rse.ui.dialogs;
@ -201,7 +202,11 @@ public final class SystemPasswordPromptDialog extends SystemPromptDialog impleme
// Password prompt
if (connectorService.supportsPassword()) {
textPassword = SystemWidgetHelpers.createLabeledTextField(composite_prompts, this, SystemResources.RESID_PASSWORD_LABEL, SystemResources.RESID_PASSWORD_TIP);
String passwordLabel = SystemResources.RESID_PASSWORD_LABEL_OPTIONAL;
if (connectorService.requiresPassword()) {
passwordLabel = SystemResources.RESID_PASSWORD_LABEL;
}
textPassword = SystemWidgetHelpers.createLabeledTextField(composite_prompts, this, passwordLabel, SystemResources.RESID_PASSWORD_TIP);
textPassword.setEchoChar('*');
}