當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。