Operation Context Menu

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 operation shares the common element context commands as well as the following commands specific to it:

Open

Selecting Open from the context menu, opens the selected class containing the operation in the text editor.

Open Super Implementation

This command opens an editor for the super implementation of the selected operation. If a super implementation does not exist for the operation, then an editor does not open.

Show in Packages View

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.

Show in UML Explorer

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.

Static

Selecting Static from the context menu sets the static property for the operation.

Visibility

The Visibility command for the operation offers a submenu with the following options:

Public

Selecting Public from the submenu sets the visibility property for the operation to public.

Protected

Selecting Protected from the submenu sets the visibility property for the operation to protected

Private

Selecting Private from the submenu sets the visibility property for the operation to private.

Package Local

Selecting Package Local from the submenu sets the visibility property for the operation to package local.


NB:
The visibility options are not available for Interface members.

Add Javadoc comment

Using this command, you are able to add Javadoc comments for the operation.

Generate Sequence Diagram

Use this command to generate sequence diagrams from your source code. For more information, see Creating Sequence/Collaboration Diagrams from Source Code.

References

The References command offers a submenu with the following options:

Workspace

By selecting Workspace from the submenu, you can search the entire workbench for references to the element.

Hierarchy

By selecting Hierarchy from the submenu, you can search the Hierarchy view for references to the element.

Working Set

By selecting Working Set from the submenu, the Select Working Sets dialog displays. From this dialog, you can select which working sets to search.

Declarations

The Declarations command offers a submenu with the following options:

Workspace

By selecting Workspace from the submenu, you can search the entire workbench for declarations of the element.

Hierarchy

By selecting Hierarchy from the submenu, you can search the Hierarchy view for references to the element.

Working Set

By selecting Working Set from the submenu, the Select Working Sets dialog displays. From this dialog, you can select which working sets to search.