Package com.intellij.openapi.editor.ex

Examples of com.intellij.openapi.editor.ex.DocumentEx.deleteString()


          setRightGreedy(emptyMarkers, true);

          // workaround for shifting empty ranges to the left
          document.insertString(lineOffset, " ");
          document.insertString(lineOffset, PRIVATE);
          document.deleteString(lineOffset + PRIVATE.length(), lineOffset + PRIVATE.length() + 1);
         
          setLeftGreedy(leftGreedyMarker, true);
          setRightGreedy(emptyMarkers, false);
        } else {
          int idx = document.getText().indexOf(PRIVATE, lineOffset);
View Full Code Here


          setLeftGreedy(leftGreedyMarker, true);
          setRightGreedy(emptyMarkers, false);
        } else {
          int idx = document.getText().indexOf(PRIVATE, lineOffset);
          if (idx > -1 && idx < exprOffset) {
            document.deleteString(idx, idx + PRIVATE.length());
          }
        }
        PsiDocumentManager.getInstance(myProject).commitDocument(document);
      }
    };
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.