NetbeansTextEditor.getInstance().selectPosition(nd);
}
}
public void insertNewLine(boolean withBreak) {
SimpleNode el = UpdateNodeTask.getInstance().getLastCurrent();
if (el == null) {
return;
}
int pos = NetbeansTextEditor.getInstance().getCurrentPosition();
NetbeansTextEditor.getInstance().insertAfterASTItem(el, (withBreak ? "\\break" : "") + "\r\n ", false, false, null);
//NetbeansTextEditor.getInstance().selectPosition(pos + 1, 0);
ASTTempNode gen = ASTTempNode.create("", el.jjtGetLastToken().endLine + 1, 3, el);
gen.jjtGetFirstToken().beginColumn++;
gen.jjtSetParent(el.jjtGetParent());
gen.setBeattime(el.getBeattime());
NetbeansTextEditor.getInstance().selectPosition(gen);
}