public List getUniqueCommands ( ) { List uniqueCommands = new ArrayList ( ) ; for ( Iterator it = commands . values ( ) . iterator ( ) ; it . hasNext ( ) ; ) { Command command = ( Command ) it . next ( ) ; if ( ! uniqueCommands . contains ( command ) ) { uniqueCommands . add ( command ) ; } } return uniqueCommands ; }
Get the list of commands that have been registered with the provider i . e . the commands that can be issued to the listeners