Package org.cfeclipse.cfml.snippets.util

Examples of org.cfeclipse.cfml.snippets.util.Encloser.enclose()


    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);

  }

  public Object execute(ExecutionEvent event) throws ExecutionException {
    IEditorPart editorPart = HandlerUtil.getActiveEditor(event);
View Full Code Here


            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.