1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-21 07:05:58 +02:00

[175908] clean up of a couple things

This commit is contained in:
David McKnight 2007-02-28 21:21:49 +00:00
parent ae6b64c963
commit 8f9e1a284e
3 changed files with 8 additions and 6 deletions

View file

@ -362,9 +362,13 @@ public class DStoreHostFile implements IHostFile
if (str == null) if (str == null)
{ {
System.out.println("HELP:"+_element.toString()); //$NON-NLS-1$ 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() { public boolean canWrite() {
String str = getAttribute(_element.getSource(), ATTRIBUTE_CAN_WRITE); String str = getAttribute(_element.getSource(), ATTRIBUTE_CAN_WRITE);

View file

@ -30,7 +30,7 @@ public class DStoreInputStream extends InputStream
private DataElement _minerElement; private DataElement _minerElement;
private String _encoding; private String _encoding;
private int _mode; private int _mode;
private DataElement _cmdStatus; private DataElement _cmdStatus; // leaving this, in case of need for error checking
private File _localFile; private File _localFile;
private InputStream _localFileInputStream; private InputStream _localFileInputStream;
@ -52,7 +52,7 @@ public class DStoreInputStream extends InputStream
try 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 remoteElement = ds.createObject(universaltemp, de.getType(), _remotePath, String.valueOf(_mode));
DataElement localElement = ds.createObject(universaltemp, de.getType(), _localFile.getAbsolutePath(), _encoding); DataElement localElement = ds.createObject(universaltemp, de.getType(), _localFile.getAbsolutePath(), _encoding);

View file

@ -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$ 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() { public boolean isPassiveCommunicationsListener() {
return false; return false;
} }