Examples of check()


Examples of org.waveprotocol.wave.client.common.util.SignalEvent.KeyModifier.check()

    // When modifier key is pressed on Mac it is instantly applied to modifiers.
    // So we check on Mac that only "CMD" is pressed.
    // On non-Mac when "CTRL" is the first key in sequence, there are no
    // modifiers applied yet.
    KeyModifier modifier = UserAgent.isMac() ? KeyModifier.META : KeyModifier.NONE;
    return modifier.check(signal) && (signal.getKeyCode() == getActionKeyCode());
  }

  private static int getActionKeyCode() {
    return UserAgent.isMac() ? COMMAND_KEY_CODE : KeyCodes.KEY_CTRL;
  }
View Full Code Here

Examples of org.wikipediacleaner.api.check.CheckWiki.check()

        }
      }
    }
    if ((error != null) && (errorFound == false)) {
      CheckWiki checkWiki = APIFactory.getCheckWiki();
      List<CheckWikiDetection> detections = checkWiki.check(page);
      int answer = JOptionPane.NO_OPTION;
      if (detections != null) {
        boolean errorDetected = false;
        for (CheckWikiDetection detection : detections) {
          if (detection.getErrorNumber() == error.getErrorNumber()) {
View Full Code Here

Examples of org.wso2.carbon.utils.ArchiveManipulator.check()

        } catch (IOException e) {
            throw new RuleServiceManagementException("Cannot write facts", e, log);
        }
        ArchiveManipulator archiveManipulator = new ArchiveManipulator();
        try {
            String[] strings = archiveManipulator.check(factFile.getAbsolutePath());
            List<String> list = filterClasses(strings);
            return list.toArray(new String[list.size()]);
        } catch (IOException e) {
            throw new RuleServiceManagementException("Cannot extractPayload classes from the fact" +
                    " file", e, log);
View Full Code Here

Examples of org.xmlBlaster.contrib.replication.I_ReplSlave.check()

      if (slave == null) {
         log.warning("could not find a slave for replication client '" + relativeName + "'");
         return entryList;
      }
      try {
         return slave.check(entryList, cbQueue);
      }
      catch (Exception ex) {
         if (slave != null)
            slave.handleException(ex);
         if (ex instanceof XmlBlasterException)
View Full Code Here

Examples of plotter.LineChecker.check()

    add(.9, .9);
    CountingGraphics g = paint();

    LineChecker c = new LineChecker();
    c.require(19, 180, 179, 20);
    c.check(g.getLines());
    assertEquals(2, g.getPointCount());
  }


  public void testPaintInverted() throws InterruptedException, InvocationTargetException {
View Full Code Here

Examples of railo.runtime.Mapping.check()

  private void doCheckMappings(ConfigWeb config) {
        Mapping[] mappings = config.getMappings();
        for(int i=0;i<mappings.length;i++) {
            Mapping mapping = mappings[i];
            mapping.check();
        }
    }

  private PageSourcePool[] getPageSourcePools(ConfigWeb config) {
    return getPageSourcePools(config.getMappings());
View Full Code Here

Examples of sos.connection.SOSConnectionVersionLimiter.check()

        SOSConnectionVersionLimiter limiter = new SOSConnectionVersionLimiter();
        limiter.setExcludedThroughVersion(3,999);
        for (int i=0; i<13; i++){
          limiter.addExcludedVersion("4.0."+i);
        }
        limiter.check(connection, getLogger());
        if (getJobProperties().getProperty("operations") != null) {
              operations = getJobProperties().getProperty("operations").toString().split(",");
          }
          if (operations == null) {
              operations = new String[3];
View Full Code Here

Examples of starlight.taliis.helpers.adtChecker.check()

      openedFile os = fm.getActiveFile();
      if(os.obj instanceof adt) {
        adt f = (adt)os.obj;
       
        adtChecker check = new adtChecker(f);
        check.check();
      }
    }
  }

}
View Full Code Here

Examples of statechum.analysis.learning.Smt.check()

    Smt solver = getSolver();
    solver.pushContext();
    String whatToCheck = LabelRepresentation.getAssertionFromVarAndAxiom(variableDeclarations,condition);
    //System.err.println("CHECK: "+whatToCheck);
    solver.loadData(whatToCheck);
    boolean outcome = solver.check();
    solver.popContext();return outcome;   
  }
 
  /** Extracts an ID of a supplied vertex. */
  public static VertexID getID(CmpVertex vertex)
View Full Code Here

Examples of statechum.analysis.learning.spin.SpinUtil.check()

        throw new IllegalArgumentException(getHardFactsContradictionErrorMessage(ifthenAutomataAsText, counterExampleHolder.toString()));
      setTentativeAutomaton(updatedTentativeAutomaton);
    }
    if (getTentativeAutomaton().config.getUseLTL() && getTentativeAutomaton().config.getUseSpin() && !ifthenAutomataAsText.isEmpty()){
      spin = new SpinUtil(config,getLabelConverter());
      SpinResult sr = spin.check(ptaHardFacts, ifthenAutomataAsText);
      if(!sr.isPass())
        throw new IllegalArgumentException(getHardFactsContradictionErrorMessage(ifthenAutomataAsText, sr.getCounters()));
    }

    Stack<PairScore> possibleMerges = topLevelListener.ChooseStatePairs(getTentativeAutomaton());
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.