mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-03 22:35:43 +02:00
[176216] added translatable label
This commit is contained in:
parent
9af75140de
commit
cf475049f2
3 changed files with 26 additions and 10 deletions
|
@ -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">
|
||||
<parser
|
||||
id="org.eclipse.rse.ftp.parser.Unix"
|
||||
class="org.apache.commons.net.ftp.parser.UnixFTPEntryParser"
|
||||
name="UNIX">
|
||||
label="UNIX">
|
||||
</parser>
|
||||
<parser
|
||||
id="org.eclipse.rse.ftp.parser.MVS"
|
||||
class="org.apache.commons.net.ftp.parser.MVSFTPEntryParser"
|
||||
name="MVS">
|
||||
label="MVS">
|
||||
</parser>
|
||||
<parser
|
||||
id="org.eclipse.rse.ftp.parser.WinNT"
|
||||
class="org.eclipse.rse.internal.subsystems.files.ftp.parser.RSENTFTPEntryParser"
|
||||
name="WinNT">
|
||||
label="WinNT">
|
||||
</parser>
|
||||
<parser
|
||||
id="org.eclipse.rse.ftp.parser.OS2"
|
||||
class="org.apache.commons.net.ftp.parser.OS2FTPEntryParser"
|
||||
name="OS2">
|
||||
label="OS2">
|
||||
</parser>
|
||||
<parser
|
||||
id="org.eclipse.rse.ftp.parser.OS400"
|
||||
class="org.apache.commons.net.ftp.parser.OS400FTPEntryParser"
|
||||
name="OS400">
|
||||
label="OS400">
|
||||
</parser>
|
||||
<parser
|
||||
id="org.eclipse.rse.ftp.parser.VMS"
|
||||
class="org.eclipse.rse.internal.subsystems.files.ftp.parser.RSEVMSFTPEntryParser"
|
||||
name="VMS">
|
||||
label="VMS">
|
||||
</parser>
|
||||
</extension>
|
||||
|
||||
|
|
|
@ -51,11 +51,21 @@ The string attributes <code>defaultDateFormatStr</code> <code>
|
|||
|
||||
<element name="parser">
|
||||
<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>
|
||||
<documentation>
|
||||
Name that will be displayed in the UI
|
||||
</documentation>
|
||||
<appInfo>
|
||||
<meta.attribute translatable="true"/>
|
||||
</appInfo>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="class" type="string" use="required">
|
||||
|
|
|
@ -51,7 +51,7 @@ public class FTPClientConfigFactory implements IFTPClientConfigFactory {
|
|||
IConfigurationElement[] ce = ep.getConfigurationElements();
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ public class FTPClientConfigFactory implements IFTPClientConfigFactory {
|
|||
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))
|
||||
{
|
||||
|
@ -137,7 +137,7 @@ public class FTPClientConfigFactory implements IFTPClientConfigFactory {
|
|||
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))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue