Examples of CfmlTagItem


Examples of org.cfeclipse.cfml.parser.docitems.CfmlTagItem

    Iterator mapIter = variableMap.keySet().iterator();
    while(mapIter.hasNext()){
      String keyItem = mapIter.next().toString();
      vars += "Key: " + keyItem +"\t=\t";
      if(variableMap.get(keyItem) instanceof CfmlTagItem){
        CfmlTagItem tag = (CfmlTagItem)variableMap.get(keyItem);
        vars += tag.getName() + "\n";
      }
      else{
        vars += variableMap.get(keyItem).getClass() + "\n";
      }
    }
View Full Code Here

Examples of org.cfeclipse.cfml.parser.docitems.CfmlTagItem

    else if(tagName.compareToIgnoreCase("function") == 0)
      return new CfmlTagFunction(lineNum, match.startPos, match.endPos, tagName);
    else if(tagName.compareToIgnoreCase("set") == 0)
      return new CfmlTagSet(lineNum, match.startPos, match.endPos, tagName);
    else
      return new CfmlTagItem(lineNum, match.startPos, match.endPos, tagName);
  }
View Full Code Here

Examples of org.cfeclipse.cfml.parser.docitems.CfmlTagItem

     
      CFNodeList methods = parseResult.getDocumentRoot().selectNodes("//cffunction");
      Iterator methodIter = methods.iterator();
      while(methodIter.hasNext())
      {
        CfmlTagItem item = (CfmlTagItem)methodIter.next();
       
        String methodName = item.getAttributeValue("name");
        if(methodName.toLowerCase().equals(this.methodName.toLowerCase()))
        {
          /*
           *   ite.setHighlightRange(selectedMethod.getDocumentOffset(),0,true);
        ite.setFocus();
           */
          cfEditor.setHighlightRange(item.getStartPosition(), 0, true);
          cfEditor.setFocus();
        }
      }
    }
    catch (PartInitException e)
View Full Code Here

Examples of org.cfeclipse.cfml.parser.docitems.CfmlTagItem

          String attrString = "[#startpos<" + docOffset + " and #endpos>" + docOffset + "]";
         
          CFNodeList matchingNodes = docRoot.getDocumentRoot().selectNodes("//cfinclude" + attrString);
          Iterator nodeIter = matchingNodes.iterator();
         
          CfmlTagItem currItem = null;
         
          if(nodeIter.hasNext())
          {
            currItem = (CfmlTagItem)nodeIter.next();
          }
          else
          {
            matchingNodes = docRoot.getDocumentRoot().selectNodes("//cfmodule" + attrString);
            nodeIter = matchingNodes.iterator();
            if(nodeIter.hasNext()) {
              currItem = (CfmlTagItem)nodeIter.next();
            }
            else
              return;
          }
           
          String template = currItem.getAttributeValue("template");
          IEditorPart iep = this.editor.getSite().getPage().getActiveEditor();
          ITextEditor editor = (ITextEditor)iep;
         
          String pth = (
            (IResource)((FileEditorInput)editor.getEditorInput()
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.