本文整理匯總了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;
}