Creating a sequence diagram from a Java code allows you to analyze dependencies between the methods represented on the diagram and the classes they are referencing to and/or the other methods they call for. This means you can create a sequence diagram for any method selected in the existing sequence diagram.
To create a new sequence diagram for a selected method
- Select the method (call message with an operation assigned) whose details you want to see.
Right-click the message and, from the shortcut menu, select Reverse Implementation. The Sequence Diagram from Java Source Wizard opens to create a sequence diagram for the selected method.
If you have started the wizard via the operation assigned to the message, be aware that in this case the first step of the wizard will be skipped, and the wizard will start from Step #2.
All selected method dependencies will be represented in a newly created diagram.