org.eclipse.jdt.ui.ProblemsLabelDecorator.ProblemsLabelChangedEvent Java Examples
The following examples show how to use
org.eclipse.jdt.ui.ProblemsLabelDecorator.ProblemsLabelChangedEvent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: N4JSProjectExplorerLabelProvider.java From n4js with Eclipse Public License 1.0 | 5 votes |
/** * 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; }