Package de.innovationgate.eclipse.editors.config

Examples of de.innovationgate.eclipse.editors.config.TMLTagDefinitions


      ITypedRegion[] partitions = document.computePartitioning(0, document.getLength());
      for (ITypedRegion partition : partitions) {
        if (partition.getType().equals(TMLPartitionScanner.TML_TAG_START)) {
          try {
            TMLRegion tmlInfo = TMLRegion.parse(partition, document);
            TMLTagDefinitions tagDef = TMLTagDefinitions.getInstance(_versionCompliance);
            if (tagDef != null) {
                TMLTag tag = tagDef.getTagByName(tmlInfo.getTagName());
                if (tag != null) {
                  List<String> tmpAttributes = new ArrayList<String>();
                  tmpAttributes.addAll(tmlInfo.getAttributeNames());
                  tmpAttributes.addAll(tmlInfo.getValuelessAttributes());
                 
View Full Code Here


            if (!tmlInfo.isTagKnown(_versionCompliance)) {
              int charStart = partition.getOffset();
              int charEnd = charStart + partition.getLength();
              MarkerFactory.createErrorMarker(MARKER_ID, file, charStart, charEnd, "Unknown TML-Tag '" + tmlInfo.getTagName() + "'.");
            } else {
                TMLTagDefinitions tagDef = TMLTagDefinitions.getInstance(_versionCompliance);
                if (tagDef != null) {
                    TMLTag tag = tagDef.getTagByName(tmlInfo.getTagName());
                    if (tag.isDeprecated()) {
                        int charStart = partition.getOffset();
                                int charEnd = charStart + partition.getLength();
                                MarkerFactory.createWarningMarker(MARKER_ID, file, charStart, charEnd, "TML-Tag '" + tmlInfo.getTagName() + "' is deprecated. " + tag.getDeprecated());
                    }
View Full Code Here

TOP

Related Classes of de.innovationgate.eclipse.editors.config.TMLTagDefinitions

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.