Icons and Decorations

Icons

../../_images/e_file_obj.png

e File

../../_images/e_file_linked_obj.png

Linked Resource e File See Linked Resources.

../../_images/e_file_gray_obj.png

Out of Project e File. The file is not inside a project directory, nor accessible as a linked resource. Functionality is limited on “gray” e files.

../../_images/ecom_file_obj.png

ecom File

../../_images/vsif_file_obj.png

vsif File

../../_images/vsof_file_obj.png

vsof File

../../_images/package.png

Package

../../_images/type_obj.png

Scalar Type. For example enumerated types.

../../_images/enum_item_obj.png

Enumerated constant

../../_images/type_extend_obj.png

Scalar Type Extend Layer.

../../_images/struct_obj.png

Struct

../../_images/predefined_struct_obj.png

Predefined Struct. For example any_struct.

../../_images/unit_obj.png

Unit

../../_images/predefined_unit_obj.png

Predefined Unit. For example any_unit.

../../_images/struct_extend.png

Extend Struct Layer

../../_images/unit_extend.png

Extend Unit Layer

../../_images/struct_when.png

When Struct Layer

../../_images/unit_when.png

When Unit Layer

../../_images/sequence_obj.png

Sequence

../../_images/method_type.png

Method Type

../../_images/edt-method-type-code.png
../../_images/field_obj.png

Field

../../_images/unit_instance_obj.png

“is instance” Field

../../_images/edt-is-instance-code.png
../../_images/method_obj.png

Method/TCM TCMs are decorated with a small event:

../../_images/edt-tcm-icon.png
../../_images/event_obj.png

Event

../../_images/on_event_obj.png

On Event

../../_images/edt-on-event-code.png
../../_images/constraint_obj.png

Constraint

../../_images/coverage_obj.png

Cover Group

../../_images/port_simple_i_obj.png

Simple input port

../../_images/port_simple_o_obj.png

Simple output port

../../_images/port_simple_io_obj.png

Simple bidirectional port

../../_images/port_buffer_i_obj.png

Buffer input port

../../_images/port_buffer_o_obj.png

Buffer output port

../../_images/port_method_i_obj.png

Method input port

../../_images/port_method_o_obj.png

Method output port

../../_images/port_event_i_obj.png

Event input port

../../_images/port_event_o_obj.png

Event output port

../../_images/port_event_io_obj.png

Event bidirectional port

../../_images/preproc_define.png

Preprocessing define

../../_images/preproc_undefine.png

Preprocessing undefine

../../_images/preproc_ifdef.png

Preprocessing ifdef, ifndef

../../_images/preproc_define_as.png

Define As Macro

../../_images/preproc_define_as_computed.png

Define As Computed Macro

../../_images/preproc_define_as_inst.png

Define As Macro Match

../../_images/preproc_define_as_computed_inst.png

Define As Computed Macro Match

../../_images/template_obj.png

Code Template. For example in auto-complete proposals.

Decorations

Compiled Files

To enable/disable go to Window > Preferences > General > Appearance > Label Decorations preference page and check/uncheck DVT Compiled File.

../../_images/imported_file_ovr.png

Compiled File

../../_images/ignored_imported_file_ovr.png

Skipped File

See also: Build Configurations.

Test Files

To enable/disable go to Window ‣ Preferences ‣ General ‣ Appearance ‣ Label Decorations preference page and check/uncheck e Language Test Module.

../../_images/test_file_ovr.png

Test File

../../_images/active_test_file_ovr.png

Active Test File

See also: e Language Test Files.

Layers (Extensions)

To enable/disable go to Opens the decorators preference page Window > Preferences > General > Appearance > Label Decorations preference page and check/uncheck e Language Extension Layer.

../../_images/undefined_ovr.png

is undefined

../../_images/empty_ovr.png

is empty

../../_images/first_ovr.png

is first

../../_images/only_ovr.png

is only

../../_images/also_ovr.png

is also

../../_images/inline_ovr.png

is inline

Access Modifiers (Encapsulation)

To enable/disable go to Window ‣ Preferences ‣ General ‣ Appearance ‣ Label Decorations preference page and check/uncheck e Language Access Modifier.

../../_images/private_ovr.png

Private. Only code within both the package and the struct family scope can access the struct member.

../../_images/protected_ovr.png

Protected. Code outside the struct family scope cannot access the struct member

../../_images/package_ovr.png

Package. Code outside the package files cannot access the struct member.

../../_images/public_ovr.png

Public.The struct member has no access restriction.

Errors and Warnings

To enable/disable go to Window ‣ Preferences ‣ General ‣ Appearance ‣ Label Decorations preference page and check/uncheck e Language Problem.

../../_images/error_co.png

Error

../../_images/warning_co.png

Warning

Changing Icon Colors

To change the color of the icons in DVT, navigate to Window > Preferences and open the DVT > Icons preference page.

../../_images/icon_color_preferences_main.png

To change one or more icons select them in the tree and choose a filter from the drop-down list.

Once you are comfortable with the colors you chose, click Ok and you will be prompted for a restart to apply the changes.

There are six predefined color filters: Red, Yellow, Green, Cyan, Blue, Magenta. These filters change the predominant color of the selected icons into one of the six colors previously mentioned.

You can also create your own filters, by clicking the Edit… button. You will be prompted with a dialog that allows you to Add, Remove, or Duplicate custom filters.

../../_images/icon_color_preferences_dialog.png

To edit a filter, select it in left hand list, then modify the Hue, Saturation, or Brightness parameters in the right hand menu. These parameters will be applied only on the primary colors that are selected above.

The Overlap parameter indicates the hue interval size that will be modified.

For example, choosing to modify the red color with an Overlap of 180, will modify all the colors, since the hue interval is (-180, 180) degrees. An Overlap of 30 will only modify the colors in the (-30, 30) degrees hue interval around red.

Project Colors

When working on several files from multiple projects, it is hard to tell at a glance to which project each editor belongs.

Sometimes you might even have multiple editors with the same title (for example when each project is a different revision of the same design) which is particularly confusing.

../../_images/project_colors_before.png

Go to menu Window > Preferences then DVT and check Color editor icons per project and project labels.

../../_images/project_colors_after.png

Now all editors belonging to the same project have icons of the same color. Furthermore, the project labels in the Project Explorer have the same color, serving as a quick color legend.

Tip

You can chose to color the project labels text or background in the Project Explorer

Tip

To change the default color of a project Right-click in the Project Explorer and go to Project > Change Color

Note

By default a project’s color is computed using a hash function on the project name. This way you will get the same color for a specific project name, even if you switch workspaces or computers for example.

Note

This feature only works with Eclipse 4.x.