/** * Updates the explorer for new perspectives / orderings. * * <p>{@inheritDoc} */ public void itemStateChanged(ItemEvent e) { if (e.getSource() instanceof PerspectiveComboBox) { rules = ((ExplorerPerspective) e.getItem()).getList(); } else { // it is the combo for "order" order = (Comparator) e.getItem(); } structureChanged(); // TODO: temporary - let tree expand implicitly - tfm tree.expandPath(tree.getPathForRow(1)); }