// Test for AceEditor.getRow
final Button clickMe = new Button("Click me!");
clickMe.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
AceEditorCursorPosition pos = editor1.getCursorPosition();
String line = editor1.getLine(pos.getRow());
AceEditorCursorPosition pos10 = editor1.getPositionFromIndex(10);
Window.alert("Index 10=" + pos10 + ", cur line=" + line);
}
});
buttonPanel.add(clickMe);