Replacing Editions in the Workspace (Reloading)

The workspace contains only one edition of any program element at a time. The repository contains all editions. At times, you will want to replace the edition in the workspace with an earlier edition from the repository, for example to back out code changes. At other times, you will want to replace it with a newer edition, to catch up with changes that other team members have made. In all cases, the edition that you replace will be removed from the workspace but it will continue to exist in the repository.

Replacing the edition that is in the workspace is also called reloading. Reloading a project or package also reloads the contained packages and classes. Reloading a method removes all breakpoints from the method.

To reload a project, package, class, interface, or method, select Replace with from the program element's pop-up menu in the Workbench or a browser. A cascaded menu shows you what replacement options are available. You can replace more than one program element at a time by holding down the Ctrl key when you make your selections.

To verify exactly what you have in the workspace after reloading, click the Show Edition Names man_onup.gif (1000 bytes) button.

tentergf.gif (577 bytes) In the team development environment, reload projects or packages to synchronize with a team baseline. To do this, select Replace with > Released Contents or Replace with > Released from the project or package's pop-up menu in the Workbench.

Choosing a Specific Edition to Reload
To see the editions that are in the repository and replace the edition in the workspace with one of them:

  1. Select Replace With > Another Edition from the program element's pop-up menu. The Select Replacement for... window will appear, listing all of the editions that are in the repository.
  2. Select an edition from the list. The bottom pane of the Select Replacement for... window will show the program source.
  3. Click OK.

The edition that you selected will be loaded into the workspace.

tentergf.gif (577 bytes) Reloading a Team Baseline
To reload all of the classes for a package in the workspace, select Replace with > Released Contents for the package. The class versions that have most recently been released into that edition of the package will be loaded into the workspace. Similarly, selecting Replace with > Released Contents for an edition of a project will reload all contained package and class editions.

To reload one or more individual classes, select Replace with > Released Edition from their pop-up menu.


Editions and Versioning
Repository
Workspace


Searching for a Program Element in the Repository
Creating an Open Edition
Versioning a Program Element