// opens up for the first time.
store.setDefault(KEY_NUMBER_OF_CUSTOM_COMMANDS,
DEFAULT_CUSTOM_COMMANDS.length);
for (int i = 0; i < DEFAULT_CUSTOM_COMMANDS.length; i++)
{
CommandConfig commandConfig = DEFAULT_CUSTOM_COMMANDS[i];
store.setDefault(getCommandEnabledForResourcesMenuKey(i),
commandConfig.isEnabledForResourcesMenu());
store.setDefault(getCommandNameForResourcesMenuKey(i),
commandConfig.getNameForResourcesMenu());
store.setDefault(getCommandEnabledForTextSelectionMenuKey(i),
commandConfig.isEnabledForTextSelectionMenu());
store.setDefault(getCommandNameForTextSelectionMenuKey(i),
commandConfig.getNameForTextSelectionMenu());
store.setDefault(getPassSelectedTextKey(i),
commandConfig.isPassSelectedText());
store.setDefault(getCommandKey(i), commandConfig.getCommand());
}
}