org.eclipse.jface.resource.ResourceManager.cancelDisposeExec()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(77)

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

ResourceManager.cancelDisposeExec介绍

[英]Cancels a runnable that was previously scheduled with disposeExec. Has no effect if the given runnable was not previously registered with disposeExec.
[中]取消以前使用[$0$]计划的可运行。如果给定的runnable之前未在disposeExec注册,则无效。

代码示例

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface

/**
   * Disposes this image registry, disposing any images
   * that were allocated for it, and clearing its entries.
   *
   * @since 3.1
   */
  public void dispose() {
    manager.cancelDisposeExec(disposeRunnable);

    if (table != null) {
      for (Entry entry : table.values()) {
        if (entry.image != null) {
          manager.destroyImage(entry.descriptor);
        }
      }
      table = null;
    }
    display = null;
  }
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface

/**
   * Disposes this image registry, disposing any images
   * that were allocated for it, and clearing its entries.
   * 
   * @since 1.0
   */
  public void dispose() {
    manager.cancelDisposeExec(disposeRunnable);
    
    if (table != null) {
      for (Iterator i = table.values().iterator(); i.hasNext();) {
        Entry entry = (Entry) i.next();
        if (entry.image != null) {
          manager.destroyImage(entry.descriptor);
        }
      }
      table = null;
    }
    display = null;
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

/**
   * Disposes this image registry, disposing any images
   * that were allocated for it, and clearing its entries.
   *
   * @since 3.1
   */
  public void dispose() {
    manager.cancelDisposeExec(disposeRunnable);

    if (table != null) {
      for (Iterator<Entry> i = table.values().iterator(); i.hasNext();) {
        Entry entry = i.next();
        if (entry.image != null) {
          manager.destroyImage(entry.descriptor);
        }
      }
      table = null;
    }
    display = null;
  }
}

相关文章