Package com.intellij.openapi.editor

Examples of com.intellij.openapi.editor.CaretModel.moveToVisualPosition()


        if (visualColumnToRestore < 0) {
        } else {
            CaretModel caretModel = editor.getCaretModel();
            VisualPosition position = caretModel.getVisualPosition();
            if (visualColumnToRestore != position.column) {
                caretModel.moveToVisualPosition(new VisualPosition(position.line, visualColumnToRestore));
            }
        }
    }

    // There is a possible case that cursor is located at the end of the line that contains only white spaces. For
View Full Code Here


    if (visualColumnToRestore < 0) {
    } else {
      CaretModel caretModel = editor.getCaretModel();
      VisualPosition position = caretModel.getVisualPosition();
      if (visualColumnToRestore != position.column) {
        caretModel.moveToVisualPosition(new VisualPosition(position.line, visualColumnToRestore));
      }
    }
  }

  // There is a possible case that cursor is located at the end of the line that contains only white spaces. For
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.