Search in sources :

Example 1 with NetworkTaskFactory

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);
    }
}
Also used : NetworkViewCollectionTaskFactory(org.cytoscape.task.NetworkViewCollectionTaskFactory) TaskFactory(org.cytoscape.work.TaskFactory) NetworkTaskFactory(org.cytoscape.task.NetworkTaskFactory) TableTaskFactory(org.cytoscape.task.TableTaskFactory) NetworkViewTaskFactory(org.cytoscape.task.NetworkViewTaskFactory) AbstractTaskFactory(org.cytoscape.work.AbstractTaskFactory)

Example 2 with NetworkTaskFactory

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()));
}
Also used : NetworkTaskFactory(org.cytoscape.task.NetworkTaskFactory)

Example 3 with NetworkTaskFactory

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);
}
Also used : NetworkViewCollectionTaskFactory(org.cytoscape.task.NetworkViewCollectionTaskFactory) TaskFactory(org.cytoscape.work.TaskFactory) NetworkViewTaskFactory(org.cytoscape.task.NetworkViewTaskFactory) NetworkTaskFactory(org.cytoscape.task.NetworkTaskFactory) TableTaskFactory(org.cytoscape.task.TableTaskFactory) NetworkCollectionTaskFactory(org.cytoscape.task.NetworkCollectionTaskFactory) DynamicTaskFactoryProvisioner(org.cytoscape.task.DynamicTaskFactoryProvisioner)

Example 4 with NetworkTaskFactory

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);
    });
}
Also used : NetworkViewCollectionTaskFactory(org.cytoscape.task.NetworkViewCollectionTaskFactory) NetworkCollectionTaskFactory(org.cytoscape.task.NetworkCollectionTaskFactory) NetworkViewTaskFactory(org.cytoscape.task.NetworkViewTaskFactory) TaskFactory(org.cytoscape.work.TaskFactory) NetworkTaskFactory(org.cytoscape.task.NetworkTaskFactory) EditNetworkTitleTaskFactory(org.cytoscape.task.edit.EditNetworkTitleTaskFactory) DynamicTaskFactoryProvisioner(org.cytoscape.task.DynamicTaskFactoryProvisioner)

Aggregations

NetworkTaskFactory (org.cytoscape.task.NetworkTaskFactory)4 NetworkViewCollectionTaskFactory (org.cytoscape.task.NetworkViewCollectionTaskFactory)3 NetworkViewTaskFactory (org.cytoscape.task.NetworkViewTaskFactory)3 TaskFactory (org.cytoscape.work.TaskFactory)3 DynamicTaskFactoryProvisioner (org.cytoscape.task.DynamicTaskFactoryProvisioner)2 NetworkCollectionTaskFactory (org.cytoscape.task.NetworkCollectionTaskFactory)2 TableTaskFactory (org.cytoscape.task.TableTaskFactory)2 EditNetworkTitleTaskFactory (org.cytoscape.task.edit.EditNetworkTitleTaskFactory)1 AbstractTaskFactory (org.cytoscape.work.AbstractTaskFactory)1