Studio Developer Manual / Version 2101
Table Of Contents
For some document types a suitable preview representation is not easily generated. This
applies to some built-in document types like Dictionary
and
EditorPreferences
, but also to very technical document types storing CSS or
script code.
The method getDocumentTypesWithoutPreview()
from the editor context object grants
access to an array of document type names for which no preview should be shown. Like in the
case of document types excluded from creation as shown in the previous section, you can simply
push additional document types into the mutable array returned from the method.
You can also use the ConfigureDocumentTypes
plugin to specify document types
without preview, like in the following excerpt from BlueprintFormsStudioPlugin.mxml
.
<editor:ConfigureDocumentTypes names="CMAction,CMCSS,..." preview="false"/>
Example 7.19. Defining document types without preview