1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-10 01:35:39 +02:00

[226574][api] Add ISubSystemConfiguration#supportsEncoding()

This commit is contained in:
Martin Oberhuber 2008-04-11 10:02:15 +00:00
parent 56237a00c6
commit d2324098ef
2 changed files with 132 additions and 148 deletions

View file

@ -20,6 +20,7 @@
* David McKnight (IBM) - [209552] API changes to use multiple and getting rid of deprecated
* Kevin Doyle (IBM) - [208778] new API getOutputSteam for getting an output stream in append mode
* David McKnight (IBM) - [209704] added supportsEncodingConversion()
* Martin Oberhuber (Wind River) - [226574][api] Add ISubSystemConfiguration#supportsEncoding()
*******************************************************************************/
package org.eclipse.rse.subsystems.files.core.subsystems;
@ -247,15 +248,6 @@ public interface IRemoteFileSubSystem extends ISubSystem {
*/
public String getParentFolderName(IRemoteFile folderOrFile);
/**
* Returns whether the file subsystem supports encodings. There are file subsystems that deal with codepages and encodings
* using other mechanisms besides encodings, and such platforms should return <code>false</code>. Other file subsystems
* may not deal with encodings at all.
* @return <code>true<code> if the file subsystem supports encodings, <code>false</code> otherwise.
* @since 2.0
*/
public boolean supportsEncoding();
/**
* Returns the encoding of the remote system.
* @return the encoding of the remote system.

View file

@ -26,6 +26,7 @@
* David McKnight (IBM) - [216252] [api][nls] Resource Strings specific to subsystems should be moved from rse.ui into files.ui / shells.ui / processes.ui where possible
* David McKnight (IBM) - [220547] [api][breaking] SimpleSystemMessage needs to specify a message id and some messages should be shared
* Martin Oberhuber (Wind River) - [218304] Improve deferred adapter loading
* Martin Oberhuber (Wind River) - [226574][api] Add ISubSystemConfiguration#supportsEncoding()
*******************************************************************************/
package org.eclipse.rse.subsystems.files.core.subsystems;
@ -1443,15 +1444,6 @@ public abstract class RemoteFileSubSystem extends SubSystem implements IRemoteFi
}
/**
* Returns <code>true</code> by default. Subclasses should override if they do not support encodings.
* @see org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFileSubSystem#supportsEncoding()
* @since 2.0
*/
public boolean supportsEncoding() {
return true;
}
/**
* Returns the local platform encoding if the default encoding of the host was not set.
* Subclasses should override to return the actual remote encoding.