@SuppressWarnings("deprecation") // if this breaks at some point, we should
// refactor to invoke AutoIndentLinesAction
// instead of doing the indent directly
boolean lineToBeIndented = codeStyleManager.isLineToBeIndented(file, offset);
if (lineToBeIndented) {
codeStyleManager.adjustLineIndent(file, offset);
}
}
}
catch (IncorrectOperationException e) {
assertTrue(e.getLocalizedMessage(), false);