private void initializeControls ( ) { if ( originalFile != null ) { resourceGroup . setContainerFullPath ( originalFile . getParent ( ) . getFullPath ( ) ) ; String fileName = originalFile . getName ( ) ; int index = fileName . lastIndexOf ( "." ) ; if ( index != - 1 ) { fileName = fileName . substring ( 0 , index ) ; } fileName += "-image.png" ; resourceGroup . setResource ( fileName ) ; } else if ( originalName != null ) { resourceGroup . setResource ( originalName ) ; } setDialogComplete ( validatePage ( ) ) ; }
Initializes the controls of this dialog .