Package com.eviware.x.dialogs

Examples of com.eviware.x.dialogs.XProgressDialog


  {
    try
    {
      if( iface.getWsdlContext().loadIfNecessary() )
      {
        XProgressDialog progressDialog = UISupport.getDialogs().createProgressDialog( "Loading Defintion", 3,
            "Initializing definition..", true );
        Loader loader = new Loader( iface );

        if( progressDialog != null )
          progressDialog.setCancelLabel( "Run in background" );

        progressDialog.run( loader );
        loader = null;
        treeModel.nodeStructureChanged( rootNode );
      }
    }
    catch( Exception e )
View Full Code Here


  {
    try
    {
      if( iface.getWadlContext().loadIfNecessary() )
      {
        XProgressDialog progressDialog = UISupport.getDialogs().createProgressDialog( "Loading Defintion", 3,
            "Initializing definition..", true );
        Loader loader = new Loader( iface );

        progressDialog.run( loader );
        loader = null;
        treeModel.nodeStructureChanged( rootNode );
      }
    }
    catch( Exception e )
View Full Code Here

    this.enableWebUI = enableWebUI;
  }

  public void createMockAsWarArchive()
  {
    XProgressDialog progressDialog = UISupport.getDialogs().createProgressDialog( "Creating War File", 3,
        "Building war file..", false );
    WorkerAdapter warWorker = new WorkerAdapter()
    {

      public Object construct( XProgressMonitor monitor )
      {
        if( prepareWarFile() )
        {
          createWebXml();

          if( warFile != null )
          {
            ArrayList<File> files = getAllFilesFrom( webInf );
            files.add( new File( warDir, "stylesheet.css" ) );
            files.add( new File( warDir, "header_logo.jpg" ) );

            File[] filez = files.toArray( new File[files.size()] );
            JarPackager.createJarArchive( warFile, warDir, filez );
          }
        }
        return null;
      }
    };
    try
    {
      progressDialog.run( warWorker );
    }
    catch( Exception e )
    {
      log.error( e.getMessage(), e );
    }
View Full Code Here

    if( loaded )
      return true;

    // always use progressDialog since files can import http urls
    XProgressDialog progressDialog = UISupport.getDialogs().createProgressDialog( "Loading Definition", 3,
        "Loading definition..", true );

    Loader loader = new Loader( wsdlLoader );
    progressDialog.run( loader );

    // Get the value. It is the responsibility of the progressDialog to
    // wait for the other thread to finish.
    if( loader.hasError() )
    {
View Full Code Here

    status = Status.RUNNING;

    loadTest.addPropertyChangeListener( WsdlLoadTest.THREADCOUNT_PROPERTY, internalPropertyChangeListener );

    XProgressDialog progressDialog = UISupport.getDialogs().createProgressDialog( "Starting threads",
        ( int )loadTest.getThreadCount(), "", true );
    try
    {
      testCaseStarter = new TestCaseStarter();
      progressDialog.run( testCaseStarter );
    }
    catch( Exception e )
    {
      SoapUI.logError( e );
    }
View Full Code Here

        status = Status.RUNNING;

        loadTest.addPropertyChangeListener(WsdlLoadTest.THREADCOUNT_PROPERTY, internalPropertyChangeListener);

        XProgressDialog progressDialog = UISupport.getDialogs().createProgressDialog("Starting threads",
                (int) loadTest.getThreadCount(), "", true);
        try {
            testCaseStarter = new TestCaseStarter();
            progressDialog.run(testCaseStarter);
        } catch (Exception e) {
            SoapUI.logError(e);
        }

        if (status == Status.RUNNING) {
View Full Code Here

            }

            if (locationsComboBox != null) {
                Location selectedLocation = (Location) locationsComboBox.getSelectedItem();

                XProgressDialog progressDialog = UISupport.getDialogs().createProgressDialog(UPLOAD_TEST_CASE_HEADING, 3,
                        UPLOADING_TEST_CASE_MESSAGE, false);
                SendTestCaseWorker sendTestCaseWorker = new SendTestCaseWorker(testCase, selectedLocation);
                try {
                    progressDialog.run(sendTestCaseWorker);
                } catch (Exception e) {
                    SoapUI.logError(e);
                }

                String redirectUrl = sendTestCaseWorker.getResult();
View Full Code Here

    }

    private void initTreeModel(WsdlInterface iface) {
        try {
            if (iface.getWsdlContext().loadIfNecessary()) {
                XProgressDialog progressDialog = UISupport.getDialogs().createProgressDialog("Loading Defintion", 3,
                        "Initializing definition..", true);
                Loader loader = new Loader(iface);

                if (progressDialog != null) {
                    progressDialog.setCancelLabel("Run in background");
                }

                progressDialog.run(loader);
                loader = null;
                treeModel.nodeStructureChanged(rootNode);
            }
        } catch (Exception e) {
            SoapUI.logError(e);
View Full Code Here

    }

    private void initTreeModel(RestService iface) {
        try {
            if (iface.getWadlContext().loadIfNecessary()) {
                XProgressDialog progressDialog = UISupport.getDialogs().createProgressDialog("Loading Defintion", 3,
                        "Initializing definition..", true);
                Loader loader = new Loader(iface);

                progressDialog.run(loader);
                loader = null;
                treeModel.nodeStructureChanged(rootNode);
            }
        } catch (Exception e) {
            SoapUI.logError(e);
View Full Code Here

        this.enableWebUI = enableWebUI;
    }

    public void createMockAsWarArchive() {

        XProgressDialog progressDialog = UISupport.getDialogs().createProgressDialog("Creating War File", 3,
                "Building war file..", false);
        WorkerAdapter warWorker = new WorkerAdapter() {

            public Object construct(XProgressMonitor monitor) {
                if (prepareWarFile()) {
                    createWebXml();

                    if (warFile != null) {
                        ArrayList<File> files = getAllFilesFrom(webInf);
                        files.add(new File(warDir, "stylesheet.css"));
                        files.add(new File(warDir, "header_logo.png"));

                        File[] filez = files.toArray(new File[files.size()]);
                        JarPackager.createJarArchive(warFile, warDir, filez);
                    }
                }
                return null;
            }
        };
        try {
            progressDialog.run(warWorker);
        } catch (Exception e) {
            log.error(e.getMessage(), e);
        }

    }
View Full Code Here

TOP

Related Classes of com.eviware.x.dialogs.XProgressDialog

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.