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

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

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

ResourceManager.disposeExec介绍

[英]Causes the run() method of the runnable to be invoked just before the receiver is disposed. The runnable can be subsequently canceled by a call to cancelDisposeExec.
[中]使runnable的run()方法在释放接收器之前被调用。runnable随后可以通过调用cancelDisposeExec取消。

代码示例

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

/**
 * Creates an empty image registry using the given resource manager to allocate images.
 *
 * @param manager the resource manager used to allocate images
 *
 * @since 3.1
 */
public ImageRegistry(ResourceManager manager) {
  Assert.isNotNull(manager);
  Device dev = manager.getDevice();
  if (dev instanceof Display) {
    this.display = (Display)dev;
  }
  this.manager = manager;
  manager.disposeExec(disposeRunnable);
}

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

/**
 * Creates an empty image registry using the given resource manager to allocate images.
 *
 * @param manager the resource manager used to allocate images
 *
 * @since 3.1
 */
public ImageRegistry(ResourceManager manager) {
  Assert.isNotNull(manager);
  Device dev = manager.getDevice();
  if (dev instanceof Display) {
    this.display = (Display)dev;
  }
  this.manager = manager;
  manager.disposeExec(disposeRunnable);
}

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

/**
 * Creates an empty image registry using the given resource manager to allocate images.
 * 
 * @param manager the resource manager used to allocate images
 * 
 * @since 1.0
 */
public ImageRegistry(ResourceManager manager) {
  Assert.isNotNull(manager);
  Device dev = manager.getDevice();
  if (dev instanceof Display) {
    this.display = (Display)dev;
  }
  this.manager = manager;
  manager.disposeExec(disposeRunnable);
}

相关文章