mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-05 16:15:25 +02:00
[175908] clean up of a couple things
This commit is contained in:
parent
ae6b64c963
commit
8f9e1a284e
3 changed files with 8 additions and 6 deletions
|
@ -362,8 +362,12 @@ public class DStoreHostFile implements IHostFile
|
|||
if (str == null)
|
||||
{
|
||||
System.out.println("HELP:"+_element.toString()); //$NON-NLS-1$
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return(str.equals("true")); //$NON-NLS-1$
|
||||
}
|
||||
return(str.equals("true")); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
public boolean canWrite() {
|
||||
|
|
|
@ -30,7 +30,7 @@ public class DStoreInputStream extends InputStream
|
|||
private DataElement _minerElement;
|
||||
private String _encoding;
|
||||
private int _mode;
|
||||
private DataElement _cmdStatus;
|
||||
private DataElement _cmdStatus; // leaving this, in case of need for error checking
|
||||
private File _localFile;
|
||||
private InputStream _localFileInputStream;
|
||||
|
||||
|
@ -52,7 +52,7 @@ public class DStoreInputStream extends InputStream
|
|||
|
||||
try
|
||||
{
|
||||
_localFile = File.createTempFile("download", "rse");
|
||||
_localFile = File.createTempFile("download", "rse"); //$NON-NLS-1$//$NON-NLS-2$
|
||||
DataElement remoteElement = ds.createObject(universaltemp, de.getType(), _remotePath, String.valueOf(_mode));
|
||||
DataElement localElement = ds.createObject(universaltemp, de.getType(), _localFile.getAbsolutePath(), _encoding);
|
||||
|
||||
|
|
|
@ -314,9 +314,7 @@ public class StatusChangeListener implements IDomainListener
|
|||
return getStatus().getAttribute(DE.A_VALUE).equals("done") || getStatus().getAttribute(DE.A_NAME).equals("done"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.eclipse.rse.core.subsystems.ICommunicationsListener#isPassiveCommunicationsListener()
|
||||
*/
|
||||
|
||||
public boolean isPassiveCommunicationsListener() {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue