ids[i] = (String) action.getValue(ToolBar.ACTION_ID_KEY);
}
DefaultToolBarModel.getInstance().setButtonIds(ids);
Settings.propToolbarButtons.setStringArray(ids);
ToolBar toolbar = MainFrame.getInstance().getToolbar();
int inx = mShowCB.getSelectedIndex();
if (inx == 0) {
toolbar.setStyle(ToolBar.STYLE_ICON | ToolBar.STYLE_TEXT);
} else if (inx == 1) {
toolbar.setStyle(ToolBar.STYLE_TEXT);
} else if (inx == 2) {
toolbar.setStyle(ToolBar.STYLE_ICON);
}
if (mLocationCB.getSelectedIndex() == 1) {
toolbar.setToolbarLocation(BorderLayout.WEST);
mWest = true;
} else {
toolbar.setToolbarLocation(BorderLayout.NORTH);
mWest = false;
}
MainFrame.getInstance().setShowToolbar(mShowToolbarCb.isSelected());
MainFrame.getInstance().setShowSearchField(mShowSearchFieldCb.isSelected());
toolbar.setUseBigIcons(mUseBigIconsCb.isSelected());
toolbar.storeSettings();
MainFrame.getInstance().updateToolbar();
buildButtonPanel();
init();
}