1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 14:55:41 +02:00

[176216] added translatable label

This commit is contained in:
Javier Montalvo Orus 2007-05-10 14:27:40 +00:00
parent 9af75140de
commit cf475049f2
3 changed files with 26 additions and 10 deletions

View file

@ -48,28 +48,34 @@ Javier Montalvo Orus (Symbian) - Fixing 176216 - [api] FTP sould provide API to
<extension point="org.eclipse.rse.subsystems.files.ftp.ftpFileEntryParser"> <extension point="org.eclipse.rse.subsystems.files.ftp.ftpFileEntryParser">
<parser <parser
id="org.eclipse.rse.ftp.parser.Unix"
class="org.apache.commons.net.ftp.parser.UnixFTPEntryParser" class="org.apache.commons.net.ftp.parser.UnixFTPEntryParser"
name="UNIX"> label="UNIX">
</parser> </parser>
<parser <parser
id="org.eclipse.rse.ftp.parser.MVS"
class="org.apache.commons.net.ftp.parser.MVSFTPEntryParser" class="org.apache.commons.net.ftp.parser.MVSFTPEntryParser"
name="MVS"> label="MVS">
</parser> </parser>
<parser <parser
id="org.eclipse.rse.ftp.parser.WinNT"
class="org.eclipse.rse.internal.subsystems.files.ftp.parser.RSENTFTPEntryParser" class="org.eclipse.rse.internal.subsystems.files.ftp.parser.RSENTFTPEntryParser"
name="WinNT"> label="WinNT">
</parser> </parser>
<parser <parser
id="org.eclipse.rse.ftp.parser.OS2"
class="org.apache.commons.net.ftp.parser.OS2FTPEntryParser" class="org.apache.commons.net.ftp.parser.OS2FTPEntryParser"
name="OS2"> label="OS2">
</parser> </parser>
<parser <parser
id="org.eclipse.rse.ftp.parser.OS400"
class="org.apache.commons.net.ftp.parser.OS400FTPEntryParser" class="org.apache.commons.net.ftp.parser.OS400FTPEntryParser"
name="OS400"> label="OS400">
</parser> </parser>
<parser <parser
id="org.eclipse.rse.ftp.parser.VMS"
class="org.eclipse.rse.internal.subsystems.files.ftp.parser.RSEVMSFTPEntryParser" class="org.eclipse.rse.internal.subsystems.files.ftp.parser.RSEVMSFTPEntryParser"
name="VMS"> label="VMS">
</parser> </parser>
</extension> </extension>

View file

@ -51,11 +51,21 @@ The string attributes &lt;code&gt;defaultDateFormatStr&lt;/code&gt; &lt;code&gt;
<element name="parser"> <element name="parser">
<complexType> <complexType>
<attribute name="name" type="string" use="required"> <attribute name="id" type="string" use="required">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="label" type="string" use="required">
<annotation> <annotation>
<documentation> <documentation>
Name that will be displayed in the UI Name that will be displayed in the UI
</documentation> </documentation>
<appInfo>
<meta.attribute translatable="true"/>
</appInfo>
</annotation> </annotation>
</attribute> </attribute>
<attribute name="class" type="string" use="required"> <attribute name="class" type="string" use="required">

View file

@ -51,7 +51,7 @@ public class FTPClientConfigFactory implements IFTPClientConfigFactory {
IConfigurationElement[] ce = ep.getConfigurationElements(); IConfigurationElement[] ce = ep.getConfigurationElements();
for (int i = 0; i < ce.length; i++) { for (int i = 0; i < ce.length; i++) {
String label = ce[i].getAttribute("name"); //$NON-NLS-1$ String label = ce[i].getAttribute("label"); //$NON-NLS-1$
keySet.add(label); keySet.add(label);
} }
} }
@ -68,7 +68,7 @@ public class FTPClientConfigFactory implements IFTPClientConfigFactory {
for (int i = 0; i < ce.length; i++) for (int i = 0; i < ce.length; i++)
{ {
String label = ce[i].getAttribute("name"); //$NON-NLS-1$ String label = ce[i].getAttribute("label"); //$NON-NLS-1$
if(label.equals(key)) if(label.equals(key))
{ {
@ -137,7 +137,7 @@ public class FTPClientConfigFactory implements IFTPClientConfigFactory {
for (int i = 0; i < ce.length; i++) for (int i = 0; i < ce.length; i++)
{ {
String label = ce[i].getAttribute("name"); //$NON-NLS-1$ String label = ce[i].getAttribute("label"); //$NON-NLS-1$
if(label.equals(key)) if(label.equals(key))
{ {