Search in sources :

Example 1 with DynamicTaskFactoryProvisioner

use of org.cytoscape.task.DynamicTaskFactoryProvisioner in project cytoscape-impl by cytoscape.

the class CommandExecutorImpl method addTableTaskFactory.

public void addTableTaskFactory(TableTaskFactory tf, Map<?, ?> props) {
    DynamicTaskFactoryProvisioner provisioner = serviceRegistrar.getService(DynamicTaskFactoryProvisioner.class);
    addTF(new TFExecutor(provisioner.createFor(tf), interceptor), props);
}
Also used : DynamicTaskFactoryProvisioner(org.cytoscape.task.DynamicTaskFactoryProvisioner)

Example 2 with DynamicTaskFactoryProvisioner

use of org.cytoscape.task.DynamicTaskFactoryProvisioner in project cytoscape-impl by cytoscape.

the class CommandExecutorImpl method addNetworkViewCollectionTaskFactory.

public void addNetworkViewCollectionTaskFactory(NetworkViewCollectionTaskFactory tf, Map<?, ?> props) {
    DynamicTaskFactoryProvisioner provisioner = serviceRegistrar.getService(DynamicTaskFactoryProvisioner.class);
    addTF(new TFExecutor(provisioner.createFor(tf), interceptor), props);
}
Also used : DynamicTaskFactoryProvisioner(org.cytoscape.task.DynamicTaskFactoryProvisioner)

Example 3 with DynamicTaskFactoryProvisioner

use of org.cytoscape.task.DynamicTaskFactoryProvisioner in project cytoscape-impl by cytoscape.

the class CommandExecutorImpl method addNetworkViewTaskFactory.

public void addNetworkViewTaskFactory(NetworkViewTaskFactory tf, Map<?, ?> props) {
    DynamicTaskFactoryProvisioner provisioner = serviceRegistrar.getService(DynamicTaskFactoryProvisioner.class);
    addTF(new TFExecutor(provisioner.createFor(tf), interceptor), props);
}
Also used : DynamicTaskFactoryProvisioner(org.cytoscape.task.DynamicTaskFactoryProvisioner)

Example 4 with DynamicTaskFactoryProvisioner

use of org.cytoscape.task.DynamicTaskFactoryProvisioner 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 5 with DynamicTaskFactoryProvisioner

use of org.cytoscape.task.DynamicTaskFactoryProvisioner 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)

Aggregations

DynamicTaskFactoryProvisioner (org.cytoscape.task.DynamicTaskFactoryProvisioner)14 NetworkViewTaskFactory (org.cytoscape.task.NetworkViewTaskFactory)10 TaskFactory (org.cytoscape.work.TaskFactory)10 NetworkCollectionTaskFactory (org.cytoscape.task.NetworkCollectionTaskFactory)9 NetworkTaskFactory (org.cytoscape.task.NetworkTaskFactory)9 NetworkViewCollectionTaskFactory (org.cytoscape.task.NetworkViewCollectionTaskFactory)9 TableTaskFactory (org.cytoscape.task.TableTaskFactory)5 EditNetworkTitleTaskFactory (org.cytoscape.task.edit.EditNetworkTitleTaskFactory)4 ActionEvent (java.awt.event.ActionEvent)1 ActionListener (java.awt.event.ActionListener)1 BoxLayout (javax.swing.BoxLayout)1 JPanel (javax.swing.JPanel)1 CyApplicationManager (org.cytoscape.application.CyApplicationManager)1 CyLayoutAlgorithm (org.cytoscape.view.layout.CyLayoutAlgorithm)1 CyNetworkView (org.cytoscape.view.model.CyNetworkView)1 PanelTaskManager (org.cytoscape.work.swing.PanelTaskManager)1