Search in sources :

Example 16 with ProgressDialogListener

use of org.vcell.util.ProgressDialogListener in project vcell by virtualcell.

the class ViewJobsPanel method refreshInterface.

private void refreshInterface() {
    Hashtable<String, Object> hash = new Hashtable<String, Object>();
    AsynchClientTask[] tasksArray = new AsynchClientTask[2];
    tasksArray[0] = new RunRefreshQuery();
    tasksArray[1] = new DisplayRefreshResults();
    ClientTaskDispatcher.dispatch(this, hash, tasksArray, false, true, new ProgressDialogListener() {

        @Override
        public void cancelButton_actionPerformed(EventObject newEvent) {
            try {
                getRefreshAllButton().setEnabled(true);
                getStopJobButton().setEnabled(model.isStoppable(table.getSelectedRow()));
                System.out.println("...user cancelled.");
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    });
}
Also used : AsynchClientTask(cbit.vcell.client.task.AsynchClientTask) ProgressDialogListener(org.vcell.util.ProgressDialogListener) Hashtable(java.util.Hashtable) EventObject(java.util.EventObject) BigString(org.vcell.util.BigString) EventObject(java.util.EventObject) RemoteProxyException(cbit.vcell.message.server.bootstrap.client.RemoteProxyVCellConnectionFactory.RemoteProxyException) DataAccessException(org.vcell.util.DataAccessException)

Aggregations

ProgressDialogListener (org.vcell.util.ProgressDialogListener)16 AsynchClientTask (cbit.vcell.client.task.AsynchClientTask)9 Hashtable (java.util.Hashtable)9 File (java.io.File)8 EventObject (java.util.EventObject)8 ClientTaskStatusSupport (org.vcell.util.ClientTaskStatusSupport)8 IOException (java.io.IOException)4 UserCancelException (org.vcell.util.UserCancelException)4 LocalWorkspace (org.vcell.vmicro.workflow.data.LocalWorkspace)4 UShortImage (cbit.vcell.VirtualMicroscopy.UShortImage)3 DataAccessException (org.vcell.util.DataAccessException)3 ImportRawTimeSeriesFromVFrapOp (org.vcell.vmicro.op.ImportRawTimeSeriesFromVFrapOp)3 RunBioNetGen (cbit.vcell.client.task.RunBioNetGen)2 RemoteProxyException (cbit.vcell.message.server.bootstrap.client.RemoteProxyVCellConnectionFactory.RemoteProxyException)2 Parameter (cbit.vcell.opt.Parameter)2 BNGExecutorService (cbit.vcell.server.bionetgen.BNGExecutorService)2 PrintWriter (java.io.PrintWriter)2 BigString (org.vcell.util.BigString)2 ImageException (cbit.image.ImageException)1 ROI (cbit.vcell.VirtualMicroscopy.ROI)1