From 4c3386eebe0ec3641bb0ca080caaa10f91e6a7f1 Mon Sep 17 00:00:00 2001 From: Martin Oberhuber < martin.oberhuber@windriver.com> Date: Thu, 6 Dec 2007 12:48:18 +0000 Subject: [PATCH] Improve remoteFileTypes extension point specification schema to comply more with org.eclipse.team.core.fileTypes --- .../schema/remoteFileTypes.exsd | 71 ++++++++++++------- 1 file changed, 44 insertions(+), 27 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/schema/remoteFileTypes.exsd b/rse/plugins/org.eclipse.rse.subsystems.files.core/schema/remoteFileTypes.exsd index dd4da888887..3b15f617223 100644 --- a/rse/plugins/org.eclipse.rse.subsystems.files.core/schema/remoteFileTypes.exsd +++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/schema/remoteFileTypes.exsd @@ -6,16 +6,30 @@ - This extension point is used to register information about whether particular file types should be considered text or binary. This information is important as it will determine how files will be transferred. - -Providers may provide an extension for this extension point. No code beyond the XML extension declaration is required. + This extension point is used to register information about whether particular file types should be considered to contain text or binary data. +This information is important as it will determine how files will be transferred. The exact meaning of how the transfer of text files differs from binary +files depends on the actual file service implementation. In general, though, services will strive to change the encoding of remote text files during transfer +such that it matches the local platform default encoding. +<p> +Specific encoding conversions also depend on provided extensions to the +<a href="org_eclipse_rse_services_codePageConverters.html">org.eclipse.rse.services.codePageConverters</a> +extension point. +For example, transferring files from a remote dstore Linux host to a local Windows client, the file service may convert text files from +UTF-8 encoding to Windows cp1252 encoding, and convert remote LF only line endings to local CRLF line endings. +The benefit of this conversion is that local (external) tools may operate on transferred files in the RSE +files cache without having to worry about encodings. +</p> +<p> +Providers may provide an extension for this extension point. No code beyond the XML extension declaration is required. +See also the <tt>org.eclipse.team.core.fileTypes</tt> extension point which provides similar information for Repository providers. +</p> - - + + @@ -31,34 +45,37 @@ Providers may provide an extension for this extension point. No code beyond the - - - - - - - - - - + + + + + - + the file extension being identified by this contribution. - + - + one of either "text" or "binary", identifying the contents of files matching the value of extension. + + + + + + + + @@ -72,15 +89,6 @@ If no priority is specified, the default value will be <code>Integer.MAX_V - - - - - - 3.0 - - - @@ -103,6 +111,15 @@ If no priority is specified, the default value will be <code>Integer.MAX_V + + + + + + 3.0 + + +