public void init(CmsElementView view, boolean useDefault) {

        m_currentView = view;
        if (!view.getId().equals(getViewSelector().getValue())) {
            getViewSelector().setValue(view.getId());
        }
        getVerticalLayout().removeAllComponents();

        List<CmsResourceTypeBean> typeBeans = m_typeHelper.getPrecomputedTypes(view);
        if (view.getId().equals(ID_VIEW_ALL)) {
            typeBeans = m_allTypes;
        }

        if (typeBeans == null) {

            LOG.warn("precomputed type list is null: " + view.getTitle(A_CmsUI.getCmsObject(), Locale.ENGLISH));
            return;
        }
        for (CmsResourceTypeBean type : typeBeans) {
            final String typeName = type.getType();
            String title = typeName;
            String subtitle = getSubtitle(type, useDefault);
            CmsExplorerTypeSettings explorerType = OpenCms.getWorkplaceManager().getExplorerTypeSetting(typeName);

            title = CmsVaadinUtils.getMessageText(explorerType.getKey());
            CmsResourceInfo info = new CmsResourceInfo(
                title,
                subtitle,
                CmsResourceUtil.getBigIconResource(explorerType, null));
            info.setData(type);
            m_resourceInfoMap.put(type, info);
            getVerticalLayout().addComponent(info);
        }
    }
public void init ( CmsElementView view , boolean useDefault ) { m_currentView = view ; if ( ! view . getId ( ) . equals ( getViewSelector ( ) . getValue ( ) ) ) { getViewSelector ( ) . setValue ( view . getId ( ) ) ; } getVerticalLayout ( ) . removeAllComponents ( ) ; List < CmsResourceTypeBean > typeBeans = m_typeHelper . getPrecomputedTypes ( view ) ; if ( view . getId ( ) . equals ( ID_VIEW_ALL ) ) { typeBeans = m_allTypes ; } if ( typeBeans == null ) { LOG . warn ( "precomputed type list is null: " + view . getTitle ( A_CmsUI . getCmsObject ( ) , Locale . ENGLISH ) ) ; return ; } for ( CmsResourceTypeBean type : typeBeans ) { final String typeName = type . getType ( ) ; String title = typeName ; String subtitle = getSubtitle ( type , useDefault ) ; CmsExplorerTypeSettings explorerType = OpenCms . getWorkplaceManager ( ) . getExplorerTypeSetting ( typeName ) ; title = CmsVaadinUtils . getMessageText ( explorerType . getKey ( ) ) ; CmsResourceInfo info = new CmsResourceInfo ( title , subtitle , CmsResourceUtil . getBigIconResource ( explorerType , null ) ) ; info . setData ( type ) ; m_resourceInfoMap . put ( type , info ) ; getVerticalLayout ( ) . addComponent ( info ) ; } }
Initializes and displays the type list for the given view.<p>

@param view the element view
@param useDefault true if we should use the default location for resource creation