/** * Performs special processing when this page's Restore Defaults button has been pressed. Sets the * contents of the nameEntry field to be the default */ protected void performDefaults() { // sets widgets to default values m_showContainerCount.setSelection(getDefaultPrefsBool(Constants.SHOWCHILDCOUNT_KEY)); m_mappingModifier.select( InputCodeHelper.getInstance() .getIndexOfModifier(getDefaultPrefsInt(Constants.MAPPING_MOD_KEY))); m_mappingWithParentsModifier.select( InputCodeHelper.getInstance() .getIndexOfModifier(getDefaultPrefsInt(Constants.MAPPING_WITH_PARENTS_MOD_KEY))); InputComboUtil.setSelectedInput( m_mappingKey, getDefaultPrefsInt(Constants.MAPPING_TRIGGER_KEY), getDefaultPrefsInt(Constants.MAPPING_TRIGGER_TYPE_KEY)); InputComboUtil.setSelectedInput( m_mappingWithParentsKey, getDefaultPrefsInt(Constants.MAPPING_WITH_PARENTS_TRIGGER_KEY), getDefaultPrefsInt(Constants.MAPPING_WITH_PARENTS_TRIGGER_TYPE_KEY)); }