/** * Highlights the next/previous hit. * * @param next next/previous hit */ private void find(final boolean next) { final boolean vis = search.isVisible(); search.activate(searchString(), false); jump(vis ? next ? SearchDir.FORWARD : SearchDir.BACKWARD : SearchDir.CURRENT, true); }