View | Details | Raw Unified | Return to bug 199773 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/rse/subsystems/files/core/servicesubsystem/FileServiceSubSystem.java (-4 / +3 lines)
Lines 18-23 Link Here
18
 * Martin Oberhuber (Wind River) - [177523] Unify singleton getter methods
18
 * Martin Oberhuber (Wind River) - [177523] Unify singleton getter methods
19
 * Martin Oberhuber (Wind River) - [186128] Move IProgressMonitor last in all API
19
 * Martin Oberhuber (Wind River) - [186128] Move IProgressMonitor last in all API
20
 * Martin Oberhuber (Wind River) - [183824] Forward SystemMessageException from IRemoteFileSubsystem
20
 * Martin Oberhuber (Wind River) - [183824] Forward SystemMessageException from IRemoteFileSubsystem
21
 * Javier Montalvo Orus (Symbian) - [199773] Default file transfer mode is ignored for some file types
21
 *******************************************************************************/
22
 *******************************************************************************/
22
23
23
package org.eclipse.rse.subsystems.files.core.servicesubsystem;
24
package org.eclipse.rse.subsystems.files.core.servicesubsystem;
Lines 452-461 Link Here
452
	
453
	
453
	protected boolean isBinary(String localEncoding, String hostEncoding, String remotePath)
454
	protected boolean isBinary(String localEncoding, String hostEncoding, String remotePath)
454
	{
455
	{
455
		boolean isText = !hostEncoding.equals(localEncoding) && 
456
		return SystemFileTransferModeRegistry.getInstance().isBinary(remotePath) ||
456
		SystemFileTransferModeRegistry.getInstance().isText(remotePath) && 
457
		       SystemEncodingUtil.getInstance().isXML(remotePath);	
457
		!SystemEncodingUtil.getInstance().isXML(remotePath) ;
458
		return !isText;
459
	}
458
	}
460
	
459
	
461
	protected boolean isBinary(IRemoteFile source)
460
	protected boolean isBinary(IRemoteFile source)

Return to bug 199773