Exemplo n.º 1
0
  @Override
  public Position destination(EditorAdaptor editorAdaptor, int count)
      throws CommandExecutionException {
    int originalOffset = editorAdaptor.getPosition().getModelOffset();
    Position delegatePosition = delegate.destination(editorAdaptor, count);

    // differ from the delegate in that we trim the last newline where appropriate
    int newOffset =
        offsetWithoutLastNewline(
            originalOffset, delegatePosition.getModelOffset(), editorAdaptor.getModelContent());

    return editorAdaptor.getCursorService().newPositionForModelOffset(newOffset);
  }
Exemplo n.º 2
0
 public boolean isJump() {
   return delegate.isJump();
 }
Exemplo n.º 3
0
 public BorderPolicy borderPolicy() {
   return delegate.borderPolicy();
 }
Exemplo n.º 4
0
 public boolean updateStickyColumn() {
   return delegate.updateStickyColumn();
 }
Exemplo n.º 5
0
 public int getCount() {
   return delegate.getCount();
 }