void (boolean beingEdited) { if (myBeingEdited && !beingEdited) { Toggleable.setSelected(myEditButton.getPresentation(), false); } if (!beingEdited && !myUnderMouse) { myEditButton.setVisible(false); } if (beingEdited && !myBeingEdited) { myEditButton.setVisible(true); Toggleable.setSelected(myEditButton.getPresentation(), true); } myBeingEdited = beingEdited; }