Solaris Common Desktop Environment: Advanced User's and System Administrator's Guide

Defining the Data Attributes of a Data Type

The DATA_ATTRIBUTES definition defines the appearance and behavior of the data type. It specifies the name of the data type, and provides the ability to specify:

Specifying the Icon Image Used for a Data Type

Use the ICON field to specify the icon used in File Manager. If you do not specify an icon image, File Manager displays only a label.

The value of the ICON field can be:

Table 13–1 Icon Names and Sizes for Data Type Icons

Size in Pixels 

Bitmap Name 

Pixmap Name 

32 by 32 

name.m.bm

name.m.pm

16 by 16 

name.t.bm

name.t.pm

Associating Data Types with Actions

There are two ways that data types are associated with actions:

Hiding Files Based on Data Type

If a file is an invisible data type, it never appears in File Manager.

Use the PROPERTIES field in the DATA_ATTRIBUTES definition to specify that objects of this type be hidden:

PROPERTIES				invisible

Specifying Behaviors When the File Is Manipulated

Table 13–2 shows the DATA_ATTRIBUTES fields that are used primarily by application programmers. They specify how files behave when the user performs various desktop activities.

For more information, see the Common Desktop Environment Programmer's Guide, which is part of the developer environment documentation.

Table 13–2 DATA_ATTRIBUTES Fields and Descriptions

Field 

Description 

MOVE_TO_ACTION

For containers such as directories. Specifies an action to be run when a file is moved to a container of this data type. 

COPY_TO_ACTION

For containers such as directories. Specifies an action to be run when a file is copied to a container of this data type. 

LINK_TO_ACTION

Specifies an action to be run when a file is linked to a file of this data type. 

IS_TEXT

Specifies that files of this data type contain text that can be displayed in a text box. 

MEDIA

Specifies the corresponding ToolTalk media type. 

MIME_TYPE

Specifies the corresponding MIME type. 

X400_TYPE

Specifies the corresponding X400 type.