Search in sources :

Example 6 with NetworkSearchTaskFactory

use of org.cytoscape.application.swing.search.NetworkSearchTaskFactory in project cytoscape-impl by cytoscape.

the class NetworkSearchMediator method runSearch.

private void runSearch() {
    NetworkSearchTaskFactory tf = networkSearchBar.getSelectedProvider();
    if (tf != null && tf.isReady()) {
        DialogTaskManager taskManager = serviceRegistrar.getService(DialogTaskManager.class);
        TaskObserver taskObserver = tf.getTaskObserver();
        if (taskObserver != null)
            taskManager.execute(tf.createTaskIterator(), taskObserver);
        else
            taskManager.execute(tf.createTaskIterator());
    }
}
Also used : TaskObserver(org.cytoscape.work.TaskObserver) AbstractNetworkSearchTaskFactory(org.cytoscape.application.swing.search.AbstractNetworkSearchTaskFactory) NetworkSearchTaskFactory(org.cytoscape.application.swing.search.NetworkSearchTaskFactory) DialogTaskManager(org.cytoscape.work.swing.DialogTaskManager)

Aggregations

NetworkSearchTaskFactory (org.cytoscape.application.swing.search.NetworkSearchTaskFactory)6 Icon (javax.swing.Icon)2 ImageIcon (javax.swing.ImageIcon)2 AbstractNetworkSearchTaskFactory (org.cytoscape.application.swing.search.AbstractNetworkSearchTaskFactory)2 DocumentEvent (javax.swing.event.DocumentEvent)1 DocumentListener (javax.swing.event.DocumentListener)1 RandomImage (org.cytoscape.internal.util.RandomImage)1 TaskObserver (org.cytoscape.work.TaskObserver)1 DialogTaskManager (org.cytoscape.work.swing.DialogTaskManager)1