Index: src/eu/geclipse/core/filesystem/internal/filesystem/GEclipseFileStore.java
===================================================================
--- src/eu/geclipse/core/filesystem/internal/filesystem/GEclipseFileStore.java (revision 14212)
+++ src/eu/geclipse/core/filesystem/internal/filesystem/GEclipseFileStore.java (working copy)
@@ -15,6 +15,7 @@
package eu.geclipse.core.filesystem.internal.filesystem;
+import java.io.File;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URI;
@@ -380,5 +381,27 @@
private IProgressMonitor monitor( final IProgressMonitor monitor ) {
return new MasterMonitor( monitor, this.externalMonitor );
}
+
+ /**
+ * Provides the local representation of this file if the file is available
+ * locally. If the file can not be constructed or the file is not local
+ * null
is returned.
+ *
+ * @param options the options to use. None supported
+ * @param the monitor to use. Not supported
+ * @return the local file or null
if the file couldn't be
+ * created
+ */
+ @Override
+ public File toLocalFile( int options, IProgressMonitor monitor )
+ throws CoreException
+ {
+ String schemeGEFS = this.slave.getFileSystem().getScheme();
+ if( schemeGEFS.equalsIgnoreCase( EFS.SCHEME_FILE ) ) {
+ return new File( this.slave.toURI() );
+ }
+ return null;
+
+ }
}