Lines 15-20
Link Here
|
15 |
|
15 |
|
16 |
package eu.geclipse.core.filesystem.internal.filesystem; |
16 |
package eu.geclipse.core.filesystem.internal.filesystem; |
17 |
|
17 |
|
|
|
18 |
import java.io.File; |
18 |
import java.io.InputStream; |
19 |
import java.io.InputStream; |
19 |
import java.io.OutputStream; |
20 |
import java.io.OutputStream; |
20 |
import java.net.URI; |
21 |
import java.net.URI; |
Lines 381-384
Link Here
|
381 |
return new MasterMonitor( monitor, this.externalMonitor ); |
382 |
return new MasterMonitor( monitor, this.externalMonitor ); |
382 |
} |
383 |
} |
383 |
|
384 |
|
|
|
385 |
/** |
386 |
* Provides a local representation of this file if the file is available |
387 |
* locally. If the file can not be constructed or the file is not local |
388 |
* <code>null</code> is returned. |
389 |
* <p> |
390 |
* When the {@link EFS#CACHE} flag is specified via the options, the |
391 |
* underlying system generates a cached copy of this file. |
392 |
* |
393 |
* @param options the options can provide the {@link EFS#CACHE} flag |
394 |
* @param monitor the monitor to use |
395 |
* @return a local file or <code>null</code> if the file couldn't be created |
396 |
*/ |
397 |
@Override |
398 |
public File toLocalFile( int options, IProgressMonitor monitor ) |
399 |
throws CoreException |
400 |
{ |
401 |
if( options == EFS.CACHE ) { |
402 |
super.toLocalFile( options, monitor ); |
403 |
} else { |
404 |
String schemeGEFS = this.slave.getFileSystem().getScheme(); |
405 |
if( schemeGEFS.equalsIgnoreCase( EFS.SCHEME_FILE ) ) { |
406 |
return new File( this.slave.toURI() ); |
407 |
} |
408 |
} |
409 |
return null; |
410 |
} |
384 |
} |
411 |
} |