Package com.google.eclipse.protobuf.linking

Examples of com.google.eclipse.protobuf.linking.ProtobufDiagnostic


        return Status.CANCELED;
      }
      Severity severity = ERROR;
      if (proto1ImportsFound && isUnresolvedReferenceError(error)) {
        severity = WARNING;
        ProtobufDiagnostic d = (ProtobufDiagnostic) error;
        String message = d.getMessage();
        if (message.endsWith(scopingError)) {
          continue;
        }
        if (!message.endsWith(".")) {
          d.appendToMessage(".");
        }
        d.appendToMessage(" ");
        d.appendToMessage(scopingError);
      }
      issueFromXtextResourceDiagnostic(error, severity, acceptor);
    }
    return Status.OK;
  }
View Full Code Here


  private boolean isUnresolvedReferenceError(Resource.Diagnostic error) {
    if (!(error instanceof ProtobufDiagnostic)) {
      return false;
    }
    ProtobufDiagnostic d = (ProtobufDiagnostic) error;
    if ("org.eclipse.xtext.diagnostics.Diagnostic.Linking".equals(d.getCode())) {
      return error.getMessage().startsWith("Couldn't resolve");
    }
    return false;
  }
View Full Code Here

TOP

Related Classes of com.google.eclipse.protobuf.linking.ProtobufDiagnostic

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.