mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-19 06:05:56 +02:00
[188718] fixing "FTP Settings" not being translated
This commit is contained in:
parent
01c26f45ed
commit
273d8bbee8
3 changed files with 11 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Martin Oberhuber (Wind River) - initial API and implementation
|
* Martin Oberhuber (Wind River) - initial API and implementation
|
||||||
|
* David Dykstal (IBM) - added RESID_FTP_SETTINGS_LABEL
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.subsystems.files.ftp;
|
package org.eclipse.rse.internal.subsystems.files.ftp;
|
||||||
|
@ -23,5 +24,6 @@ public class FTPSubsystemResources extends NLS {
|
||||||
|
|
||||||
public static String RESID_FTP_CONNECTORSERVICE_NAME;
|
public static String RESID_FTP_CONNECTORSERVICE_NAME;
|
||||||
public static String RESID_FTP_CONNECTORSERVICE_DESCRIPTION;
|
public static String RESID_FTP_CONNECTORSERVICE_DESCRIPTION;
|
||||||
|
public static String RESID_FTP_SETTINGS_LABEL;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
#
|
#
|
||||||
# Contributors:
|
# Contributors:
|
||||||
# Martin Oberhuber (Wind River) - initial API and implementation
|
# Martin Oberhuber (Wind River) - initial API and implementation
|
||||||
|
# David Dykstal (IBM) - added RESID_FTP_SETTINGS_LABEL
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# NLS_MESSAGEFORMAT_VAR
|
# NLS_MESSAGEFORMAT_VAR
|
||||||
|
@ -14,3 +15,4 @@
|
||||||
|
|
||||||
RESID_FTP_CONNECTORSERVICE_NAME=FTP Connector Service
|
RESID_FTP_CONNECTORSERVICE_NAME=FTP Connector Service
|
||||||
RESID_FTP_CONNECTORSERVICE_DESCRIPTION=The FTP Connector Service uses the FTP protocol to connect to a remote host. You must have an FTP daemon running on the host.
|
RESID_FTP_CONNECTORSERVICE_DESCRIPTION=The FTP Connector Service uses the FTP protocol to connect to a remote host. You must have an FTP daemon running on the host.
|
||||||
|
RESID_FTP_SETTINGS_LABEL=FTP Settings
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
* Martin Oberhuber (Wind River) - [cleanup] move FTPSubsystemResources out of core
|
* Martin Oberhuber (Wind River) - [cleanup] move FTPSubsystemResources out of core
|
||||||
* Javier Montalvo Orus (Symbian) - Fixing 176216 - [api] FTP sould provide API to allow clients register their own FTPListingParser
|
* Javier Montalvo Orus (Symbian) - Fixing 176216 - [api] FTP sould provide API to allow clients register their own FTPListingParser
|
||||||
* Javier Montalvo Orus (Symbian) - [187531] Improve exception thrown when Login Failed on FTP
|
* Javier Montalvo Orus (Symbian) - [187531] Improve exception thrown when Login Failed on FTP
|
||||||
|
* David Dykstal (IBM) - added RESID_FTP_SETTINGS_LABEL
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.subsystems.files.ftp.connectorservice;
|
package org.eclipse.rse.internal.subsystems.files.ftp.connectorservice;
|
||||||
|
@ -28,6 +29,7 @@ import java.util.Arrays;
|
||||||
|
|
||||||
import org.eclipse.core.runtime.IProgressMonitor;
|
import org.eclipse.core.runtime.IProgressMonitor;
|
||||||
import org.eclipse.rse.core.model.IHost;
|
import org.eclipse.rse.core.model.IHost;
|
||||||
|
import org.eclipse.rse.core.model.ILabeledObject;
|
||||||
import org.eclipse.rse.core.model.IPropertySet;
|
import org.eclipse.rse.core.model.IPropertySet;
|
||||||
import org.eclipse.rse.core.model.PropertyType;
|
import org.eclipse.rse.core.model.PropertyType;
|
||||||
import org.eclipse.rse.core.model.SystemSignonInformation;
|
import org.eclipse.rse.core.model.SystemSignonInformation;
|
||||||
|
@ -73,7 +75,11 @@ public class FTPConnectorService extends StandardConnectorService
|
||||||
Arrays.sort(keysArray);
|
Arrays.sort(keysArray);
|
||||||
|
|
||||||
_propertySet.addProperty("parser","AUTO",PropertyType.getEnumPropertyType(keysArray)); //$NON-NLS-1$ //$NON-NLS-2$
|
_propertySet.addProperty("parser","AUTO",PropertyType.getEnumPropertyType(keysArray)); //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
}
|
}
|
||||||
|
if (_propertySet instanceof ILabeledObject) {
|
||||||
|
String label = FTPSubsystemResources.RESID_FTP_SETTINGS_LABEL;
|
||||||
|
((ILabeledObject)_propertySet).setLabel(label);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void internalConnect(IProgressMonitor monitor) throws RemoteFileException, IOException
|
protected void internalConnect(IProgressMonitor monitor) throws RemoteFileException, IOException
|
||||||
|
|
Loading…
Add table
Reference in a new issue