use of org.cytoscape.internal.task.TaskFactoryTunableAction in project cytoscape-impl by cytoscape.
the class CytoscapeMenuPopulator method addFactory.
private void addFactory(TaskFactory factory, Map<String, String> props) {
CyAction action;
if (props.containsKey(ServiceProperties.ENABLE_FOR))
action = new TaskFactoryTunableAction(factory, props, serviceRegistrar);
else
action = new TaskFactoryTunableAction(serviceRegistrar, factory, props);
addAction(action, factory, props);
}
use of org.cytoscape.internal.task.TaskFactoryTunableAction in project cytoscape-impl by cytoscape.
the class NetworkMediator method addFactory.
// // Private Methods // //
@SuppressWarnings({ "unchecked", "rawtypes" })
private void addFactory(final TaskFactory factory, final Map props) {
final CyAction action;
if (props.containsKey(ServiceProperties.ENABLE_FOR))
action = new TaskFactoryTunableAction(factory, props, serviceRegistrar);
else
action = new TaskFactoryTunableAction(serviceRegistrar, factory, props);
popupActionMap.put(factory, action);
}
Aggregations