gpt4 book ai didi

org.eclipse.ui.wizards.datatransfer.ZipFileStructureProvider.getZipFile()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 09:16:49 27 4
gpt4 key购买 nike

本文整理了Java中org.eclipse.ui.wizards.datatransfer.ZipFileStructureProvider.getZipFile()方法的一些代码示例,展示了ZipFileStructureProvider.getZipFile()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipFileStructureProvider.getZipFile()方法的具体详情如下:
包路径:org.eclipse.ui.wizards.datatransfer.ZipFileStructureProvider
类名称:ZipFileStructureProvider
方法名:getZipFile

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));
  }
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com