Community
Participate
Working Groups
20040910 In the following code I want to pass 'PREF_PB_ASSERT_AS_IDENTIFIER' as parameter. I select it and do a 'introduce parameter'. Unfortunatly this only modifies the first reference to PREF_PB_ASSERT_AS_IDENTIFIER, the other 2 stay the same and I have to update them myself with the new parameter name. private void updateRememberedComplianceOption(boolean enabled) { Combo combo= getComboBox(PREF_PB_ASSERT_AS_IDENTIFIER); combo.setEnabled(enabled); if (!enabled) { String val= (String) fWorkingValues.get(PREF_PB_ASSERT_AS_IDENTIFIER); if (!ERROR.equals(val)) { fWorkingValues.put(PREF_PB_ASSERT_AS_IDENTIFIER, ERROR); updateCombo(combo); ... } } } -> expected: private void updateRememberedComplianceOption(boolean enabled, String key) { Combo combo= getComboBox(key); combo.setEnabled(enabled); if (!enabled) { String val= (String) fWorkingValues.get(key); if (!ERROR.equals(val)) { fWorkingValues.put(key, ERROR); updateCombo(combo); ... } } }
*** This bug has been marked as a duplicate of 44803 ***