本文整理了Java中org.eclipse.core.filesystem.EFS.getFileSystem()
方法的一些代码示例,展示了EFS.getFileSystem()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EFS.getFileSystem()
方法的具体详情如下:
包路径:org.eclipse.core.filesystem.EFS
类名称:EFS
方法名:getFileSystem
[英]Returns a file system corresponding to the given scheme.
[中]返回与给定方案对应的文件系统。
代码示例来源:origin: org.eclipse.emf.cdo.workspace/efs
private static CDOWorkspaceFileSystem getFileSystem() throws CoreException
{
return (CDOWorkspaceFileSystem)EFS.getFileSystem(CDOWorkspaceFileSystem.SCHEME);
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.core.filesystem
/**
* The default implementation of {@link IFileStore#getFileSystem()}.
* Subclasses may override.
*/
@Override
public IFileSystem getFileSystem() {
try {
return EFS.getFileSystem(toURI().getScheme());
} catch (CoreException e) {
//this will only happen if toURI() has been incorrectly implemented
throw new RuntimeException(e);
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.core.filesystem
/**
* The default implementation of {@link IFileStore#getFileSystem()}.
* Subclasses may override.
*/
@Override
public IFileSystem getFileSystem() {
try {
return EFS.getFileSystem(toURI().getScheme());
} catch (CoreException e) {
//this will only happen if toURI() has been incorrectly implemented
throw new RuntimeException(e);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.core.filesystem
/**
* The default implementation of {@link IFileStore#getFileSystem()}.
* Subclasses may override.
*/
@Override
public IFileSystem getFileSystem() {
try {
return EFS.getFileSystem(toURI().getScheme());
} catch (CoreException e) {
//this will only happen if toURI() has been incorrectly implemented
throw new RuntimeException(e);
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide
private int getFileSystemAttributes(IResource resource) {
URI location = resource.getLocationURI();
if (location == null || location.getScheme() == null)
return 0;
IFileSystem fs;
try {
fs = EFS.getFileSystem(location.getScheme());
} catch (CoreException e) {
return 0;
}
return fs.attributes();
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.core.resources
IFileSystem system = null;
try {
system = EFS.getFileSystem(scheme1);
} catch (CoreException e) {
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.core.resources
IFileSystem system = null;
try {
system = EFS.getFileSystem(scheme1);
} catch (CoreException e) {
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.core.resources
protected void copyMetaArea(IProject source, IProject destination, IProgressMonitor monitor) throws CoreException {
IFileStore oldMetaArea = EFS.getFileSystem(EFS.SCHEME_FILE).getStore(workspace.getMetaArea().locationFor(source));
IFileStore newMetaArea = EFS.getFileSystem(EFS.SCHEME_FILE).getStore(workspace.getMetaArea().locationFor(destination));
oldMetaArea.copy(newMetaArea, EFS.NONE, monitor);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.core.resources
IFileSystem system = null;
try {
system = EFS.getFileSystem(scheme1);
} catch (CoreException e) {
代码示例来源:origin: org.eclipse.platform/org.eclipse.core.resources
protected void copyMetaArea(IProject source, IProject destination, IProgressMonitor monitor) throws CoreException {
IFileStore oldMetaArea = EFS.getFileSystem(EFS.SCHEME_FILE).getStore(workspace.getMetaArea().locationFor(source));
IFileStore newMetaArea = EFS.getFileSystem(EFS.SCHEME_FILE).getStore(workspace.getMetaArea().locationFor(destination));
oldMetaArea.copy(newMetaArea, EFS.NONE, monitor);
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.core.resources
protected void copyMetaArea(IProject source, IProject destination, IProgressMonitor monitor) throws CoreException {
IFileStore oldMetaArea = EFS.getFileSystem(EFS.SCHEME_FILE).getStore(workspace.getMetaArea().locationFor(source));
IFileStore newMetaArea = EFS.getFileSystem(EFS.SCHEME_FILE).getStore(workspace.getMetaArea().locationFor(destination));
oldMetaArea.copy(newMetaArea, EFS.NONE, monitor);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.core.resources
EFS.getFileSystem(location.getScheme());
} catch (CoreException e) {
return e.getStatus();
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.core.resources
EFS.getFileSystem(location.getScheme());
} catch (CoreException e) {
return e.getStatus();
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.core.resources
EFS.getFileSystem(location.getScheme());
} catch (CoreException e) {
return e.getStatus();
内容来源于网络,如有侵权,请联系作者删除!