本文整理了Java中org.eclipse.ui.wizards.datatransfer.ZipFileStructureProvider.getZipFile()
方法的一些代码示例,展示了ZipFileStructureProvider.getZipFile()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipFileStructureProvider.getZipFile()
方法的具体详情如下:
包路径:org.eclipse.ui.wizards.datatransfer.ZipFileStructureProvider
类名称:ZipFileStructureProvider
方法名:getZipFile
[英]Returns the zip file that this provider provides structure for.
[中]返回此提供程序为其提供结构的zip文件。
代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee.ui
/**
* Clears the cached structure provider after first finalizing it properly.
*/
protected void clearProviderCache() {
if (providerCache != null) {
closeZipFile(providerCache.getZipFile());
providerCache = null;
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ant.ui
/**
* Clears the cached structure provider after first finalizing it properly.
*/
private void clearProviderCache() {
if (providerCache != null) {
closeZipFile(providerCache.getZipFile());
providerCache = null;
}
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
public String getText(Object element) {
if (element == fProvider.getRoot()) {
return fProvider.getZipFile().getName();
}
return fProvider.getLabel(element);
}
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee.ui
/**
* Returns a structure provider for the specified zip file.
*/
protected ZipFileStructureProvider getStructureProvider(ZipFile targetZip) {
if (providerCache == null)
providerCache = new ZipFileStructureProvider(targetZip);
else if (!providerCache.getZipFile().getName().equals(targetZip.getName())) {
clearProviderCache(); // ie.- new value, so finalize&remove old value
providerCache = new ZipFileStructureProvider(targetZip);
} else if (!providerCache.getZipFile().equals(targetZip))
closeZipFile(targetZip); // ie.- duplicate handle to same .zip
return providerCache;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ant.ui
/**
* Returns a structure provider for the specified zip file.
*/
private ZipFileStructureProvider getStructureProvider(ZipFile targetZip) {
if (providerCache == null) {
providerCache = new ZipFileStructureProvider(targetZip);
} else if (!providerCache.getZipFile().getName().equals(targetZip.getName())) {
clearProviderCache();
// ie.- new value, so finalize & remove old value
providerCache = new ZipFileStructureProvider(targetZip);
} else if (!providerCache.getZipFile().equals(targetZip)) {
closeZipFile(targetZip); // ie.- duplicate handle to same .zip
}
return providerCache;
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
@Override
public String getText(Object element) {
if (element == fProvider.getRoot()) {
return BasicElementLabels.getResourceName(fProvider.getZipFile().getName());
}
return BasicElementLabels.getResourceName(fProvider.getLabel(element));
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
@Override
public String getText(Object element) {
if (element == fProvider.getRoot()) {
return BasicElementLabels.getResourceName(fProvider.getZipFile().getName());
}
return BasicElementLabels.getResourceName(fProvider.getLabel(element));
}
}
内容来源于网络,如有侵权,请联系作者删除!