private void addStyledText(String text, Style style) { try { doc.insertString(doc.getLength(), text, style); } catch (BadLocationException ble) { ble.printStackTrace(); } }
private void moveCursorToTest(Test test) { if (test instanceof TestCase) { String func = ((TestCase) test).getName(); try { SikuliIDE.getInstance().jumpTo(func); } catch (BadLocationException e) { e.printStackTrace(); } } }