Package org.cfeclipse.cfml.editors

Examples of org.cfeclipse.cfml.editors.ICFDocument


      IDocumentProvider docProvider = cfEditor.getDocumentProvider();
      IDocument doc = docProvider.getDocument(editorInput);
      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();
View Full Code Here


        //String start="";
       
        //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();
         
View Full Code Here

    {
      this.editor = (ITextEditor)targetEditor;
      IDocument doc = editor.getDocumentProvider().getDocument(
          editor.getEditorInput());

      ICFDocument cfd = (ICFDocument) doc;

      this.partitioner = (CFEPartitioner)cfd.getDocumentPartitioner();
    }
    }
View Full Code Here

  public void ExpandTagSelectionDown(IDocument doc, ITextSelection sel) {
    CFMLPropertyManager propertyManager = new CFMLPropertyManager();
    String dict = propertyManager.getCurrentDictionary(((IFileEditorInput) editor.getEditorInput()).getFile().getProject());
    CFMLParser fCfmlParser = CFMLPlugin.newCFMLParser(dict);
    ICFDocument cfd = (ICFDocument) doc;
    CFMLSource cfmlSource = fCfmlParser.addCFMLSource(cfd.getCFDocument().getFilename(), cfd.get());
    int offset = sel.getOffset();
    ParserTag currentTag = getNextTagDown(offset+sel.getLength(), cfmlSource);
    if (currentTag == null)
      // at end of doc
      return;
View Full Code Here

  public void expandTagSelection(IDocument doc, ITextSelection sel) {
    CFMLPropertyManager propertyManager = new CFMLPropertyManager();
    String dict = propertyManager.getCurrentDictionary(((IFileEditorInput) editor.getEditorInput()).getFile().getProject());
    CFMLParser fCfmlParser = CFMLPlugin.newCFMLParser(dict);
    ICFDocument cfd = (ICFDocument) doc;
    CFMLSource cfmlSource = fCfmlParser.addCFMLSource(cfd.getCFDocument().getFilename(), cfd.get());
    int offset = sel.getOffset();
    ParserTag currentTag = getNextTagLeft(offset, cfmlSource);
    if (currentTag == null){
      // at end of doc
      return;     
View Full Code Here

TOP

Related Classes of org.cfeclipse.cfml.editors.ICFDocument

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.