Package org.apache.airavata.xbaya.gui

Examples of org.apache.airavata.xbaya.gui.WaitDialog


        Cancelable cancelable = new Cancelable() {
            public void cancel() {
                // Nothing
            }
        };
        final WaitDialog dialog = new WaitDialog(cancelable, "title", "message", engine);
        Thread showThread1 = new Thread() {
            @Override
            public void run() {
                dialog.show();
            }

        };

        Thread showThread2 = new Thread() {
            @Override
            public void run() {
                dialog.show();
            }

        };

        Thread hideThread1 = new Thread() {
            @Override
            public void run() {
                dialog.hide();
            }

        };

        Thread hideThread2 = new Thread() {
            @Override
            public void run() {
                dialog.hide();
            }

        };

        showThread1.start();
View Full Code Here


        Cancelable cancelable = new Cancelable() {
            public void cancel() {
                // Nothing
            }
        };
        final WaitDialog dialog = new WaitDialog(cancelable, "title", "message", engine);
        Thread showThread1 = new Thread() {
            @Override
            public void run() {
                dialog.show();
            }

        };

        Thread hideThread1 = new Thread() {
            @Override
            public void run() {
                dialog.hide();
            }

        };

        Thread hideThread2 = new Thread() {
            @Override
            public void run() {
                dialog.hide();
            }

        };

        showThread1.start();
View Full Code Here

        Cancelable cancelable = new Cancelable() {
            public void cancel() {
                // Nothing
            }
        };
        final WaitDialog dialog = new WaitDialog(cancelable, "title", "message", engine);
        Thread showThread1 = new Thread() {
            @Override
            public void run() {
                dialog.show();
            }

        };

        Thread showThread2 = new Thread() {
            @Override
            public void run() {
                dialog.show();
            }

        };

        Thread hideThread1 = new Thread() {
            @Override
            public void run() {
                dialog.hide();
            }

        };

        Thread hideThread2 = new Thread() {
            @Override
            public void run() {
                dialog.hide();
            }

        };

        showThread1.start();
View Full Code Here

          }
        }
      }
      this.notifier.workflowTerminated();
      if (this.mode == GUI_MODE) {
        final WaitDialog waitDialog = new WaitDialog(new Cancelable() {
          @Override
          public void cancel() {
            // Do nothing
          }
        }, "Stop Workflow", "Cleaning up resources for Workflow",
            this.engine);
        new Thread(new Runnable() {
          @Override
          public void run() {
            waitDialog.show();
          }
        }).start();
        // Send Notification for output values
        finish();
        // Sleep to provide for notification delay
        try {
          Thread.sleep(1000);
        } catch (InterruptedException e) {
          e.printStackTrace();
        }
        cleanup();
        this.notifier.cleanup();
        waitDialog.hide();
      } else {
        finish();
      }
      this.workflow.setExecutionState(XBayaExecutionState.NONE);
    } catch (RuntimeException e) {
View Full Code Here

TOP

Related Classes of org.apache.airavata.xbaya.gui.WaitDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.