if (callbackRefs == null) {
return;
}
for (Iterator i = callbackRefs.iterator(); i.hasNext();) {
final IElementReference callbackRef = (IElementReference) i.next();
final Map parms = Collections.unmodifiableMap(callbackRef
.getParameters());
ISafeRunnable run = new ISafeRunnable() {
public void handleException(Throwable exception) {
WorkbenchPlugin.log("Failed to update callback: " //$NON-NLS-1$
+ callbackRef.getCommandId(), exception);
}
public void run() throws Exception {
updater.updateElement(callbackRef.getElement(), parms);
}
};
if (filter == null) {
SafeRunner.run(run);
} else {