Examples of validate()


Examples of org.drools.ruleflow.core.RuleFlowProcessFactory.validate()

        .action("java", "System.out.println(\"Action\");").done()
      .endNode(3).name("End").done()
      // connections
      .connection(1, 2)
      .connection(2, 3);
    RuleFlowProcess process = factory.validate().getProcess();
  }

}
View Full Code Here

Examples of org.eclipse.draw2d.Figure.validate()

  protected void layoutChildren() {
    List children = getFlowFigure().getChildren();
    for (int i = 0; i < children.size(); i++) {
      Figure f = (Figure) children.get(i);
      f.invalidate();
      f.validate();
    }
  }

  /*
   * (non-Javadoc)
 
View Full Code Here

Examples of org.eclipse.draw2d.ScrollBar.validate()

      viewport.setViewLocation(currentLocation);

      // refreshes the scrollbar so they can disppear if needed
      ScrollBar scrollbar = scrollpane.getVerticalScrollBar();
      scrollbar.invalidate();
      scrollbar.validate();
    }
  }
 
  protected int getScrollStep(GraphicalEditPart part) {
    if (part instanceof TrayCategoryEntryEditPart) {
View Full Code Here

Examples of org.eclipse.emf.ecore.EValidator.validate()

        if (entryFeature instanceof EAttribute &&
              ExtendedMetaData.INSTANCE.getAffiliation(eClass, entryFeature) == eAttribute)
        {
          EDataType entryType = (EDataType)entryFeature.getEType();
          Object entryValue = entry.getValue();
          boolean entryIsValid = rootValidator.validate(entryType, entryValue, null, context);
          if (!entryIsValid)
          {
            result = false;
            if (diagnostics != null)
            {
View Full Code Here

Examples of org.eclipse.emf.validation.service.IBatchValidator.validate()

    createMarkers(target, diagnostic, diagramEditPart);
    IBatchValidator validator = (IBatchValidator) ModelValidationService
        .getInstance().newValidator(EvaluationMode.BATCH);
    validator.setIncludeLiveConstraints(true);
    if (view.isSetElement() && view.getElement() != null) {
      IStatus status = validator.validate(view.getElement());
      createMarkers(target, status, diagramEditPart);
    }
    OntoUML.diagram.providers.OntoUMLValidationDecoratorProvider
        .refreshDecorators(view);
    for (Iterator it = view.eAllContents(); it.hasNext();) {
View Full Code Here

Examples of org.eclipse.jetty.util.security.CertificateValidator.validate()

                    KeyStore trustStore = getKeyStore(null,
                            _trustStorePath, _trustStoreType, _trustStoreProvider,
                            _trustStorePassword == null ? null :_trustStorePassword.toString());
                    Collection<? extends CRL> crls = loadCRL(_crlPath);
                    CertificateValidator validator = new CertificateValidator(trustStore, crls);
                    validator.validate(certs);
                }

                for (X509Certificate cert: certs)
                {
                    if (cert==null)
View Full Code Here

Examples of org.eclipse.jface.text.contentassist.ICompletionProposalExtension2.validate()

  private boolean validateProposal(IDocument document, ICompletionProposal p, int offset, DocumentEvent event) {
    // detect selected
    if (p instanceof ICompletionProposalExtension2) {
      ICompletionProposalExtension2 e= (ICompletionProposalExtension2) p;
      if (e.validate(document, offset, event))
        return true;
    } else if (p instanceof ICompletionProposalExtension) {
      ICompletionProposalExtension e= (ICompletionProposalExtension) p;
      if (e.isValidFor(document, offset))
        return true;
View Full Code Here

Examples of org.eclipse.jface.text.templates.TemplateContextType.validate()

      String text= document.get();
      fValidationStatus.setOK();
      TemplateContextType contextType= fContextTypeRegistry.getContextType(getContextId());
      if (contextType != null) {
        try {
          contextType.validate(text);
        } catch (TemplateException e) {
          fValidationStatus.setError(e.getLocalizedMessage());
        }
      }
View Full Code Here

Examples of org.eclipse.jst.common.project.facet.core.libprov.LibraryInstallDelegate.validate()

    {
        final LibraryInstallDelegate librariesInstallDelegate = (LibraryInstallDelegate) getDataModel().getProperty(LIBRARY_PROVIDER_DELEGATE);
        if (librariesInstallDelegate == null)
            throw new IllegalArgumentException("LibraryInstallDelegate is expected to be non-null"); //$NON-NLS-1$

        return super.isPageComplete() && (librariesInstallDelegate.validate().getSeverity() != IStatus.ERROR);
    }
}
View Full Code Here

Examples of org.eclipse.jst.jsf.validation.internal.el.operators.BinaryOperator.validate()

            if (curType != null && secondType != null)
            {
                final BinaryOperator operator =
                    BinaryOperator.getBinaryOperator((Token)node.getOperatorTokens().get(child-1), _diagnosticFactory, _context);

                final Diagnostic diagnostic = operator.validate(curType, secondType);

                if (diagnostic.getSeverity() != Diagnostic.OK)
                {
                    final Token firstToken = node.getFirstToken();
                    final int offset = _context.getDocumentPosition() + firstToken.beginColumn - 1;
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.