Examples of cancel()


Examples of org.fest.swing.fixture.JFileChooserFixture.cancel()

    public void testFileOpenDialog() throws Exception {
        window.menuItemWithPath("File", "Load").click();

        JFileChooserFixture fileChooser = window.fileChooser();
        fileChooser.requireVisible();
        fileChooser.cancel();
    }

    @GUITest
    @Test
    public void testRecentFiles() throws Exception {
View Full Code Here

Examples of org.fusesource.ide.server.karaf.core.poller.PollThread.cancel()

   */
  protected void cancelPolling() {
    Object o = getControllableBehavior().getSharedData(BaseKarafPoller.KEY_POLLER);
    if (o instanceof PollThread) {
      PollThread pollThread = (PollThread)o;
      pollThread.cancel();
   
  }
}
View Full Code Here

Examples of org.geoserver.importer.FeatureTypeImporter.cancel()

        info.add(new AjaxLink("cancel") {

            @Override
            public void onClick(AjaxRequestTarget target) {
                FeatureTypeImporter importer = getImporter();
                importer.cancel();
               
                setResponsePage(new ImportSummaryPage(importer.getSummary()));
            }
           
        });
View Full Code Here

Examples of org.gephi.utils.longtask.spi.LongTask.cancel()

    }

    private void cancel() {
        if (currentStatistics != null && currentStatistics instanceof LongTask) {
            LongTask longTask = (LongTask) currentStatistics;
            longTask.cancel();
        }
    }

    private void showReport() {
        final String report = currentModel.getReport(statisticsUI.getStatisticsClass());
View Full Code Here

Examples of org.glassfish.hk2.runlevel.RunLevelFuture.cancel()

    @Override
    public void cancel() {
        RunLevelFuture rlf = getCurrentProceeding();
        if (rlf == null) return;
       
        rlf.cancel(false);
    }

    /* (non-Javadoc)
     * @see org.glassfish.hk2.runlevel.RunLevelController#getCurrentRunLevel()
     */
 
View Full Code Here

Examples of org.glite.ce.commonj.utils.TimerTask.cancel()

        if (name != null && policyTaskTable.containsKey(name)) {
            for (int i = 0; i < timer.size(); i++) {
                TimerTask timerTask = timer.getTimerTask(i);

                if (timerTask != null && timerTask.getName().equalsIgnoreCase(name)) {
                    timerTask.cancel();
                }
            }

            timer.purge();
            PolicyTask task = policyTaskTable.remove(name);
View Full Code Here

Examples of org.globus.gram.GramJob.cancel()

    } catch (InterruptedException e) {
      throw new GfacException(e, FaultCode.ErrorAtDependentService);
    } finally {
      if (job != null && !jobSucsseful) {
        try {
          job.cancel();
        } catch (Exception e) {
        }
      }
    }
View Full Code Here

Examples of org.gradle.gradleplugin.foundation.request.Request.cancel()

        gradlePluginLord.removeRequestObserver( observer );

        if (!completed) //its still running. Something is wrong.
        {
            request.cancel(); //just to clean up after ourselves a little, cancel the request.
            throw new AssertionFailedError("Failed to complete refresh in alotted time: " + maximumWaitValue + " " + maximumWaitUnits + ". Considering this failed.");
        }
    }

   /**
 
View Full Code Here

Examples of org.gudy.azureus2.core3.torrentdownloader.TorrentDownloader.cancel()

      }
     
      if (to_cancel.size() > 0){
        for (Iterator iter = to_cancel.iterator(); iter.hasNext();) {
          TorrentDownloader element = (TorrentDownloader) iter.next();
          element.cancel();
        }
      }

      for (Iterator iter = torrentList.iterator(); iter.hasNext();) {
        TorrentInfo info = (TorrentInfo) iter.next();
View Full Code Here

Examples of org.gudy.azureus2.core3.util.TimerEvent.cancel()

   
    TimerEvent  ev = event;
   
    if ( ev != null ){
     
      ev.cancel();
    }
  }
 
  public int
  getStatus()
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.