Patterns Recognizer Context Menus

Project Level

Projects displayed in the Patterns Recognizer have a context menu associated with them:


Rebuild Patterns

Recognizes patterns for the project without having to rebuild it. For more on recognizing patterns, see Enabling Pattern Recognition.

NB: Currently, except for Singleton and Proxy patterns, only Gang of Four patterns applied using the Patterns wizard are recognized and displayed in the Patterns Recognizer.

Properties

Opens the Properties dialog for the selected resource. Allows you to turn on/off patterns recognition for a particular project. You can also select or deselect individual patterns.

NB: If you turn off a pattern, it is immediately hidden in the Patterns dialog. If you turn on a previously deactivated pattern, you need to rebuild patterns for the project before it is shown again.

Pattern Level

Some of the patterns displayed in the Patterns Recognizer also have specific context menus associated with them.

Select On Diagram

Selects the resource on its diagram. If the diagram is not visible, this command will open it in the Diagram view.

Patterns with associated right-click actions:

Pattern/Command(s)
Pattern/Command(s)
Abstract Factory/Add Concrete Factory, Add Product Iterator/Add Aggregate with Iterator
Adapter/Add Target Method MainMethod/Launch
Applet/Launch Mediator/Add Colleague, Add Mediator
Bridge/Add Refined Abstraction, Add Implementor Observer/Add Observer, Add Subject
Builder/Add Builder, Add Part Construction Method Prototype/Add Prototype
Chain of Responsibility/Add Handler Proxy/Add Method
Command/Add Command, Add Macro Command State/Add Concrete State
Composite/Add Operation Strategy/Add Strategy, Add Strategy Method
Decorator/Add Decorator, Add Component Method TemplateMethod/Add Implementor
Facade/Add Subsystem TemplateMethod/Add Primitive Operation
FactoryMethod/Add Concrete Creator Test Case/Launch
Flyweight/Add Unshared Flyweight, Add Shared Flyweight ValueObject/Add Property
Interpreter/Add Terminal Expression, Add Nonterminal Expression Visitor/Add Concrete Visitor, Add Concrete Element

Properties

Opens the Properties dialog for the selected resource.

Class Level

Pattern classes also have context menus:

Select on Diagram

Selects the resource on its diagram. If the diagram is not visible, this command will open it in the Diagram view.

Apply Pattern

Opens the Apply Pattern wizard, and allows you to create patterns.

Debug on Server

Adds resources to a configuration to find source. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Run on Server

Starts the server and runs the code. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Profile on Server

Starts the server and begins profiling. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Team

Enables you to share resources with a team via a VCS system. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Compare With

Allows you to compare a resource with different versions of itself or other elements. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Replace With

Allows you to replace the selected resource with one saved in your local history. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Restore from local history...

Allows you to restore a deleted resource with a saved version from your local history. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Properties

Opens the Properties dialog for the selected resource.

Data Element Level

Data elements have the following context menu:

Add/Remove Watchpoint

Add or remove a watchpoint for the current selection.

Select on Diagram

Selects the resource on its diagram. If the diagram is not visible, this command will open it in the Diagram view.

Compare With

Allows you to compare a resource with different versions of itself or other elements. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Replace With

Allows you to replace the selected resource with one saved in your local history. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Restore from local history...

Allows you to restore a deleted resource with a saved version from your local history. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Method Level

Methods have the following context menu:

Select on Diagram

Selects the resource on its diagram. If the diagram is not visible, this command will open it in the Diagram view.

Compare With

Allows you to compare a resource with different versions of itself or other elements. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Replace With

Allows you to replace the selected resource with one saved in your local history. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Restore from local history...

Allows you to restore a deleted resource with a saved version from your local history. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Enterprise Bean

Promotes Enterprise Bean methods to remote/local/home interface. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.