setLabel(Translator.get(visible?Descriptor.ACTION_ID+".hide":Descriptor.ACTION_ID+".show"));
}
@Override
public void performAction() {
CommandBar commandBar = mainFrame.getCommandBar();
boolean visible = !commandBar.isVisible();
// Save the last command bar visible state in the configuration, this will become the default for new MainFrame windows.
MuConfigurations.getPreferences().setVariable(MuPreference.COMMAND_BAR_VISIBLE, visible);
// Change the label to reflect the new command bar state
updateLabel(visible);
// Show/hide the command bar
commandBar.setVisible(visible);
mainFrame.validate();
}