protected boolean isTab ( IUserLayoutManager ulm , String folderId ) throws PortalException { // we could be a bit more careful here and actually check the type return ulm . getRootFolderId ( ) . equals ( ulm . getParentId ( folderId ) ) ; }
A folder is a tab if its parent element is the layout element