Package org.cfeclipse.cfml.parser

Examples of org.cfeclipse.cfml.parser.CFDocument


            assignmentPos = search.find(sel.getOffset() + cfcInstance.length(), cfcInstance + "[\\s]?=[\\s]?entityNew", false,
                false, false, true);
          }
          if (assignmentPos != null) {
            //MappingManager mappingManager = new MappingManager();
            CFDocument cfdoc = ((ICFDocument) doc).getCFDocument();
            String CFCName = AssistUtils.getCFCName(cfcInstance, cfdoc);
            IFile foundCFC = AssistUtils.findCFC(CFCName);
            if (foundCFC == null) {
              foundCFC = AssistUtils.findCFC(functionName);
            }
            if (foundCFC != null) {
              OpenAtMethodAction openAction = new OpenAtMethodAction(foundCFC, "");
              openAction.run();
            }

          }

        }
        startPos = search.find(sel.getOffset() + functionName.length(), functionName + "[\\s]?=[^=]", true, false, false, true);
      }
      if (startPos != null) {
        startPos = search.find(startPos.getOffset(), functionName, true, true, false, true);
        editor.getSelectionProvider().setSelection(CFDocUtils.selectWord(doc, startPos.getOffset()));
      }
      if (startPos == null || sel.getOffset() == startPos.getOffset()) {
        DocItem st = ((CFMLEditor) editor).getSelectionCursorListener().getSelectedTag();
        if (st.getName().equals("ASTComponent") || st.getName().equals("FunctionCall")) {
          CFDocument cfdoc = ((ICFDocument) doc).getCFDocument();
          String CFCName = AssistUtils.getCFCName(functionName, cfdoc);
          IFile foundCFC = AssistUtils.findCFC(CFCName);
          if (foundCFC == null) {
            foundCFC = AssistUtils.findCFC(functionName);
          }
View Full Code Here


      if(!(doc instanceof ICFDocument))
        return;
       
      ICFDocument cfDoc = (ICFDocument)doc;
     
      CFDocument parseResult = cfDoc.getParser().parseDoc();
      if(parseResult == null)
        return;
     
      CFNodeList methods = parseResult.getDocumentRoot().selectNodes("//cffunction");
      Iterator methodIter = methods.iterator();
      while(methodIter.hasNext())
      {
        CfmlTagItem item = (CfmlTagItem)methodIter.next();
       
View Full Code Here

       
        //if(doc instanceof ICFDocument)
        //{
          //System.out.println("test");
          ICFDocument cfDoc = (ICFDocument)doc;
          CFDocument docRoot = cfDoc.getCFDocument();
          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
View Full Code Here

TOP

Related Classes of org.cfeclipse.cfml.parser.CFDocument

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.