editor1.setTheme(AceEditorTheme.ECLIPSE);
editor1.setMode(AceEditorMode.JAVA);
// use cursor position change events to keep a label updated
// with the current row/col
editor1.addOnCursorPositionChangeHandler(new AceEditorCallback() {
@Override
public void invokeAceCallback(JavaScriptObject obj) {
updateEditor1CursorPosition();
}
});