本文整理了Java中org.eclipse.core.filesystem.EFS.getLocalFileSystem()
方法的一些代码示例,展示了EFS.getLocalFileSystem()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EFS.getLocalFileSystem()
方法的具体详情如下:
包路径:org.eclipse.core.filesystem.EFS
类名称:EFS
方法名:getLocalFileSystem
[英]Returns the local file system.
[中]返回本地文件系统。
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
/**
* Returns whether the local file system supports accessing and modifying
* the given attribute.
*/
protected static boolean isAttributeSupported(int attribute) {
return (EFS.getLocalFileSystem().attributes() & attribute) != 0;
}
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
/**
* Returns whether the local file system supports accessing and modifying
* the given attribute.
*/
protected static boolean isAttributeSupported(int attribute) {
return (EFS.getLocalFileSystem().attributes() & attribute) != 0;
}
代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion
/**
* Returns whether the local file system supports accessing and modifying
* the given attribute.
*/
protected static boolean isAttributeSupported(int attribute) {
return (EFS.getLocalFileSystem().attributes() & attribute) != 0;
}
代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps
/**
* Returns whether the local file system supports accessing and modifying
* the given attribute.
*/
protected static boolean isAttributeSupported(int attribute) {
return (EFS.getLocalFileSystem().attributes() & attribute) != 0;
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
/**
* Returns whether the local file system supports accessing and modifying
* the given attribute.
*/
protected static boolean isAttributeSupported(int attribute) {
return (EFS.getLocalFileSystem().attributes() & attribute) != 0;
}
代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core
/**
* Returns whether the local file system supports accessing and modifying
* the given attribute.
*/
protected static boolean isAttributeSupported(int attribute) {
return (EFS.getLocalFileSystem().attributes() & attribute) != 0;
}
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core
/**
* Returns whether the local file system supports accessing and modifying
* the given attribute.
*/
protected static boolean isAttributeSupported(int attribute) {
return (EFS.getLocalFileSystem().attributes() & attribute) != 0;
}
代码示例来源:origin: eclipse/linuxtools
@Override
public IFileStore getResource(String path) {
return EFS.getLocalFileSystem().getStore(new Path(path));
}
代码示例来源:origin: org.eclipse.emf.cdo.workspace/efs
private IFileStore getLocalFile()
{
File file = new File(workspaceStore.getLocation(), DESCRIPTION_FILE_NAME);
return EFS.getLocalFileSystem().fromLocalFile(file);
}
}
代码示例来源:origin: org.eclipse/org.eclipse.ui.editors
private IFileStore queryFileStore() {
IPath stateLocation= EditorsPlugin.getDefault().getStateLocation();
IPath path= stateLocation.append("/_" + new Object().hashCode()); //$NON-NLS-1$
return EFS.getLocalFileSystem().getStore(path);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.editors
private IFileStore queryFileStore() {
IPath stateLocation= EditorsPlugin.getDefault().getStateLocation();
IPath path= stateLocation.append("/_" + new Object().hashCode()); //$NON-NLS-1$
return EFS.getLocalFileSystem().getStore(path);
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.ide.application
/** Return details if {@code path} exists */
private static FileLocationDetails checkLocation(String path, int line, int column) {
FileLocationDetails spec = new FileLocationDetails();
spec.path = new Path(path);
spec.fileStore = EFS.getLocalFileSystem().getStore(spec.path);
spec.fileInfo = spec.fileStore.fetchInfo();
spec.line = line;
spec.column = column;
return spec.fileInfo.exists() ? spec : null;
}
}
代码示例来源:origin: RepreZen/KaiZen-OpenAPI-Editor
public static IFileStore getExternalFile(IPath path) {
IFileStore fileStore = EFS.getLocalFileSystem().getStore(path);
IFileInfo fileInfo = fileStore.fetchInfo();
return fileInfo != null && fileInfo.exists() ? fileStore : null;
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.core.resources
public IHistoryStore getHistoryStore() {
if (_historyStore == null) {
IPath location = getWorkspace().getMetaArea().getHistoryStoreLocation();
location.toFile().mkdirs();
IFileStore store = EFS.getLocalFileSystem().getStore(location);
_historyStore = new HistoryStore2(getWorkspace(), store, 256);
}
return _historyStore;
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.core.resources
public IHistoryStore getHistoryStore() {
if (_historyStore == null) {
IPath location = getWorkspace().getMetaArea().getHistoryStoreLocation();
location.toFile().mkdirs();
IFileStore store = EFS.getLocalFileSystem().getStore(location);
_historyStore = new HistoryStore2(getWorkspace(), store, 256);
}
return _historyStore;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.core.resources
public IHistoryStore getHistoryStore() {
if (_historyStore == null) {
IPath location = getWorkspace().getMetaArea().getHistoryStoreLocation();
location.toFile().mkdirs();
IFileStore store = EFS.getLocalFileSystem().getStore(location);
_historyStore = new HistoryStore2(getWorkspace(), store, 256);
}
return _historyStore;
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
private void openInEditor(File log) {
IFileStore fileStore = EFS.getLocalFileSystem().getStore(new Path(log.getAbsolutePath()));
if (!fileStore.fetchInfo().isDirectory() && fileStore.fetchInfo().exists()) {
IWorkbenchWindow ww = PDEPlugin.getActiveWorkbenchWindow();
IWorkbenchPage page = ww.getActivePage();
try {
IDE.openEditorOnFileStore(page, fileStore);
} catch (PartInitException e) {
}
}
}
}
代码示例来源:origin: org.eclipse/org.eclipse.pde.runtime
public void run() {
IPath logPath = new Path(fView.getLogFile().getAbsolutePath());
IFileStore fileStore= EFS.getLocalFileSystem().getStore(logPath);
if (!fileStore.fetchInfo().isDirectory() && fileStore.fetchInfo().exists()) {
IWorkbenchWindow ww = PDERuntimePlugin.getActiveWorkbenchWindow();
IWorkbenchPage page = ww.getActivePage();
try {
IDE.openEditorOnFileStore(page, fileStore);
} catch (PartInitException e) {
}
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.m2e.core.ui
public void widgetSelected(SelectionEvent e) {
try {
IWorkbench workbench = PlatformUI.getWorkbench();
IWorkbenchPage workbenchPage = workbench.getActiveWorkbenchWindow().getActivePage();
IEditorDescriptor desc = workbench.getEditorRegistry().getDefaultEditor(
LifecycleMappingFactory.LIFECYCLE_MAPPING_METADATA_SOURCE_NAME);
IEditorInput input = new FileStoreEditorInput(EFS.getLocalFileSystem().fromLocalFile(
new File(mappingFilePath)));
IDE.openEditor(workbenchPage, input, desc.getId());
} catch(PartInitException ex) {
log.error(ex.getMessage(), ex);
}
}
});
代码示例来源:origin: org.eclipse.ui.views/log
public void run() {
IPath logPath = new Path(fView.getLogFile().getAbsolutePath());
IFileStore fileStore = EFS.getLocalFileSystem().getStore(logPath);
if (!fileStore.fetchInfo().isDirectory() && fileStore.fetchInfo().exists()) {
IWorkbenchWindow ww = Activator.getDefault().getWorkbench().getActiveWorkbenchWindow();
IWorkbenchPage page = ww.getActivePage();
try {
IDE.openEditorOnFileStore(page, fileStore);
} catch (PartInitException e) { // do nothing
}
}
}
内容来源于网络,如有侵权,请联系作者删除!