Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 12 package org.eclipse.core.filesystem; 13 14 import java.net.URI ; 15 import org.eclipse.core.filesystem.provider.FileInfo; 16 import org.eclipse.core.internal.filesystem.InternalFileSystemCore; 17 import org.eclipse.core.runtime.CoreException; 18 import org.eclipse.core.runtime.IProgressMonitor; 19 20 29 public class EFS { 30 34 public static final String PI_FILE_SYSTEM = "org.eclipse.core.filesystem"; 36 41 public static final String PT_FILE_SYSTEMS = "filesystems"; 43 52 public static final int NONE = 0; 53 54 60 public static final int APPEND = 1 << 0; 61 62 69 public static final int OVERWRITE = 1 << 1; 70 71 79 public static final int SHALLOW = 1 << 2; 80 81 87 public static final int SET_ATTRIBUTES = 1 << 10; 88 89 95 public static final int SET_LAST_MODIFIED = 1 << 11; 96 97 103 public static final int CACHE = 1 << 12; 104 105 114 public static final int ATTRIBUTE_READ_ONLY = 1 << 1; 115 116 125 public static final int ATTRIBUTE_EXECUTABLE = 1 << 2; 126 127 136 public static final int ATTRIBUTE_ARCHIVE = 1 << 3; 137 138 147 public static final int ATTRIBUTE_HIDDEN = 1 << 4; 148 149 184 public static final int ATTRIBUTE_SYMLINK = 1 << 5; 185 186 202 public static final int ATTRIBUTE_LINK_TARGET = 1 << 6; 203 204 208 public static final String SCHEME_FILE = "file"; 210 214 public static final String SCHEME_NULL = "null"; 216 219 224 public static final int ERROR_EXISTS = 268; 225 226 230 public static final int ERROR_NOT_EXISTS = 269; 231 232 236 public static final int ERROR_NO_LOCATION = 270; 237 238 242 public static final int ERROR_READ = 271; 243 244 248 public static final int ERROR_WRITE = 272; 249 250 254 public static final int ERROR_DELETE = 273; 255 256 261 public static final int ERROR_CASE_VARIANT_EXISTS = 275; 262 263 268 public static final int ERROR_WRONG_TYPE = 276; 269 270 274 public static final int ERROR_PARENT_READ_ONLY = 277; 275 276 280 public static final int ERROR_READ_ONLY = 279; 281 282 285 public static final int ERROR_INTERNAL = 566; 286 287 294 public static IFileInfo createFileInfo() { 295 return new FileInfo(); 296 } 297 298 309 public static IFileSystem getFileSystem(String scheme) throws CoreException { 310 return InternalFileSystemCore.getInstance().getFileSystem(scheme); 311 } 312 313 318 public static IFileSystem getLocalFileSystem() { 319 return InternalFileSystemCore.getInstance().getLocalFileSystem(); 320 } 321 322 333 public static IFileSystem getNullFileSystem() { 334 return InternalFileSystemCore.getInstance().getNullFileSystem(); 335 } 336 337 349 public static IFileStore getStore(URI uri) throws CoreException { 350 return InternalFileSystemCore.getInstance().getStore(uri); 351 } 352 353 356 private EFS() { 357 super(); 358 } 359 } 360
| Popular Tags
|