protected void initialPopulateContainerNameField ( ) { super . initialPopulateContainerNameField ( ) ; IPath fullPath = getContainerFullPath ( ) ; IProject project = getProjectFromPath ( fullPath ) ; IPath root = ProjectUtils . getRootContainerForPath ( project , fullPath ) ; if ( root != null ) { return ; } root = ProjectUtils . getDefaultRootContainer ( project ) ; if ( root != null ) { setContainerFullPath ( root ) ; return ; } }
This method is overridden to set the selected folder to web contents folder if the current selection is outside the web contents folder .