Package org.eclipse.wst.validation.internal.core

Examples of org.eclipse.wst.validation.internal.core.Message


  /**
   * @param currentFile
   * @param reporter
   */
  private void validateV1File(IFile currentFile, IReporter reporter) {
    Message message = new LocalizedMessage(IMessage.LOW_SEVERITY, currentFile.getFullPath().toString().substring(1));
    reporter.displaySubtask(MarkupValidator.this, message);

    IStructuredModel model = null;
    try {
      model = StructuredModelManager.getModelManager().getModelForRead(currentFile);
View Full Code Here


  /**
   * @param currentFile
   * @param reporter
   */
  private void validateV1File(IFile currentFile, IReporter reporter) {
    Message message = new LocalizedMessage(IMessage.LOW_SEVERITY, currentFile.getFullPath().toString().substring(1));
    reporter.displaySubtask(MarkupValidator.this, message);

    IStructuredModel model = null;
    try {
      model = StructuredModelManager.getModelManager().getModelForRead(currentFile);
View Full Code Here

   * @param line the line number or -1
   */
  public static void createWarningMessage(IValidator validator, IReporter reporter, IFile file,
      String id, String[] params, int start, int length, int line){
   
    Message message = new Message();
    message.setSeverity(IMessage.NORMAL_SEVERITY);
    if(line>=0){
      message.setLineNo(line);
    }
    if(start>=0){
      message.setOffset(start);
      message.setLength(length);
    }
    message.setBundleName("net.sf.clickide.core.validator.validation");
    message.setId(id);
    message.setParams(params);
    message.setTargetObject(file);
    reporter.addMessage(validator, message);
  }
View Full Code Here

      }
    }
  }

  private void validateV1File(IFile currentFile, IReporter reporter) {
    Message message = new LocalizedMessage(IMessage.LOW_SEVERITY, currentFile.getFullPath().toString().substring(1));
    reporter.displaySubtask(FXMLValidator.this, message);

    IStructuredModel model = null;
    try {
      model = StructuredModelManager.getModelManager().getModelForRead(currentFile);
View Full Code Here

TOP

Related Classes of org.eclipse.wst.validation.internal.core.Message

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.