Search in sources :

Example 1 with NetworkViewCollectionTaskFactory

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);
    }
}
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 NetworkViewCollectionTaskFactory

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);
    });
}
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)

Example 3 with NetworkViewCollectionTaskFactory

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);
}
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)

Aggregations

NetworkTaskFactory (org.cytoscape.task.NetworkTaskFactory)3 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