use of org.eclipse.n4js.ui.workingsets.WorkingSetManagerStateChangedListener.WorkingSetManagerChangeEvent in project n4js by eclipse.
the class WorkingSetManagerBrokerImpl method fireWorkingSetManagerUpdated.
@Override
public void fireWorkingSetManagerUpdated(final String id, final Diff<WorkingSet> diff) {
if (!diff.isEmpty() && isWorkingSetTopLevel()) {
final WorkingSetManagerChangeEvent event = new WorkingSetManagerChangeEvent(id, diff);
getDisplay().asyncExec(new Runnable() {
@Override
public void run() {
for (final WorkingSetManagerStateChangedListener listener : workingSetManagerStateChangeListeners) {
listener.workingSetManagerStateChanged(event);
}
}
});
}
}
Aggregations