Examples of TMLTagValidator


Examples of de.innovationgate.eclipse.editors.helpers.TMLTagValidator

    while (tags.hasNext()) {
      Iterator<String> validators = tags.next().getValidators().iterator();
      while (validators.hasNext()) {
        String validatorClassName = validators.next();
        if (!_allValidators.containsKey(validatorClassName)) {
          TMLTagValidator validator = null;
          if (validatorClassName != null) {
            try {
              validator = (TMLTagValidator) Class.forName(validatorClassName).newInstance();
            } catch (Exception e) {
              Plugin.getDefault().getLog().log(new Status(Status.ERROR, Plugin.PLUGIN_ID, "Unable to intitialize attribute value lookup '" + validatorClassName + "'.", e));
View Full Code Here

Examples of de.innovationgate.eclipse.editors.helpers.TMLTagValidator

    try {
      VersionCompliance versionCompliance = WGADesignStructureHelper.getWGAVersionCompliance(file);
      // clear markers of all validators
      Iterator<TMLTagValidator> validators = _allValidators.values().iterator();
      while (validators.hasNext()) {
        TMLTagValidator validator = validators.next();
        file.deleteMarkers(validator.getMarkerID(), true, IResource.DEPTH_ZERO);
      }
     
      ITypedRegion[] partitions = document.computePartitioning(0, document.getLength());
      for (ITypedRegion partition : partitions) {
        if (partition.getType().equals(TMLPartitionScanner.TML_TAG_START)) {
View Full Code Here

Examples of de.innovationgate.eclipse.editors.helpers.TMLTagValidator

    //updateValidators(file);
    Iterator<String> validators = tag.getValidators().iterator();
   
    while (validators.hasNext()) {
      String validatorClassName = validators.next();
      TMLTagValidator validator = _allValidators.get(validatorClassName);
      if (validator != null) {
        try {
          validator.setVersionCompliance(versionCompliance);
          validator.validateAndMark(file, document, partition, tmlInfo, tag);
        } catch (Exception e) {
          Plugin.getDefault().getLog().log(new Status(Status.ERROR, Plugin.PLUGIN_ID, "Execution of tag validator '" + validatorClassName + "' failed.", 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.