本文整理了Java中org.eclipse.jface.resource.ResourceManager.destroyColor
方法的一些代码示例,展示了ResourceManager.destroyColor
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ResourceManager.destroyColor
方法的具体详情如下:
包路径:org.eclipse.jface.resource.ResourceManager
类名称: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 );
}
}
内容来源于网络,如有侵权,请联系作者删除!