use of org.jowidgets.cap.ui.api.plugin.IServiceActionDecoratorPlugin in project jo-client-platform by jo-source.
the class LinkCreatorActionBuilderImpl method decorateActionWithPlugins.
private IAction decorateActionWithPlugins(final IAction action) {
IAction result = action;
final IPluginProperties properties = PluginProperties.create(IServiceActionDecoratorPlugin.SERVICE_TYPE_PROPERTY_KEY, ILinkCreatorService.class);
final List<IServiceActionDecoratorPlugin> plugins = PluginProvider.getPlugins(IServiceActionDecoratorPlugin.ID, properties);
for (final IServiceActionDecoratorPlugin plugin : plugins) {
result = plugin.decorate(result, linkCreatorService);
if (result == null) {
return null;
}
}
return result;
}
Aggregations