@Override public void sort(final Viewer viewer, Object[] elements) { try { super.sort(viewer, elements); } catch (IllegalArgumentException iae) { // We can get exceptions because the markers are changing out from under us. See // https://code.google.com/p/dart/issues/detail?id=3937. This is fairly infrequent // behavior. If we encounter an exception, we try a re-sort. try { super.sort(viewer, elements); } catch (IllegalArgumentException ex) { } } }
@Override public void sort(Viewer viewer, Object[] elements) { if (lexicalSortingAction.isChecked()) { super.sort(viewer, elements); } }