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

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

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

ResourceManager.destroyColor介绍

[英]Undoes everything that was done by a call to #createColor(ColorDescriptor).
[中]撤消通过调用#createColor(ColorDescriptor)完成的所有操作。

代码示例

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

/**
 * Undoes everything that was done by a call to {@link #createColor(RGB)}.
 * 
 * @since 1.0 
 *
 * @param descriptor RGB value of the color to dispose
 */
public final void destroyColor(RGB descriptor) {
  destroyColor(new RGBColorDescriptor(descriptor));
}

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

/**
 * Undoes everything that was done by a call to {@link #createColor(RGB)}.
 *
 * @since 3.1
 *
 * @param descriptor RGB value of the color to dispose
 */
public final void destroyColor(RGB descriptor) {
  destroyColor(new RGBColorDescriptor(descriptor));
}

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

/**
 * Undoes everything that was done by a call to {@link #createColor(RGB)}.
 *
 * @since 3.1
 *
 * @param descriptor RGB value of the color to dispose
 */
public final void destroyColor(RGB descriptor) {
  destroyColor(new RGBColorDescriptor(descriptor));
}

代码示例来源:origin: org.eclipse.neoscada.hmi/org.eclipse.scada.core.ui.styles

private void refresh ()
{
  if ( this.color != null )
  {
    // we may not dispose, the manager has to do that
    this.color = null;
  }
  if ( this.activeColor != null )
  {
    this.manager.destroyColor ( this.activeColor );
    this.activeColor = null;
  }
  this.activeColor = JFaceResources.getColorRegistry ().getColorDescriptor ( this.name, this.defaultColor );
  if ( this.activeColor != null )
  {
    this.color = this.manager.createColor ( this.activeColor );
  }
}

代码示例来源:origin: de.dentrassi.eclipse.neoscada.hmi/org.eclipse.scada.core.ui.styles

private void refresh ()
{
  if ( this.color != null )
  {
    // we may not dispose, the manager has to do that
    this.color = null;
  }
  if ( this.activeColor != null )
  {
    this.manager.destroyColor ( this.activeColor );
    this.activeColor = null;
  }
  this.activeColor = JFaceResources.getColorRegistry ().getColorDescriptor ( this.name, this.defaultColor );
  if ( this.activeColor != null )
  {
    this.color = this.manager.createColor ( this.activeColor );
  }
}

相关文章