Examples of Diagnostic


Examples of org.eclipse.emf.common.util.Diagnostic

  private static void createMarkers(View target,
      Diagnostic emfValidationStatus, DiagramEditPart diagramEditPart) {
    if (emfValidationStatus.getSeverity() == Diagnostic.OK) {
      return;
    }
    final Diagnostic rootStatus = emfValidationStatus;
    List allDiagnostics = new ArrayList();
    OntoUML.diagram.part.OntoUMLDiagramEditorUtil.LazyElement2ViewMap element2ViewMap = new OntoUML.diagram.part.OntoUMLDiagramEditorUtil.LazyElement2ViewMap(
        diagramEditPart.getDiagramView(), collectTargetElements(
            rootStatus, new HashSet(), allDiagnostics));
    for (Iterator it = emfValidationStatus.getChildren().iterator(); it
        .hasNext();) {
      Diagnostic nextDiagnostic = (Diagnostic) it.next();
      List data = nextDiagnostic.getData();
      if (data != null && !data.isEmpty()
          && data.get(0) instanceof EObject) {
        EObject element = (EObject) data.get(0);
        View view = OntoUML.diagram.part.OntoUMLDiagramEditorUtil
            .findView(diagramEditPart, element, element2ViewMap);
        addMarker(
            diagramEditPart.getViewer(),
            target,
            view.eResource().getURIFragment(view),
            EMFCoreUtil.getQualifiedName(element, true),
            nextDiagnostic.getMessage(),
            diagnosticToStatusSeverity(nextDiagnostic.getSeverity()));
      }
    }
  }
View Full Code Here

Examples of org.eclipse.emf.common.util.Diagnostic


    for (Iterator j = resource.getContents().iterator(); j.hasNext();)
    {
      EObject eObject = (EObject)j.next();
      Diagnostic diagnostic = Diagnostician.INSTANCE.validate(eObject);
      if (diagnostic.getSeverity() != Diagnostic.OK)
      {
        printDiagnostic(diagnostic, "");
      }
    }
  }
View Full Code Here

Examples of org.eclipse.emf.common.util.Diagnostic


    for (Iterator j = resource.getContents().iterator(); j.hasNext();)
    {
      EObject eObject = (EObject)j.next();
      Diagnostic diagnostic = Diagnostician.INSTANCE.validate(eObject);
      if (diagnostic.getSeverity() != Diagnostic.OK)
      {
        printDiagnostic(diagnostic, "");
      }
    }
  }
View Full Code Here

Examples of org.jzkit.search.provider.iface.Diagnostic

   * @param status_code             e.g. "diag.bib1.1";
   * @param target_name             the name of the target for the diagnostic
   * @param addinfo                 any additional information to include
   */
  public void setDiagnosticStatus(String status_code, String target_name, String addinfo ) {    
     Diagnostic the_diagnostic     = new Diagnostic(status_code, target_name, addinfo);
     DiagnosticEvent e             = new DiagnosticEvent(the_diagnostic);
     setChanged();
     notifyObservers(e);   
  }
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.