public class EclipseFileSystemSupportImpl extends AbstractFileSystemSupport
Constructor and Description |
---|
EclipseFileSystemSupportImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
delete(Path path) |
boolean |
exists(Path path) |
protected org.eclipse.core.resources.IResource |
findResource(Path path) |
java.lang.String |
getCharset(Path path) |
java.lang.Iterable<? extends Path> |
getChildren(Path path) |
java.io.InputStream |
getContentsAsStream(Path path) |
protected org.eclipse.core.resources.IContainer |
getEclipseContainer(Path path) |
protected org.eclipse.core.resources.IFile |
getEclipseFile(Path path) |
protected org.eclipse.core.resources.IFolder |
getEclipseFolder(Path path) |
long |
getLastModification(Path path) |
Path |
getPath(org.eclipse.emf.ecore.resource.Resource res) |
org.eclipse.core.resources.IWorkspaceRoot |
getWorkspaceRoot() |
boolean |
isFile(Path path) |
boolean |
isFolder(Path path) |
boolean |
mkdir(Path path) |
void |
setContentsAsStream(Path path,
java.io.InputStream stream) |
void |
setWorkspaceRoot(org.eclipse.core.resources.IWorkspaceRoot workspaceRoot) |
protected org.eclipse.core.runtime.Path |
toEclipsePath(Path path) |
java.net.URI |
toURI(Path path) |
protected java.net.URI |
toURI(Path path,
java.util.List<java.lang.String> trailingSegments) |
getContents, getEncodingProvider, setContents, setEncodingProvider
public org.eclipse.core.resources.IWorkspaceRoot getWorkspaceRoot()
public void setWorkspaceRoot(org.eclipse.core.resources.IWorkspaceRoot workspaceRoot)
protected org.eclipse.core.resources.IFile getEclipseFile(Path path)
protected org.eclipse.core.resources.IFolder getEclipseFolder(Path path)
protected org.eclipse.core.resources.IContainer getEclipseContainer(Path path)
protected org.eclipse.core.resources.IResource findResource(Path path)
protected org.eclipse.core.runtime.Path toEclipsePath(Path path)
public java.lang.Iterable<? extends Path> getChildren(Path path)
public boolean exists(Path path)
public boolean isFolder(Path path)
public boolean isFile(Path path)
public long getLastModification(Path path)
public java.lang.String getCharset(Path path)
public java.io.InputStream getContentsAsStream(Path path)
public boolean delete(Path path)
public boolean mkdir(Path path)
public void setContentsAsStream(Path path, java.io.InputStream stream)
public java.net.URI toURI(Path path)
protected java.net.URI toURI(Path path, java.util.List<java.lang.String> trailingSegments)
public Path getPath(org.eclipse.emf.ecore.resource.Resource res)
getPath
in class AbstractFileSystemSupport