From 015bdcfb06def0fe51822ee8af984f1ea9b30e95 Mon Sep 17 00:00:00 2001 From: David Dykstal Date: Tue, 13 May 2008 22:47:11 +0000 Subject: [PATCH] [231841] TVT34:TCT187: TVT - FR - Apostrophe issue in Details message https://bugs.eclipse.org/bugs/show_bug.cgi?id=231841 --- .../internal/files/ui/wizards/SystemNewFileWizard.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/wizards/SystemNewFileWizard.java b/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/wizards/SystemNewFileWizard.java index ae007d2c3c6..2f20a9f63b3 100644 --- a/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/wizards/SystemNewFileWizard.java +++ b/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/wizards/SystemNewFileWizard.java @@ -19,6 +19,7 @@ * David McKnight (IBM) - [216252] [api][nls] Resource Strings specific to subsystems should be moved from rse.ui into files.ui / shells.ui / processes.ui where possible * David McKnight (IBM) - [220547] [api][breaking] SimpleSystemMessage needs to specify a message id and some messages should be shared * David McKnight (IBM) - [223204] [cleanup] fix broken nls strings in files.ui and others + * David Dykstal (IBM) - [231841] Incorrect create messages being used. Cannot use NLS.bind if no substitution variables *******************************************************************************/ package org.eclipse.rse.internal.files.ui.wizards; @@ -113,10 +114,10 @@ public class SystemNewFileWizard ok = false; SystemBasePlugin.logDebugMessage(CLASSNAME+ ":", " Creating remote file "+ absName + " failed with RemoteFileIOException " ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ String msgTxt = FileResources.FILEMSG_CREATE_FILE_FAILED; - String msgDetails = NLS.bind(FileResources.FILEMSG_CREATE_FILE_FAILED_DETAILS, absName); + String msgDetails = FileResources.FILEMSG_CREATE_FILE_FAILED_DETAILS; msg = new SimpleSystemMessage(Activator.PLUGIN_ID, - ISystemFileConstants.FILEMSG_COPY_FILE_FAILED, + ISystemFileConstants.FILEMSG_CREATE_FILE_FAILED, IStatus.ERROR, msgTxt, msgDetails); SystemMessageDialog.displayErrorMessage(null, msg); } @@ -124,10 +125,10 @@ public class SystemNewFileWizard { ok = false; String msgTxt = FileResources.FILEMSG_CREATE_FILE_FAILED; - String msgDetails = NLS.bind(FileResources.FILEMSG_COPY_FILE_FAILED_DETAILS, absName); + String msgDetails = FileResources.FILEMSG_CREATE_FILE_FAILED_DETAILS; msg = new SimpleSystemMessage(Activator.PLUGIN_ID, - ISystemFileConstants.FILEMSG_COPY_FILE_FAILED, + ISystemFileConstants.FILEMSG_CREATE_FILE_FAILED, IStatus.ERROR, msgTxt, msgDetails);