All of the UML diagram elements share common context menu commands. To use the context menu for an element, simply right click on the element in the Diagram view. To view the common context menu commands, see Common Element Context Commands.
The context menu for an attribute shares the common element context commands as well as the following commands specific to it:

Selecting Open from the context menu, opens the selected class containing the attribute in the text editor highlighting the attribute in the source code.
The Show in Packages View command highlights the node selected in the Packages tree-view. The Packages view will expand and highlight that element in the tree-view. If closed, the Packages view will open.
The Show in UML Explorer View command highlights the node selected in the UML Explorer tree-view. The UML Explorer view will expand and highlight that element in the tree-view. If closed, this view will open.
Selecting Static from the context menu sets the static property for the attribute.
The Visibility command for the attribute offers a submenu with the following options:
Selecting Public from the submenu sets the visibility property for the attribute to public.
Selecting Protected from the submenu sets the visibility property for the attribute to protected
Selecting Private from the submenu sets the visibility property for the attribute to private.
Selecting Package Local from the submenu sets the visibility property for the attribute to package local.
NB: The visibility options are not available for Interface members.
Selecting this command launches the Apply Pattern dialog displaying the available patterns. Select a pattern from the Patterns list to apply.
Using this command displays the Generate Getter and Setter dialog.

Within this special dialog, you can select attributes to designate as getters and setters.
The References command offers a submenu with the following options:

By selecting Workspace from the submenu, you can search the entire workbench for references to the element.
By selecting Hierarchy from the submenu, you can search the Hierarchy view for references to the element.
By selecting Working Set from the submenu, the Select Working Sets dialog displays. From this dialog, you can select which working sets to search.
The Declarations command offers a submenu with the following options:

By selecting Workspace from the submenu, you can search the entire workbench for declarations of the element.
By selecting Hierarchy from the submenu, you can search the Hierarchy view for references to the element.
By selecting Working Set from the submenu, the Select Working Sets dialog displays. From this dialog, you can select which working sets to search.