- /**
- * decisions based on job result content + state of alignFrame that
- * originated the job:
- */
- /*
- * 1. Can/Should this job automatically open a new window for results
- */
- wsInfo.setViewResultsImmediatly(false);
+ if (validres > 0)
+ {
+ // add listeners and activate result display gui elements
+ /**
+ * decisions based on job result content + state of alignFrame that
+ * originated the job:
+ */
+ /*
+ * 1. Can/Should this job automatically open a new window for results
+ */
+ if (true)
+ {
+ wsInfo.setViewResultsImmediatly(false);
+ }
+ else
+ {
+ // realiseResults(true, true);
+ }
+ // otherwise, should automatically view results
+
+ // TODO: check if at least one or more contexts are valid - if so, enable
+ // gui
+ wsInfo.showResultsNewFrame.addActionListener(new ActionListener()
+ {
+
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ realiseResults(false);
+ }
+
+ });
+ wsInfo.mergeResults.addActionListener(new ActionListener()
+ {
+
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ realiseResults(true);
+ }
+
+ });
+
+ wsInfo.setResultsReady();
+ }
+ else
+ {
+ // tell the user nothing was returned.
+ }
+ }
+
+ public void realiseResults(boolean merge)
+ {