Examples of Encloser


Examples of org.cfeclipse.cfml.editors.actions.Encloser

      IDocument doc =  ((ITextEditor)iep).getDocumentProvider().getDocument(iep.getEditorInput());
      ITextEditor ite = (ITextEditor)iep;
      ISelection sel = ite.getSelectionProvider().getSelection();
      //int cursorOffset = ((ITextSelection)sel).getOffset();
      //int selectionLength = ((ITextSelection)sel).getLength();
      Encloser encloser = new Encloser();
      encloser.enclose(doc,(ITextSelection)sel,selectedMethod.getInsertString(),"");
     
    }
  }
View Full Code Here

Examples of org.cfeclipse.cfml.editors.actions.Encloser

      IDocument doc =  ((ITextEditor)iep).getDocumentProvider().getDocument(iep.getEditorInput());
      ITextEditor ite = (ITextEditor)iep;
      ISelection sel = ite.getSelectionProvider().getSelection();
      //int cursorOffset = ((ITextSelection)sel).getOffset();
      //int selectionLength = ((ITextSelection)sel).getLength();
      Encloser encloser = new Encloser();
      encloser.enclose(doc,(ITextSelection)sel,insight,"");
    }
    catch (Exception e) {
        //e.printStackTrace();
    }
  }
View Full Code Here

Examples of org.cfeclipse.cfml.snippets.util.Encloser

    snipReader.read(keyCombos.getSnippetFolder() + fileName);

    start = SnipVarParser.parse(snipReader.getSnipStartBlock(), activeFile, shell);
    end = SnipVarParser.parse(snipReader.getSnipEndBlock(), activeFile, shell);

    Encloser encloser = new Encloser();
    encloser.enclose(doc, (ITextSelection) sel, start, end);

  }
View Full Code Here

Examples of org.cfeclipse.cfml.snippets.util.Encloser

          } else {
            snippet = start + end;
          }

          if (snippet != null && snippet.length() > 0) {
            Encloser encloser = new Encloser();
            encloser.enclose(doc, (ITextSelection) sel, snippet, "");
            // move the cursor to before the end of the new insert
            int offset = ((ITextSelection) sel).getOffset();
            offset += ((ITextSelection) sel).getLength();
            offset += snippet.length();
            if (i == 0) {
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.