Examples of complete()


Examples of jline.console.completer.Completer.complete()

            printUsage(command);
            break;
          }
          Completer completer = this.commandCompleters.get(command.getName());
          if (completer != null) {
            completionIndex = completer.complete(buffer, cursor, candidates);
            break;
          }
        }
      }
    }
View Full Code Here

Examples of jline.console.completer.StringsCompleter.complete()

            StringsCompleter delegate = new StringsCompleter();
            List<CamelContext> camelContexts = camelController.getCamelContexts();
            for (CamelContext camelContext : camelContexts) {
                delegate.getStrings().add(camelContext.getName());
            }
            return delegate.complete(buffer, cursor, candidates);
        } catch (Exception e) {
            // nothing to do, no completion
        }
        return 0;
    }
View Full Code Here

Examples of models.gtfs.GtfsSnapshotMerge.complete()

         
          stopTimesTask.completeTask("Imported " + stopTimeCount.toString() + " stop times.", GtfsSnapshotMergeTaskStatus.SUCCESS);
         
          String mergeDescription = new String("Imported GTFS file: " + agencyCount + " agencies; " + routeCount + " routes;" + stopCount + " stops; " +  stopTimeCount + " stopTimes; " + tripCount + " trips;" + shapePointCount + " shapePoints");
         
          snapshotMerge.complete(mergeDescription);
         
          inferTripPatterns(snapshotMerge.em());
        
          encodeTripShapes();
         
View Full Code Here

Examples of net.azib.ipscan.core.state.StateMachine.complete()

    scanningResults.initNewScan(mockFeeder("inff"));
    assertFalse(scanningResults.getScanInfo().isCompletedNormally());
    stateMachine.transitionToNext();
    stateMachine.startScanning();
    stateMachine.stop();
    stateMachine.complete();
    assertTrue(scanningResults.getScanInfo().isCompletedNormally());
  }
 
  @Test
  public void testStatisticsInCaseOfNormalFlow() throws Exception {
View Full Code Here

Examples of net.bnubot.util.task.Task.complete()

    Task t = TaskManager.createTask("Download", num, "files");
    for(FileDownload fd : queue) {
      downloadURLNow(fd.url, fd.to, fd.sha1, fd.force);
      t.advanceProgress();
    }
    t.complete();
    queue.clear();
  }

  public static void downloadURLNow(URL url, File to, SHA1Sum sha1, boolean force) throws Exception {
    // Make sure the path to the file exists
View Full Code Here

Examples of net.sf.jabref.autocompleter.AbstractAutoCompleter.complete()

  public void testDefaultAutoCompleter() {
    AbstractAutoCompleter autoCompleter = AutoCompleterFactory.getFor(OTHER_FIELD);
    for (BibtexEntry entry : getDatabse().getEntries()) {
      autoCompleter.addBibtexEntry(entry);
    }
    assertEquals("authentication", autoCompleter.complete("authentication")[0]);
    assertEquals(1, autoCompleter.complete("authentication").length);
    assertEquals("authentication", autoCompleter.complete("aut")[0]);
    assertEquals(1, autoCompleter.complete("aut").length);
    assertEquals("context", autoCompleter.complete("con")[0]);
    assertEquals(1, autoCompleter.complete("con").length);
View Full Code Here

Examples of net.spy.memcached.ops.OperationCallback.complete()

      assert cb != null : "No callback for " + responseOpaque;
      assert errorCode != 0 : "Got no error on a quiet mutation.";
      OperationStatus status=getStatusForErrorCode(errorCode, pl);
      assert status != null : "Got no status for a quiet mutation error";
      cb.receivedStatus(status);
      cb.complete();
    }
    resetInput();
  }

  @Override
View Full Code Here

Examples of nexj.core.rpc.InstanceFactory.complete()

         for (int i = 0; i != list.size(); ++i)
         {
            factory.instantiate((TransferObject)list.get(i));
         }

         factory.complete();

         for (Iterator itr = factory.getIdentityMap().valueIterator(); itr.hasNext();)
         {
            Object obj = itr.next();
View Full Code Here

Examples of nexj.core.runtime.InvocationContext.complete()

      }
      finally
      {
         if (context != null)
         {
            context.complete(false);
         }

         ThreadContextHolder.setContext(contextSaved);
      }
   }
View Full Code Here

Examples of nexj.core.scripting.object.ClassObject.complete()

  
            for (Iterator itr = m_classSet.iterator(); itr.hasNext();)
            {
               ClassObject clazz = (ClassObject)itr.next();
  
               clazz.complete(identitySet);
               m_stateMap.remove(clazz);
            }
  
            m_classSet = null;
            clearFunctions();
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.