From c47a69d198faff0c1f85e49d12268888225a9e96 Mon Sep 17 00:00:00 2001 From: Kushal Munir < kmunir@ca.ibm.com> Date: Tue, 6 Feb 2007 17:12:27 +0000 Subject: [PATCH] [api] [163820] Allow encodings to be queried for IRemoteFile and implementations for encodings through a remote file encoding manager. --- .../rse/subsystems/files/core/SystemFileResources.java | 7 +++++++ .../subsystems/files/core/SystemFileResources.properties | 7 ++++++- .../rse/subsystems/files/core/subsystems/IRemoteFile.java | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/SystemFileResources.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/SystemFileResources.java index c110b374dfe..90a9bd4d7bc 100644 --- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/SystemFileResources.java +++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/SystemFileResources.java @@ -161,6 +161,13 @@ public class SystemFileResources extends NLS public static String RESID_PP_FILE_WRITABLE_TOOLTIP; public static String RESID_PP_FILE_HIDDEN_TOOLTIP; + public static String RESID_PP_FILE_ENCODING_GROUP_LABEL; + public static String RESID_PP_FILE_ENCODING_DEFAULT_LABEL; + public static String RESID_PP_FILE_ENCODING_DEFAULT_TOOLTIP; + public static String RESID_PP_FILE_ENCODING_OTHER_LABEL; + public static String RESID_PP_FILE_ENCODING_OTHER_TOOLTIP; + public static String RESID_PP_FILE_ENCODING_ENTER_TOOLTIP; + // ------------------------------- // Enter or select file form // ------------------------------- diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/SystemFileResources.properties b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/SystemFileResources.properties index b73033b1510..7dec84cfe07 100644 --- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/SystemFileResources.properties +++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/SystemFileResources.properties @@ -201,7 +201,12 @@ RESID_PP_FILE_WRITABLE_TOOLTIP=Is writing of this file or folder permitted RESID_PP_FILE_HIDDEN_LABEL=Hidden RESID_PP_FILE_HIDDEN_TOOLTIP=Is this file or folder typically hidden from lists - +RESID_PP_FILE_ENCODING_GROUP_LABEL=File encoding +RESID_PP_FILE_ENCODING_DEFAULT_LABEL=Default (%1) +RESID_PP_FILE_ENCODING_DEFAULT_TOOLTIP=The default encoding of the platform +RESID_PP_FILE_ENCODING_OTHER_LABEL=Other: +RESID_PP_FILE_ENCODING_OTHER_TOOLTIP=Specify a different encoding +RESID_PP_FILE_ENCODING_ENTER_TOOLTIP=Select or enter an encoding #============================================================= # RE-USABLE COMPOSITE FILE SYSTEM WIDGETS diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/IRemoteFile.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/IRemoteFile.java index ab3dbd12a94..05cdb627acb 100644 --- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/IRemoteFile.java +++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/subsystems/IRemoteFile.java @@ -291,6 +291,7 @@ public interface IRemoteFile extends IRemoteContainer, IRemotePropertyHolder, IS /** * Returns the encoding of the remote file. * @return the encoding of the remote file. + * @since 2.0 */ public String getEncoding(); } \ No newline at end of file