use of org.cytoscape.task.NetworkTaskFactory in project cytoscape-impl by cytoscape.
the class AvailableCommandsImpl method addNetworkTaskFactory.
public void addNetworkTaskFactory(NetworkTaskFactory tf, Map<?, ?> props) {
TaskFactory provisioner = factoryProvisioner.createFor(tf);
synchronized (lock) {
provisioners.put(tf, provisioner);
addCommand(provisioner, props);
}
}
use of org.cytoscape.task.NetworkTaskFactory in project cytoscape-impl by cytoscape.
the class InnerCanvas method handleBackspaceKey.
private void handleBackspaceKey() {
// #1993
final TaskManager<?, ?> taskManager = serviceRegistrar.getService(TaskManager.class);
NetworkTaskFactory taskFactory = serviceRegistrar.getService(DeleteSelectedNodesAndEdgesTaskFactory.class);
taskManager.execute(taskFactory.createTaskIterator(m_view.getNetwork()));
}
use of org.cytoscape.task.NetworkTaskFactory in project cytoscape-impl by cytoscape.
the class CytoscapeMenuPopulator method addNetworkTaskFactory.
public void addNetworkTaskFactory(NetworkTaskFactory 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);
}
use of org.cytoscape.task.NetworkTaskFactory in project cytoscape-impl by cytoscape.
the class NetworkMediator method addNetworkTaskFactory.
public void addNetworkTaskFactory(NetworkTaskFactory factory, Map<?, ?> props) {
invokeOnEDT(() -> {
final DynamicTaskFactoryProvisioner factoryProvisioner = serviceRegistrar.getService(DynamicTaskFactoryProvisioner.class);
TaskFactory provisioner = factoryProvisioner.createFor(factory);
provisionerMap.put(factory, provisioner);
addFactory(provisioner, props);
});
}
Aggregations