/** * Reverts the input for the tree back to the state when the adapter was created. * * <p>All of the frames are removed from the drill stack. Then the oldest frame is used to reset * the input and expansion state for the child tree. */ public void goHome() { Object currentInput = fChildTree.getInput(); DrillFrame oFrame = fDrillStack.goHome(); Object input = oFrame.getElement(); fChildTree.setInput(input); expand(oFrame.getExpansion()); // if there was a selection, it should have been preserved, // but if not, select the element that was last drilled into if (fChildTree.getSelection().isEmpty()) { fChildTree.setSelection(new StructuredSelection(currentInput), true); } updateNavigationButtons(); }