final Map<INews, INews> replacements = new HashMap<INews, INews>();
for (final IFilterAction action : actions) {
NewsActionDescriptor newsActionDescriptor = fNewsActionPresentationManager.getNewsActionDescriptor(action.getActionId());
if (newsActionDescriptor != null && newsActionDescriptor.isForcable()) {
final INewsAction newsAction = newsActionDescriptor.getNewsAction();
if (newsAction != null) {
SafeRunnable.run(new ISafeRunnable() {
public void handleException(Throwable e) {
Activator.getDefault().logError(e.getMessage(), e);
}
public void run() throws Exception {
List<IEntity> changedEntities = newsAction.run(news, replacements, action.getData());
entitiesToSave.addAll(changedEntities);
}
});
}
}