protected Wave getLaunchFirstViewWave ( ) { Wave firstWave = null ; // Generates the command wave directly to win a Wave cycle if ( this . application != null && this . application . rootNode ( ) != null && this . application . firstModelClass ( ) != null ) { final UniqueKey < ? extends Model > modelKey = Key . create ( this . application . firstModelClass ( ) , this . application . firstModelOptionalData ( ) , this . application . firstModelKeyParts ( ) ) ; firstWave = WBuilder . callCommand ( ShowModelCommand . class ) . waveBean ( DisplayModelWaveBean . create ( ) . childrenPlaceHolder ( this . application . rootNode ( ) . getChildren ( ) ) . showModelKey ( modelKey ) ) ; // // // ShowModelWaveBuilder.create() // .childrenPlaceHolder(this.application.getRootNode().getChildren()) // .showModelKey(getFacade().getUiFacade().buildKey((Class<Model>) this.application.getFirstModelClass())) // .build(); } return firstWave ; }
Launch the first view by adding it into the root node .