void (boolean buttonVisible) { myBrowseButton.setVisible(buttonVisible); if (myInlineButtonExtension != null && myComponent instanceof ExtendableTextComponent) { if (buttonVisible) { ((ExtendableTextComponent)myComponent).addExtension(myInlineButtonExtension); } else { ((ExtendableTextComponent)myComponent).removeExtension(myInlineButtonExtension); } } }