mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-04 23:55:26 +02:00
Improve remoteFileTypes extension point specification schema to comply more with org.eclipse.team.core.fileTypes
This commit is contained in:
parent
4f1d09f5f5
commit
4c3386eebe
1 changed files with 44 additions and 27 deletions
|
@ -6,16 +6,30 @@
|
|||
<meta.schema plugin="org.eclipse.rse.subsystems.files.core" id="remoteFileTypes" name="Remote File Types"/>
|
||||
</appInfo>
|
||||
<documentation>
|
||||
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>
|
||||
</documentation>
|
||||
</annotation>
|
||||
|
||||
<element name="extension">
|
||||
<complexType>
|
||||
<sequence minOccurs="1" maxOccurs="unbounded">
|
||||
<element ref="remoteFileTypes"/>
|
||||
<sequence>
|
||||
<element ref="remoteFileTypes" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
<attribute name="point" type="string" use="required">
|
||||
<annotation>
|
||||
|
@ -31,34 +45,37 @@ Providers may provide an extension for this extension point. No code beyond the
|
|||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="name" type="string">
|
||||
<annotation>
|
||||
<documentation>
|
||||
|
||||
</documentation>
|
||||
<appInfo>
|
||||
<meta.attribute translatable="true"/>
|
||||
</appInfo>
|
||||
</annotation>
|
||||
</attribute>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="remoteFileTypes">
|
||||
<annotation>
|
||||
<appInfo>
|
||||
<meta.element labelAttribute="extension"/>
|
||||
</appInfo>
|
||||
</annotation>
|
||||
<complexType>
|
||||
<attribute name="extension" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation>
|
||||
|
||||
the file extension being identified by this contribution.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="type" type="string" use="required">
|
||||
<attribute name="type" use="required">
|
||||
<annotation>
|
||||
<documentation>
|
||||
|
||||
one of either "text" or "binary", identifying the contents of files matching the value of extension.
|
||||
</documentation>
|
||||
</annotation>
|
||||
<simpleType>
|
||||
<restriction base="string">
|
||||
<enumeration value="text">
|
||||
</enumeration>
|
||||
<enumeration value="binary">
|
||||
</enumeration>
|
||||
</restriction>
|
||||
</simpleType>
|
||||
</attribute>
|
||||
<attribute name="priority" type="string">
|
||||
<annotation>
|
||||
|
@ -72,15 +89,6 @@ If no priority is specified, the default value will be <code>Integer.MAX_V
|
|||
</complexType>
|
||||
</element>
|
||||
|
||||
<annotation>
|
||||
<appInfo>
|
||||
<meta.section type="since"/>
|
||||
</appInfo>
|
||||
<documentation>
|
||||
3.0
|
||||
</documentation>
|
||||
</annotation>
|
||||
|
||||
<annotation>
|
||||
<appInfo>
|
||||
<meta.section type="examples"/>
|
||||
|
@ -103,6 +111,15 @@ If no priority is specified, the default value will be <code>Integer.MAX_V
|
|||
</documentation>
|
||||
</annotation>
|
||||
|
||||
<annotation>
|
||||
<appInfo>
|
||||
<meta.section type="since"/>
|
||||
</appInfo>
|
||||
<documentation>
|
||||
3.0
|
||||
</documentation>
|
||||
</annotation>
|
||||
|
||||
<annotation>
|
||||
<appInfo>
|
||||
<meta.section type="implementation"/>
|
||||
|
|
Loading…
Add table
Reference in a new issue