Examples of replaceString()


Examples of com.intellij.openapi.editor.Document.replaceString()

        }

        if (castString == null)
            castString = String.format("%s(%s)", typeDescription, startElement.getText());

        doc.replaceString(textRange.getStartOffset(), textRange.getEndOffset(), castString);
        if (editor != null) {
            int line = doc.getLineNumber(textRange.getStartOffset());
            reformatLines(file, editor, line, line);
            //reformatPositions(element);
        }
View Full Code Here

Examples of com.intellij.openapi.editor.Document.replaceString()

    while (leaf instanceof PsiComment || leaf instanceof XmlProlog || leaf instanceof XmlText) {
      @NonNls String text = leaf.getText();
      if (text.contains(SUPPRESS_PREFIX)) {
        final TextRange textRange = leaf.getTextRange();
        doc.replaceString(textRange.getStartOffset(), textRange.getEndOffset(), replace.fun(text));
        return;
      }
      leaf = leaf.getPrevSibling();
    }
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.