Buggy code:
public class KeysPreferencePage extends PreferencePage implements IWorkbenchPreferencePage { private static final class CommandAssignment implements Comparable { private Assignment assignment ; private String contextId ; private KeySequence keySequence ; public int compareTo ( Object object ) { } public boolean equals ( Object object ) { } } private static final class KeySequenceAssignment implements Comparable { private Assignment assignment ; private String contextId ; public int compareTo ( Object object ) { } public boolean equals ( Object object ) { } } private static final ResourceBundle resourceBundle = ResourceBundle . getBundle ( KeysPreferencePage . class . getName ( ) ) ; private static final String COMMAND_CONFLICT = Util . translateString ( KeysPreferencePage . resourceBundle , "commandConflict" ) ; private static final String COMMAND_NOTHING = Util . translateString ( KeysPreferencePage . resourceBundle , "commandNothing" ) ; private static final String COMMAND_UNDEFINED = Util . translateString ( KeysPreferencePage . resourceBundle , "commandUndefined" ) ; private static final int DIFFERENCE_ADD = 0 ; private static final int DIFFERENCE_CHANGE = 1 ; private static final int DIFFERENCE_MINUS = 2 ; private static final int DIFFERENCE_NONE = 3 ; private static final Image IMAGE_BLANK = ImageFactory . getImage ( "blank" ) ; private static final Image IMAGE_CHANGE = ImageFactory . getImage ( "change" ) ; private static final Image IMAGE_CLEAR = ImageFactory . getImage ( "clear" ) ; private static final Image IMAGE_EXCLAMATION = ImageFactory . getImage ( "exclamation" ) ; private static final Image IMAGE_MINUS = ImageFactory . getImage ( "minus" ) ; private static final Image IMAGE_PLUS = ImageFactory . getImage ( "plus" ) ; private static final RGB RGB_CONFLICT = new RGB ( 255 , 0 , 0 ) ; private static final RGB RGB_CONFLICT_MINUS = new RGB ( 255 , 160 , 160 ) ; private static final RGB RGB_MINUS = new RGB ( 160 , 160 , 160 ) ; private static final char SPACE = '<seq2seq4repair_space>' ; private Map assignmentsByContextIdByKeySequence ; private Button buttonAdd ; private Button buttonRemove ; private Button buttonRestore ; private Map categoryDefinitionsById ; private Map categoryIdsByUniqueName ; private Map categoryUniqueNamesById ; private Combo comboCategory ; private Combo comboCommand ; private Combo comboContext ; private Combo comboKeyConfiguration ; private Set commandAssignments ; private Map commandDefinitionsById ; private Map commandIdsByCategoryId ; private Map commandIdsByUniqueName ; private Map commandUniqueNamesById ; private CommandManager commandManager ; private Map contextDefinitionsById ; private Map contextIdsByCommandId ; private Map contextIdsByUniqueName ; private Map contextUniqueNamesById ; private ContextManager contextManager ; private Group groupCommand ; private Group groupKeySequence ; private Map keyConfigurationDefinitionsById ; private Map keyConfigurationIdsByUniqueName ; private Map keyConfigurationUniqueNamesById ; private Set keySequenceAssignments ; private Label labelAssignmentsForCommand ; private Label labelAssignmentsForKeySequence ; private Label labelCategory ; private Label labelCommand ; private Label labelContext ; private Label labelContextExtends ; private Label labelKeyConfiguration ; private Label labelKeyConfigurationExtends ; private Label labelKeySequence ; private Table tableAssignmentsForCommand ; private Table tableAssignmentsForKeySequence ; private KeySequenceText textKeySequence ; private SortedMap tree ; private IWorkbench workbench ; public void init ( IWorkbench workbench ) { } public boolean performOk ( ) { } public void setVisible ( boolean visible ) { } protected Control createContents ( Composite parent ) { } protected IPreferenceStore doGetPreferenceStore ( ) { } protected void performDefaults ( ) { } private void buildCommandAssignmentsTable ( ) { } private void buildKeySequenceAssignmentsTable ( ) { } private void doubleClickedTableAssignmentsForKeySequence ( ) { } private void doubleClickedAssignmentsForCommand ( ) { } private String getCategoryId ( ) { } private String getCommandId ( ) { } private String getContextId ( ) { } private String getKeyConfigurationId ( ) { } private KeySequence getKeySequence ( ) { } private void modifiedTextKeySequence ( ) { } private void selectAssignmentForCommand ( String contextId ) { } private void selectAssignmentForKeySequence ( String contextId ) { } private void selectedButtonAdd ( ) { } private void selectedButtonRemove ( ) { } private void selectedButtonRestore ( ) { } private void selectedComboCategory ( ) { } private void selectedComboCommand ( ) { } private void selectedComboContext ( ) { } private void selectedComboKeyConfiguration ( ) { } private void selectedTableAssignmentsForCommand ( ) { } private void selectedTableAssignmentsForKeySequence ( ) { } private void setAssignmentsForCommand ( ) { } private void setAssignmentsForKeySequence ( ) { } private void setCategoryId ( String categoryId ) { } private void setCommandId ( String commandId ) { } private void setCommandsForCategory ( ) { } private void setContextId ( String contextId ) { } private void setContextsForCommand ( ) { } private void setKeyConfigurationId ( String keyConfigurationId ) { } private void setKeySequence ( KeySequence keySequence ) { <START_BUG> textKeySequence . setKeySequence ( keySequence , null ) ; <END_BUG> } private void update ( ) { } private void updateLabelContextExtends ( ) { } private void updateLabelKeyConfigurationExtends ( ) { } }

Fix:
textKeySequence . setKeySequence ( keySequence ) ;