UML Explorer Context Menus

The UML Explorer has many different context menus, each specific to the resource selected. This section discusses the context menus for the following in the UML Explorer:

Java Model
No-Icon File Type/Interface
Folder
XML File Method
Package
Plugin Field
Package Declaration
Image File Import Container
Package Diagram
Cascading Style Sheet Import
Compilation Unit
HTML File JAR
Java Scrapbook
     

NB: Depending on your development platform, some of the menu commands described may not be applicable. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Java Model Menu

New

Displays a submenu with all basic elements that can be added to a diagram.

Go Into

Displays the contents of the selected item in the UML Explorer. All others are hidden. To return to views of parent resources, click the Up button .

Open in New Window

Displays the contents of the selected item in a new instance of Together.

Open Type Hierarchy

Opens the type Hierarchy view. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Copy

Copies the selection which you may then Paste in the desired location.

Paste

Pastes a copied selection.

Delete

Deletes a selection. A confirmation dialog opens before deletion.

Refactor

Begins the refactoring process to restructure your code without changing its observable behavior. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Rename

Starts the Rename refactoring dialog. Renames the selection and (if enabled) corrects all references to the elements (also in other files).

Move

Starts the Move refactoring wizard: Moves the selection and (if enabled) corrects all references to the elements (also in other files).

Import

Opens the Import wizard for a number of import options. Follow this link for more information about the XMI File option. For details on other import options, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Export

Opens the Export wizard for a number of export options, some of which are Together-specific: UML Documentation and XMI File, for instance. For details on other export options, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Refresh

Refreshes the selection.

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.

Debug on Server

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

Profile on Server

Used for profiling an application on the server. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Run Validation

Validates all resources in the selected project. For more information on validation, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Team

Use the Team command to add a project to the repository. Once a project is added, you can create patches, commit, synchronize with repository, and so on. For more information, see the Version Control and Teams section in the Together section of online help.

Compare With

Use Compare With to compare the resources in the workspace with the resources held within the repository. Offers a submenu with the following options:

Patch

Allows you to share work with other team members without storing it in a repository. Use the Patch command to access this type of resource.

Each Other

Compares two files. Select two diagrams in the UML Explorer view by using CTRL+Click, then invoke Compare With > Each Other.

Restore From Local History

Allows you to restore a 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.

Quality Assurance

Audits

Run audits on the selection. Together allows you to run a default QA set or create your own. See Running Audits for more information.

Metrics

Run metrics on the selection. Together allows you to run a default QA set or create your own. See Running Metrics for more information.

Load Metric Results

Loads the results of a previous metrics run. See Saving/Loading Metric Results for more information.

Properties

Opens the Properties dialog for the selection.

Folder Menu

The folder menu commands are documented in the Project Menu section.

Package Menu

The package menu commands are documented in the Project Menu section except for the following:

Select on Diagram

Opens the corresponding diagram that the element belongs to in the Diagram view and highlight the element on the diagram.

NB: This command is also available for compilation units in the Package Explorer view.

Open Diagram

Opens the package diagram. If necessary, the Diagram view opens first.

Organize Imports

Allows you to improve the existing import statements based on settings you specify in the Organize Imports preferences. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

References

Workspace

Searches the entire workbench for references to the selection.

Working Set

Opens the Select Working Sets dialog, allowing you to specify which working set to search.

Declarations

Workspace

Searches the entire workbench for declarations of the selection.

Working Set

Opens the Select Working Sets dialog, allowing you to specify which working set to search.

Package Declaration Menu

The commands for this menu are documented in the Package Menu section.

Package Diagram Menu

The menu shown below is for a default package diagram. Menus for specific diagram types may not contain all of the commands listed.

Open

Opens the selected diagram in the Diagram view (any diagram currently open will be closed).

Open in New Tab

Opens the selected diagram on a new tab in the Diagram view (any diagram currently open will not be closed).

Generate Class Diagram

Creates a new class diagram from the selection.

New

Displays a submenu with all basic elements that can be added to a diagram.

New Diagram

Creates a new diagram: Activity, Collaboration, Class, Component, Deployment, State, Use Case, Sequence.

Select in Model Tree

Highlights the selection in the UML Navigator. If, closed, the UML Navigator will open.

Select on Diagram

Highlights the corresponding selection on its respective diagram. If closed, the diagram will open in the Diagram view.

Show in Packages View

Highlights the selection in the Package Explorer. If closed, the Package Explorer will open.

Cut

Removes the selection. You can then choose to Paste the element into the desired location.

Copy

Copies the selection. You can then choose to Paste the element into the desired location.

Paste

Pastes a cut or copied selection in a new location.

Paste Shortcut

Pastes a shortcut to the element that has been cut or copied.

Rename

Opens the Rename dialog to rename the selection.

Delete

Opens a confirmation dialog before deleting the selection.

Import

Opens the Import wizard selector.

Export

Opens the Export wizard selector.

Quality Assurance

Audit

Runs audits against the selection. See Running Audits for details.

Metrics

Runs metrics against the selection. See Running Metrics for details.

Load Metric Results

Loads a previously saved set of metric results. See Saving/Loading Metric Results for details.

Add Bookmark

Allows you bookmark the selection. You can view bookmarks in the Bookmarks view. You can also bookmark individual lines of code in the editor. For more information on using bookmarks, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Hyperlinks

The Hyperlinks command offers a submenu with the following options:

Edit

Using Edit, you can view, add, and remove hyperlinks to a project. For more information on hyperlinks, see Working with Hyperlinks.

<Hyperlink>

<Hyperlink> represents an actual hyperlinked element. If there are no hyperlinks for the diagram, then only the Edit option displays.

References

Workspace

Searches the entire workspace for references to the selection.

Hierarchy

Searches the Hierarchy view for references to the selection.

Working Set

Opens the Select Working Sets dialog, from which you may select which working sets to search.

Declarations

Workspace

Searches the entire workspace for declarations of the selection.

Hierarchy

Searches the Hierarchy view for declarations of the selection.

Working Set

Opens the Select Working Sets dialog, from which you may select which working sets to search.

Layout

Layout

Sets the layout of all elements according to the default layout style, which is vertically or horizontally hierarchical.

Layout and Optimize Size

The same as Layout, except diagram elements are resized to their actual size.

Layout for Printing

Sets the layout of all the elements to fall within the boundaries of the print page size. Attempts to prevent element overlap onto different pages (with very large elements this may be impossible). Set up page size and margins through Window > Preferences > Together > Modeling > Print.

Hide/Show

Hides individual elements on a diagram. If you do not see an element in a diagram, choose Show hidden from the diagram context menu and check the hidden elements list. For more information, see Hiding Elements.

Team

Use the Team command to add a project to the repository. Once a project is added, you can create patches, commit, synchronize with repository, etc. See the Version Control and Teams section in the Together section of online help.

Compare With

Use Compare With to compare the resources in the Workbench with the resources held within the repository.

Replace With

Use Replace With to replace Workbench resources with versions in the repository.

Properties

Opens the Properties view for the selection.

Update

Refreshes the selection.

Compilation Unit Menu

The compilation unit menu commands are explained in the Package Menu section except for the following:

Open With

Allows you to choose, from a submenu, an editor with which to open the selection. You can determine which editors are available in the File Associations Preferences dialog. For more information on using system, default, and external editors, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Generate Getter and Setter

Opens the Generate Getter and Setter dialog with a list of available methods from which to choose. The new codes appears as highlighted text in the editor.

Add Bookmark

Bookmarks the selected item. You can view bookmarks in the Bookmarks view. You can also bookmark individual lines of code in the editor. For more information on using bookmarks, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Apply Pattern

Opens the Apply Pattern wizard, allowing you to create patterns. See Creating Patterns for more information.

Save As Pattern

Selecting the Save As Pattern command displays the Create Template dialog allowing you to save the class or interface as a template.

Launch Universal Test Client

Launches the UTC for testing Java objects. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Link Utilities

Allows you to choose the Fix Broken Links command. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Web Services

Offers a submenu with the Deploy as Web service, Generate WSDL files, and Generate Sample Application commands. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Java Scrapbook Page Menu

The commands on this menu are documented in the Compilation Unit Menu section.

No-Icon File Menu

The commands on this menu are documented in the Compilation Unit Menu section.

XML File Menu

NB: The context menu for XMI files is similar to that for XML files but contains fewer commands.
The XML file menu commands are documented in the Compilation Unit Menu section except for the following:

Run Ant

For valid Ant scripts, opens a wizard from which you can run Ant build files. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Run Javadoc Wizard

Opens the Generate Javadoc wizard, allowing you to generate Javadoc documentation for the selection. To complete the process you must first specify the location of the Javadoc command in the Javadoc preferences dialog.

Validate XML File

Validates the selected XML file. Any problems encountered are displayed in the Tasks view. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.
NB: You can also set xml validation to run automatically on saving. To do so, select Properties from the context menu of a project. Click Validation and select the appropriate options.

Apply XSL

XSL stylesheets help define the content of XML files and can be used to transform them into other documents, such as HTML. This command contains three submenu commands: As XML, As HTML, and As Text. The Select XSL File wizard opens. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

XML Security

Allows you to create and verify XML digital signatures to prevent tampering with files. The Digital Signature command opens the XML Signature wizard. The Verify Signature command displays a dialog with details of the verification success or failure. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Generate

XML Application

Opens the Generate XML wizard to generate an XML application from the selected file. Application types include: XML Validation, SAX2 Parser, Soap Message, Soap Message with Attachments. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

DTD

Opens the Create DTD wizard to create a DTD (document type definition) file from the selected XML file. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

XML Schema

Opens the Generate New XML Schema to create an XML schema file from the selected XML file. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

XPath

Opens the XPath (XML Path Language) Expression wizard to create an XPath expression to extract specified information from an xml file.

Database data

Opens the XML to SQL wizard to enter database connection information. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Assign

Opens one of three dialogs to assign an XSL Stylesheet, XML Schema or DTD to the XML file. For more information, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Plugin Menu

The Plugin menu commands are documented in the XML file menu section except for the following:

Update Classpath

Opens the Java Classpath wizard. The dialog displays a list of plug-ins and fragments in your workspace. Select the ones for which you want to recompute classpaths.

Create Plugin JARs

Creates an Ant buildscript and opens the Run Ant wizard with the build.jars option selected by default. This may be done to deploy the plugins/fragments in your workspace. For more on creating and deploying plugins, see the Tool Developer guide.

Image File Menu

The commands on this menu are documented in the Compilation Unit Menu section.

Cascading Style Sheet Menu

The commands on this menu are documented in the Compilation Unit Menu section.

HTML File Menu

The HTML file menu commands are documented in the Compilation Unit Menu section except for the following:

Convert to XHTML

Opens the conversion dialog in to convert the HTML document to XHTML (Extensible HyperText Markup Language). You may specify the XHTML document type and automatically insert an XML declaration.

Validate HTML Syntax

Validates the selected HTML file. Problems encountered are reported in the Tasks view.
NB: You can also set html validation to run automatically on saving. To do so, select Properties from the context menu of a project. Click Validation and select the appropriate options.

Type/Interface Menu

The commands on this menu are documented in the Compilation Unit Menu section except for the following:

Override Methods

The Override Methods command displays the Override Methods dialog in which you can choose the methods you wish to override for a class.

Add Constructors from Superclass

Adds constructors from the superclass of the selected class.

Add Javadoc Comment

Adds Javadoc comments for the selection.

Method Menu

The commands on this menu are documented in the Compilation Unit Menu section except for the following:

Add Javadoc Comment

Adds Javadoc comments for the selected operation.

Enterprise Bean

Promote 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.

Field Menu

The commands on this menu are documented in the Compilation Unit Menu section except for the following:

Read Access

Finds all read accesses to the selection. Search the Workspace/Hierarchy or select a Working Set to search.

Write Access

Finds all read accesses to the selection. Search the Workspace/Hierarchy or select a Working Set to search.

Add/Remove Watchpoint

Adds or removes a watchpoint.

Import Container Menu

The commands on this menu are documented in the Compilation Unit Menu section except for the following:

Organize Imports

Organizes imports based on selections made in the Organize Imports preferences dialog.

Import Menu

The commands on this menu are documented in the Compilation Unit Menu section.

JAR Menus

The commands on these menus are documented in the Package Menu section, but may also include the following:

Open With

Allows you to choose, from a submenu, an editor with which to open the selection. You can determine which editors are available in the File Associations Preferences dialog. For more information on using system, default, and external editors, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.

Add Bookmark

Bookmarks the selection. You can view bookmarks in the Bookmarks view. You can also bookmark individual lines of code in the editor. For more information on using bookmarks, refer to the documentation set provided with your IDE. From the menubar, choose Help > Help Contents.