public void configure ( Action action ) { Assert . notNull ( action , "The swing action to configure is required" ) ; action . putValue ( Action . NAME , getText ( ) ) ; action . putValue ( Action . MNEMONIC_KEY , new Integer ( getMnemonic ( ) ) ) ; action . putValue ( Action . SMALL_ICON , getIcon ( ) ) ; action . putValue ( "LargeIcon" , getLargeIcon ( ) ) ; action . putValue ( Action . ACCELERATOR_KEY , getAccelerator ( ) ) ; action . putValue ( Action . SHORT_DESCRIPTION , caption ) ; action . putValue ( Action . LONG_DESCRIPTION , description ) ; }
Configures the given action with the information contained in this descriptor .