Search in sources :

Example 1 with NetworkCollectionTaskFactory

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);
    });
}
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 2 with NetworkCollectionTaskFactory

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

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