use of org.jowidgets.cap.ui.api.plugin.IServiceActionDecoratorPlugin in project jo-client-platform by jo-source.
the class ExecutorActionBuilderImpl method decorateActionWithPlugins.
private IAction decorateActionWithPlugins(final IAction action) {
IAction result = action;
final IPluginProperties properties = PluginProperties.create(IServiceActionDecoratorPlugin.SERVICE_TYPE_PROPERTY_KEY, IExecutorService.class);
final IExecutorService<?> executorService = (IExecutorService<?>) executor;
final List<IServiceActionDecoratorPlugin> plugins = PluginProvider.getPlugins(IServiceActionDecoratorPlugin.ID, properties);
for (final IServiceActionDecoratorPlugin plugin : plugins) {
result = plugin.decorate(result, executorService);
if (result == null) {
return null;
}
}
return result;
}
use of org.jowidgets.cap.ui.api.plugin.IServiceActionDecoratorPlugin in project jo-client-platform by jo-source.
the class CreatorActionBuilderImpl method decorateActionWithPlugins.
private IAction decorateActionWithPlugins(final IAction action) {
IAction result = action;
final IPluginProperties properties = PluginProperties.create(IServiceActionDecoratorPlugin.SERVICE_TYPE_PROPERTY_KEY, ICreatorService.class);
final List<IServiceActionDecoratorPlugin> plugins = PluginProvider.getPlugins(IServiceActionDecoratorPlugin.ID, properties);
for (final IServiceActionDecoratorPlugin plugin : plugins) {
result = plugin.decorate(result, creatorService);
if (result == null) {
return null;
}
}
return result;
}
use of org.jowidgets.cap.ui.api.plugin.IServiceActionDecoratorPlugin in project jo-client-platform by jo-source.
the class PasteLinkActionBuilderImpl 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;
}
use of org.jowidgets.cap.ui.api.plugin.IServiceActionDecoratorPlugin in project jo-client-platform by jo-source.
the class LinkDeleterActionBuilderImpl method decorateActionWithPlugins.
private IAction decorateActionWithPlugins(final IAction action) {
IAction result = action;
final IPluginProperties properties = PluginProperties.create(IServiceActionDecoratorPlugin.SERVICE_TYPE_PROPERTY_KEY, ILinkDeleterService.class);
final List<IServiceActionDecoratorPlugin> plugins = PluginProvider.getPlugins(IServiceActionDecoratorPlugin.ID, properties);
for (final IServiceActionDecoratorPlugin plugin : plugins) {
result = plugin.decorate(result, deleterService);
if (result == null) {
return null;
}
}
return result;
}
use of org.jowidgets.cap.ui.api.plugin.IServiceActionDecoratorPlugin in project jo-client-platform by jo-source.
the class DeleterActionBuilder method decorateActionWithPlugins.
private IAction decorateActionWithPlugins(final IAction action) {
IAction result = action;
final IPluginProperties properties = PluginProperties.create(IServiceActionDecoratorPlugin.SERVICE_TYPE_PROPERTY_KEY, IDeleterService.class);
final List<IServiceActionDecoratorPlugin> plugins = PluginProvider.getPlugins(IServiceActionDecoratorPlugin.ID, properties);
for (final IServiceActionDecoratorPlugin plugin : plugins) {
result = plugin.decorate(result, deleterService);
if (result == null) {
return null;
}
}
return result;
}
Aggregations