use of org.cytoscape.task.NetworkCollectionTaskFactory in project cytoscape-impl by cytoscape.
the class NetworkMediator method addNetworkCollectionTaskFactory.
public void addNetworkCollectionTaskFactory(NetworkCollectionTaskFactory factory, Map<?, ?> props) {
invokeOnEDT(() -> {
final DynamicTaskFactoryProvisioner factoryProvisioner = serviceRegistrar.getService(DynamicTaskFactoryProvisioner.class);
TaskFactory provisioner = factoryProvisioner.createFor(factory);
provisionerMap.put(factory, provisioner);
addFactory(provisioner, props);
});
}
use of org.cytoscape.task.NetworkCollectionTaskFactory in project cytoscape-impl by cytoscape.
the class CytoscapeMenuPopulator method addNetworkCollectionTaskFactory.
public void addNetworkCollectionTaskFactory(NetworkCollectionTaskFactory factory, Map<String, String> props) {
final DynamicTaskFactoryProvisioner factoryProvisioner = serviceRegistrar.getService(DynamicTaskFactoryProvisioner.class);
final TaskFactory provisioner = factoryProvisioner.createFor(factory);
provisionerMap.put(factory, provisioner);
addFactory(provisioner, props);
}
Aggregations