Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 95511 Details for
Bug 226481
The GEclipseFileStore should implement the toLocalFile(...) method
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Implementation of the IFileStore.toLocalFile(...) method (keeping CACHE mechanism)
GEclipseFileStore.java.patch (text/plain), 1.59 KB, created by
Moritz Post
on 2008-04-10 08:41:06 EDT
(
hide
)
Description:
Implementation of the IFileStore.toLocalFile(...) method (keeping CACHE mechanism)
Filename:
MIME Type:
Creator:
Moritz Post
Created:
2008-04-10 08:41:06 EDT
Size:
1.59 KB
patch
obsolete
>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; >@@ -381,4 +382,30 @@ > return new MasterMonitor( monitor, this.externalMonitor ); > } > >+ /** >+ * Provides a local representation of this file if the file is available >+ * locally. If the file can not be constructed or the file is not local >+ * <code>null</code> is returned. >+ * <p> >+ * When the {@link EFS#CACHE} flag is specified via the options, the >+ * underlying system generates a cached copy of this file. >+ * >+ * @param options the options can provide the {@link EFS#CACHE} flag >+ * @param monitor the monitor to use >+ * @return a local file or <code>null</code> if the file couldn't be created >+ */ >+ @Override >+ public File toLocalFile( int options, IProgressMonitor monitor ) >+ throws CoreException >+ { >+ if( options == EFS.CACHE ) { >+ super.toLocalFile( options, monitor ); >+ } else { >+ String schemeGEFS = this.slave.getFileSystem().getScheme(); >+ if( schemeGEFS.equalsIgnoreCase( EFS.SCHEME_FILE ) ) { >+ return new File( this.slave.toURI() ); >+ } >+ } >+ return null; >+ } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 226481
:
95501
| 95511