Package org.eclipse.wst.xml.core.internal.commentelement.impl

Examples of org.eclipse.wst.xml.core.internal.commentelement.impl.CommentElementConfiguration


   */
  protected Element createCommentElement(String data, boolean isJSPTag) {
    String trimmedData = data.trim();
    CommentElementConfiguration[] configs = CommentElementRegistry.getInstance().getConfigurations();
    for (int iConfig = 0; iConfig < configs.length; iConfig++) {
      CommentElementConfiguration config = configs[iConfig];
      if ((isJSPTag && !config.acceptJSPComment()) || (!isJSPTag && !config.acceptXMLComment())) {
        continue;
      }
      String[] prefixes = config.getPrefix();
      for (int iPrefix = 0; iPrefix < prefixes.length; iPrefix++) {
        if (trimmedData.startsWith(prefixes[iPrefix])) {
          return config.createElement(this.model.getDocument(), data, isJSPTag);
        }
      }
    }
    ModelParserAdapter adapter = getParserAdapter();
    if (adapter != null) {
View Full Code Here

TOP

Related Classes of org.eclipse.wst.xml.core.internal.commentelement.impl.CommentElementConfiguration

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.