private static JCheckBoxMenuItem createViewSearchMenu() {
final JCheckBoxMenuItem showSearch = new JCheckBoxMenuItem(
ToolBarDragAndDropSettings.mLocalizer
.msg("showSearchField", "Show search field"));
showSearch.setSelected(Settings.propIsSearchFieldVisible.getBoolean());
showSearch.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
MainFrame.getInstance().setShowSearchField(showSearch.isSelected());
}
});