Package net.sf.swtbot.utils

Examples of net.sf.swtbot.utils.Position


        getControl().setFocus();
        int offset = getControl().getSelectionRange().x;
        int lineNumber = getControl().getContent().getLineAtOffset(offset);
        int offsetAtLine = getControl().getContent().getOffsetAtLine(lineNumber);
        int columnNumber = offset - offsetAtLine;
        return new Position(lineNumber, columnNumber);
      }
    });
  }
View Full Code Here


   *
   * @return the text on the current line, without the line delimiters.
   * @see SWTBotStyledText#getTextOnLine(int)
   */
  public String getTextOnCurrentLine() {
    final Position currentPosition = cursorPosition();
    final int line = currentPosition.line;
    return getTextOnLine(line);
  }
View Full Code Here

TOP

Related Classes of net.sf.swtbot.utils.Position

Copyright © 2018 www.massapicom. 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.