- /** Job is Queued */
- public static final int STATE_QUEUING = 0;
-
- /** Job is Running */
- public static final int STATE_RUNNING = 1;
-
- /** Job has finished with no errors */
- public static final int STATE_STOPPED_OK = 2;
-
- /** Job has been cancelled with no errors */
- public static final int STATE_CANCELLED_OK = 3;
-
- /** job has stopped because of some error */
- public static final int STATE_STOPPED_ERROR = 4;
-
- /** job has failed because of some unavoidable service interruption */
- public static final int STATE_STOPPED_SERVERERROR = 5;
- int currentStatus = STATE_QUEUING;
- Image image;
- int angle = 0;
- String title = "";
- jalview.ws.WSClientI thisService;
- boolean serviceIsCancellable;
- JInternalFrame frame;
- JTabbedPane subjobs=null;
- java.util.Vector jobPanes = null;
- // tabbed or not
- public synchronized int addJobPane() {
- JScrollPane jobpane = new JScrollPane();
- JTextArea progressText = new JTextArea();
- progressText.setFont(new java.awt.Font("Verdana", 0, 10));
- progressText.setBorder(null);
- progressText.setEditable(false);
- progressText.setText("WS Job");
- progressText.setLineWrap(true);
- progressText.setWrapStyleWord(true);
- jobpane.setName("JobPane");
- jobpane.getViewport().add(progressText, null);
- jobpane.setBorder(null);
- if (jobPanes==null) {
- jobPanes = new Vector();
- }
- int newpane = jobPanes.size();
- jobPanes.add(jobpane);
-
- if (newpane==0) {
- this.add(jobpane, BorderLayout.CENTER);
- } else {
- if (newpane==1) {
- // revert to a tabbed pane.
- JScrollPane firstpane;
- this.remove(firstpane=(JScrollPane) jobPanes.get(0));
- subjobs=new JTabbedPane();
- this.add(subjobs, BorderLayout.CENTER);
- subjobs.add(firstpane);
- subjobs.setTitleAt(0, firstpane.getName());
- }
- subjobs.add(jobpane);
- }
- return newpane; // index for accessor methods below
- }
- /**
- * Creates a new WebserviceInfo object.
- *
- * @param title short name and job type
- * @param info reference or other human readable description
- */
- public WebserviceInfo(String title, String info)
+ /** Job is Queued */
+ public static final int STATE_QUEUING = 0;
+
+ /** Job is Running */
+ public static final int STATE_RUNNING = 1;
+
+ /** Job has finished with no errors */
+ public static final int STATE_STOPPED_OK = 2;
+
+ /** Job has been cancelled with no errors */
+ public static final int STATE_CANCELLED_OK = 3;
+
+ /** job has stopped because of some error */
+ public static final int STATE_STOPPED_ERROR = 4;
+
+ /** job has failed because of some unavoidable service interruption */
+ public static final int STATE_STOPPED_SERVERERROR = 5;
+ int currentStatus = STATE_QUEUING;
+ Image image;
+ int angle = 0;
+ String title = "";
+ jalview.ws.WSClientI thisService;
+ boolean serviceIsCancellable;
+ JInternalFrame frame;
+ JTabbedPane subjobs = null;
+ java.util.Vector jobPanes = null;
+ private boolean serviceCanMergeResults = false;
+ private boolean viewResultsImmediatly = true;
+ // tabbed or not
+ public synchronized int addJobPane()
+ {
+ JScrollPane jobpane = new JScrollPane();
+ JTextArea progressText = new JTextArea();
+ progressText.setFont(new java.awt.Font("Verdana", 0, 10));
+ progressText.setBorder(null);
+ progressText.setEditable(false);
+ progressText.setText("WS Job");
+ progressText.setLineWrap(true);
+ progressText.setWrapStyleWord(true);
+ jobpane.setName("JobPane");
+ jobpane.getViewport().add(progressText, null);
+ jobpane.setBorder(null);
+ if (jobPanes == null)