public final void setViewDescriptor ( ViewDescriptor viewDescriptor ) { Assert . notNull ( viewDescriptor , "viewDescriptor" ) ; setId ( viewDescriptor . getId ( ) ) ; setLabel ( viewDescriptor . getShowViewCommandLabel ( ) ) ; setIcon ( viewDescriptor . getIcon ( ) ) ; setCaption ( viewDescriptor . getCaption ( ) ) ; this . viewDescriptor = viewDescriptor ; }
Sets the descriptor for the view that is to be opened by this command object . This command object will be assigned the id label icon and caption from the given view descriptor .