Package com.intellij.openapi.util

Examples of com.intellij.openapi.util.TextRange.cutOut()


    @NotNull
    private TextRange findFileNameTextRagne() {
      TextRange lastComponentTextRange = calcLastComponentTextRange(myYamlKeyValueFragment.getText());
      TextRange oldPathRange = myYamlKeyValueFragment.getTextRangeInElement();
      return oldPathRange.cutOut(lastComponentTextRange);
    }

    @NotNull
    private static TextRange calcLastComponentTextRange(@NotNull String path) {
      final int i1 = path.lastIndexOf(JstdConfigFileUtils.UNIX_PATH_SEPARATOR);
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.