mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-16 21:45:22 +02:00
189 lines
6.5 KiB
XML
189 lines
6.5 KiB
XML
<?xml version='1.0' encoding='UTF-8'?>
|
|
<!-- Schema file written by PDE -->
|
|
<schema targetNamespace="org.eclipse.rse.subsystems.files.ftp">
|
|
<annotation>
|
|
<appInfo>
|
|
<meta.schema plugin="org.eclipse.rse.subsystems.files.ftp" id="ftpFileEntryParser" name="ftpFileEntryParser"/>
|
|
</appInfo>
|
|
<documentation>
|
|
Extension point that allows providing extra parsers for the FTP LIST command output.
|
|
Apache commons net provides some APIs and factories to costumize the parser and this extension
|
|
provides an easy way to setup a custom parser and integrate it into RSE.
|
|
The provided extension points will be available as a list in the property "FTP Settings",
|
|
allowing the user to select them overriding the default parser.
|
|
The string attributes <code>defaultDateFormatStr</code> <code>recentDateFormatStr</code>
|
|
<code>serverLanguageCode</code> <code>serverTimeZoneId</code> <code>shortMonthNames</code> have to
|
|
follow the format described by <code>org.apache.commons.net.ftp.FTPClientConfig</code>
|
|
</documentation>
|
|
</annotation>
|
|
|
|
<element name="extension">
|
|
<complexType>
|
|
<sequence minOccurs="1" maxOccurs="unbounded">
|
|
<element ref="parser"/>
|
|
</sequence>
|
|
<attribute name="point" type="string" use="required">
|
|
<annotation>
|
|
<documentation>
|
|
|
|
</documentation>
|
|
</annotation>
|
|
</attribute>
|
|
<attribute name="id" type="string">
|
|
<annotation>
|
|
<documentation>
|
|
|
|
</documentation>
|
|
</annotation>
|
|
</attribute>
|
|
<attribute name="name" type="string">
|
|
<annotation>
|
|
<documentation>
|
|
|
|
</documentation>
|
|
<appInfo>
|
|
<meta.attribute translatable="true"/>
|
|
</appInfo>
|
|
</annotation>
|
|
</attribute>
|
|
</complexType>
|
|
</element>
|
|
|
|
<element name="parser">
|
|
<complexType>
|
|
<attribute name="name" type="string" use="required">
|
|
<annotation>
|
|
<documentation>
|
|
Name that will be displayed in the UI
|
|
</documentation>
|
|
</annotation>
|
|
</attribute>
|
|
<attribute name="class" type="string" use="required">
|
|
<annotation>
|
|
<documentation>
|
|
|
|
</documentation>
|
|
<appInfo>
|
|
<meta.attribute kind="java" basedOn="org.apache.commons.net.ftp.Configurable,org.apache.commons.net.ftp.FTPFileEntryParser"/>
|
|
</appInfo>
|
|
</annotation>
|
|
</attribute>
|
|
<attribute name="defaultDateFormatStr" type="string">
|
|
<annotation>
|
|
<documentation>
|
|
|
|
</documentation>
|
|
</annotation>
|
|
</attribute>
|
|
<attribute name="recentDateFormatStr" type="string">
|
|
<annotation>
|
|
<documentation>
|
|
|
|
</documentation>
|
|
</annotation>
|
|
</attribute>
|
|
<attribute name="serverLanguageCode" type="string">
|
|
<annotation>
|
|
<documentation>
|
|
|
|
</documentation>
|
|
</annotation>
|
|
</attribute>
|
|
<attribute name="shortMonthNames" type="string">
|
|
<annotation>
|
|
<documentation>
|
|
|
|
</documentation>
|
|
</annotation>
|
|
</attribute>
|
|
<attribute name="serverTimeZoneId" type="string">
|
|
<annotation>
|
|
<documentation>
|
|
|
|
</documentation>
|
|
</annotation>
|
|
</attribute>
|
|
</complexType>
|
|
</element>
|
|
|
|
<annotation>
|
|
<appInfo>
|
|
<meta.section type="since"/>
|
|
</appInfo>
|
|
<documentation>
|
|
RSE 2.0
|
|
</documentation>
|
|
</annotation>
|
|
|
|
<annotation>
|
|
<appInfo>
|
|
<meta.section type="examples"/>
|
|
</appInfo>
|
|
<documentation>
|
|
<!-- Default UNIX parser provided by Apache commons net package -->
|
|
<parser
|
|
class="org.apache.commons.net.ftp.parser.UnixFTPEntryParser"
|
|
name="UNIX">
|
|
</parser>
|
|
|
|
<!-- Custom parser implementing org.apache.commons.net.ftp.Configurable and org.apache.commons.net.ftp.FTPFileEntryParser -->
|
|
<parser
|
|
class="com.mycompany.MyParser"
|
|
name="MyParser">
|
|
</parser>
|
|
|
|
<!-- UNIX server that uses Danish month names and "European" date formatting in Denmark's time zone -->
|
|
<parser
|
|
class="org.apache.commons.net.ftp.parser.UnixFTPEntryParser"
|
|
name="UNIX_Danish"
|
|
defaultDateFormatStr = "d MMM yyyy"
|
|
recentDateFormatStr = "d MMM HH:mm"
|
|
serverLanguageCode = "da"
|
|
serverTimeZoneId = "Europe/Copenhagen"
|
|
>
|
|
</parser>
|
|
|
|
<!-- VMS server that uses month names in a language not supported but uses the standard date formatting -->
|
|
<parser
|
|
class="org.apache.commons.net.ftp.parser.VMSFTPEntryParser"
|
|
name="VMS_custom"
|
|
shortMonthNames="jan|feb|mar|apr|ma\u00ED|j\u00FAn|j\u00FAl|\u00e1g\u00FA|sep|okt|n\u00F3v|des"
|
|
>
|
|
</parser>
|
|
</documentation>
|
|
</annotation>
|
|
|
|
<annotation>
|
|
<appInfo>
|
|
<meta.section type="apiInfo"/>
|
|
</appInfo>
|
|
<documentation>
|
|
The provider of a new FTPEntryParser must implement <samp>org.apache.commons.net.ftp.Configurable</samp> and <samp>org.apache.commons.net.ftp.FTPFileEntryParser</samp>
|
|
</documentation>
|
|
</annotation>
|
|
|
|
<annotation>
|
|
<appInfo>
|
|
<meta.section type="implementation"/>
|
|
</appInfo>
|
|
<documentation>
|
|
Customized VMS and WinNT implementations are supplied in the <code>org.eclipse.rse.subsystems.files.ftp</code> plug-in.
|
|
</documentation>
|
|
</annotation>
|
|
|
|
<annotation>
|
|
<appInfo>
|
|
<meta.section type="copyright"/>
|
|
</appInfo>
|
|
<documentation>
|
|
Copyright (c) 2007 Symbian Software Ltd. All rights reserved.
|
|
This program and the accompanying materials are made available under the terms
|
|
of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
|
available at http://www.eclipse.org/legal/epl-v10.html
|
|
|
|
Contributors:
|
|
Javier Montalvo Orus (Symbian) - initial API and implementation
|
|
</documentation>
|
|
</annotation>
|
|
|
|
</schema>
|