Package net.sf.graphiti.model

Examples of net.sf.graphiti.model.IValidator


    Map<String, ObjectType> vertexTypes = parseTypes(element
        .getChildren("vertexType"));
    Map<String, ObjectType> edgeTypes = parseTypes(element
        .getChildren("edgeType"));

    IValidator validator = (IValidator) element
        .createExecutableExtension("validator");

    String refinement = element.getAttribute("refinement");
    IRefinementPolicy refinementPolicy = null;
    if (refinement != null) {
View Full Code Here


   * @return True if the graph is valid, false otherwise.
   */
  private void validate() {
    removeMarkers();
    IFile file = ((IFileEditorInput) getEditorInput()).getFile();
    IValidator validator = graph.getConfiguration().getValidator();
    if (!validator.validate(graph, file)) {
      // activate problems view
      IWorkbenchPage page = PlatformUI.getWorkbench()
          .getActiveWorkbenchWindow().getActivePage();
      try {
        page.showView(IPageLayout.ID_PROBLEM_VIEW);
View Full Code Here

TOP

Related Classes of net.sf.graphiti.model.IValidator

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.