myFlags.add(Pair.create(myUserEnterKeyToCheckBox, IdeaFlags.USE_ENTER_FOR_MESSAGES));
myFlags.add(Pair.create(myShowPopup, IdeaFlags.POPUP_ON_MESSAGE));
myOptions = Pico.getOptions();
final UserCommand command = Pico.getCommandManager().getCommand(
ClearHistoryCommand.class, BaseAction.getContainer(project));
myClearHistory.setEnabled(command.isEnabled());
myClearHistory.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
command.execute();
myClearHistory.setEnabled(command.isEnabled());
}
});
}