本文整理汇总了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;
}