use of org.cytoscape.task.NetworkViewCollectionTaskFactory in project cytoscape-impl by cytoscape.
the class AvailableCommandsImpl method addNetworkViewCollectionTaskFactory.
public void addNetworkViewCollectionTaskFactory(NetworkViewCollectionTaskFactory tf, Map<?, ?> props) {
TaskFactory provisioner = factoryProvisioner.createFor(tf);
synchronized (lock) {
provisioners.put(tf, provisioner);
addCommand(provisioner, props);
}
}
use of org.cytoscape.task.NetworkViewCollectionTaskFactory in project cytoscape-impl by cytoscape.
the class NetworkMediator method addNetworkViewCollectionTaskFactory.
public void addNetworkViewCollectionTaskFactory(NetworkViewCollectionTaskFactory 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.NetworkViewCollectionTaskFactory in project cytoscape-impl by cytoscape.
the class CytoscapeMenuPopulator method addNetworkViewCollectionTaskFactory.
public void addNetworkViewCollectionTaskFactory(NetworkViewCollectionTaskFactory 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