Search in sources :

Example 1 with InstallUpdatesTask

use of org.cytoscape.app.internal.task.InstallUpdatesTask in project cytoscape-impl by cytoscape.

the class CheckForUpdatesPanel method installUpdates.

private void installUpdates(final Set<Update> updates) {
    TaskIterator ti = new TaskIterator();
    ti.append(new InstallUpdatesTask(updates, appManager));
    taskManager.execute(ti, new TaskObserver() {

        @Override
        public void taskFinished(ObservableTask task) {
        }

        @Override
        public void allFinished(FinishStatus finishStatus) {
            checkUpdates();
        }
    });
}
Also used : TaskObserver(org.cytoscape.work.TaskObserver) ObservableTask(org.cytoscape.work.ObservableTask) TaskIterator(org.cytoscape.work.TaskIterator) InstallUpdatesTask(org.cytoscape.app.internal.task.InstallUpdatesTask) FinishStatus(org.cytoscape.work.FinishStatus)

Aggregations

InstallUpdatesTask (org.cytoscape.app.internal.task.InstallUpdatesTask)1 FinishStatus (org.cytoscape.work.FinishStatus)1 ObservableTask (org.cytoscape.work.ObservableTask)1 TaskIterator (org.cytoscape.work.TaskIterator)1 TaskObserver (org.cytoscape.work.TaskObserver)1