Icons and Decorations

Icons

../../_images/pss_file_obj.png

PSS File

../../_images/package.png

Package

../../_images/type_obj.png

Enum Type

../../_images/enum_item_obj.png

Enum Item

../../_images/type_extend_obj.png

Enum Type Extend Layer

../../_images/struct_obj.png

Struct

../../_images/struct_extend.png

Struct Extend Layer

../../_images/pss_struct_buffer.png

Buffer

../../_images/pss_struct_buffer_extend.png

Buffer Extend Layer

../../_images/pss_struct_stream.png

Stream

../../_images/pss_struct_stream_extend.png

Stream Extend Layer

../../_images/pss_struct_state.png

State

../../_images/pss_struct_state_extend.png

State Extend Layer

../../_images/pss_struct_resource.png

Resource

../../_images/pss_struct_resource_extend.png

Resource Extend Layer

../../_images/sln_component_obj.png

Component

../../_images/sln_component_extend.png

Component Extend Layer

../../_images/sln_action_obj.png

Action

../../_images/sln_action_extend.png

Action Extend Layer

../../_images/pss_component_instance.png

Component Instance

../../_images/pss_pool_of_buffer.png

Pool of Buffer

../../_images/pss_pool_of_stream.png

Pool of Stream

../../_images/pss_pool_of_state.png

Pool of State

../../_images/pss_pool_of_resource.png

Pool of Resource

../../_images/field_obj.png

Field

../../_images/field_obj.png

Action Handle

../../_images/method_obj.png

Function

../../_images/constraint_obj.png

Constraint

../../_images/coverage_obj.png

Cover Group

../../_images/in_port.png

Action Input

../../_images/out_port.png

Action Output

../../_images/pss_lock_resource.png

Action Locked Resource

../../_images/pss_share_resource.png

Action Shared Resource

../../_images/pss_activity.png

Activity

../../_images/pss_symbol.png

Symbol

../../_images/pss_exec_block.png

Exec Block

../../_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.

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.