editor.expandNode((EditorFigNode) fig);
editor.expandNode((ModuleFigNode) fig);
    public void doIt() {        // Find out which items are selected.        BiosimEditor editor = (BiosimEditor) Globals.curEditor();        SelectionManager sm = editor.getSelectionManager();        Vector selections = sm.getFigs();        // If only one item is selected and it is a EditorFigNode then        //    Expand the node.        if (selections.size() == 1) {            Fig fig = (Fig) selections.get(0);            if (fig instanceof EditorFigNode) {                // Switch out the layer that is being displayed.                editor.expandNode((EditorFigNode) fig);            }        }    }