use of org.eclipse.ui.internal.menus.IActionSetsListener in project eclipse.platform.ui by eclipse-platform.
the class WorkbenchWindow method fireActionSetsChanged.
private final void fireActionSetsChanged() {
if (actionSetListeners != null) {
for (Object listener : actionSetListeners.getListeners()) {
final IActionSetsListener actionSetsListener = (IActionSetsListener) listener;
final WorkbenchPage currentPage = (WorkbenchPage) getActivePage();
final IActionSetDescriptor[] newActionSets;
if (currentPage == null) {
newActionSets = null;
} else {
newActionSets = currentPage.getActionSets();
}
final ActionSetsEvent event = new ActionSetsEvent(newActionSets);
actionSetsListener.actionSetsChanged(event);
}
}
}
Aggregations