当前位置: 首页>>代码示例>>Java>>正文


Java ProblemsLabelChangedEvent类代码示例

本文整理汇总了Java中org.eclipse.jdt.ui.ProblemsLabelDecorator.ProblemsLabelChangedEvent的典型用法代码示例。如果您正苦于以下问题:Java ProblemsLabelChangedEvent类的具体用法?Java ProblemsLabelChangedEvent怎么用?Java ProblemsLabelChangedEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ProblemsLabelChangedEvent类属于org.eclipse.jdt.ui.ProblemsLabelDecorator包,在下文中一共展示了ProblemsLabelChangedEvent类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createWorkingSetWrapperEvent

import org.eclipse.jdt.ui.ProblemsLabelDecorator.ProblemsLabelChangedEvent; //导入依赖的package包/类
/**
 * Creates a wrapper label provider change event with all visible {@link IWorkingSet working sets} if the working
 * set mode is enabled in the {@code Project Explorer}. Otherwise returns with {@code null}.
 *
 * @param event
 *            the original event.
 * @return a wrapper event with all visible working sets (if any) to trigger viewer refresh, or {@code null} if no
 *         viewer refresh is needed.
 */
private LabelProviderChangedEvent createWorkingSetWrapperEvent(final LabelProviderChangedEvent event) {
	if (event instanceof ProblemsLabelChangedEvent && workingSetManagerBroker.isWorkingSetTopLevel()) {
		final WorkingSetManager manager = workingSetManagerBroker.getActiveManager();
		if (null != manager) {
			final WorkingSet[] workingSets = manager.getWorkingSets();
			if (!Arrays2.isEmpty(workingSets)) {
				return new LabelProviderChangedEvent(delegate, workingSets);
			}
		}
	}
	return null;
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:22,代码来源:N4JSProjectExplorerLabelProvider.java


注:本文中的org.eclipse.jdt.ui.ProblemsLabelDecorator.ProblemsLabelChangedEvent类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。