protected static List<CmsSelectWidgetOption> getTypeOptionsStatic(
        CmsObject cms,
        CmsADEConfigData adeConfig,
        boolean allRemoved) {

        List<CmsSelectWidgetOption> result = Lists.newArrayList();
        Set<String> types = adeConfig.getTypesWithModifiableFormatters();
        Set<String> inactiveTypes = new HashSet<String>(types);
        if (!allRemoved) {
            Set<String> activeTypes = adeConfig.getTypesWithActiveSchemaFormatters();
            inactiveTypes.removeAll(activeTypes);
        }
        for (String inactiveType : inactiveTypes) {
            CmsSelectWidgetOption option = getWidgetOptionForType(cms, inactiveType);
            result.add(option);
        }
        return result;

    }
protected static List < CmsSelectWidgetOption > getTypeOptionsStatic ( CmsObject cms , CmsADEConfigData adeConfig , boolean allRemoved ) { List < CmsSelectWidgetOption > result = Lists . newArrayList ( ) ; Set < String > types = adeConfig . getTypesWithModifiableFormatters ( ) ; Set < String > inactiveTypes = new HashSet < String > ( types ) ; if ( ! allRemoved ) { Set < String > activeTypes = adeConfig . getTypesWithActiveSchemaFormatters ( ) ; inactiveTypes . removeAll ( activeTypes ) ; } for ( String inactiveType : inactiveTypes ) { CmsSelectWidgetOption option = getWidgetOptionForType ( cms , inactiveType ) ; result . add ( option ) ; } return result ; }
Gets the options corresponding to the schemas which define formatters.<p>

@param cms the current CMS context
@param adeConfig the ADE configuration
@param allRemoved flag, indicating if all inheritedly available formatters should be disabled

@return the select widget options for the content types with formatters in the schema