Adding Classes and Methods from the Repository to the Workspace

If you have deleted a class, interface, or method from the workspace, it still resides within the repository, and you can add it back to the workspace if you find you need it again.  Because classes and methods rely heavily on their place in a hierarchy for their definitions, you can add one back only to the program element that previously contained it.

For example, if you deleted ClassA from Package1, then you can add ClassA back to Package1, but not to Package2.

Adding a Class Back to a Package
To add a class (or interface) from the repository to the workspace:

  1. Select the package that contained the class before the the class was removed from the workspace.
  2. Select Add, Class from the package's pop-up menu.
  3. In the Add Class SmartGuide, select the Add from Repository radio button.
  4. Select the classes you want to add back by enabling their checkboxes.
  5. Click Finish.

The classes will be added and compiled.

tentergf.gif (577 bytes) To add a class back to a package, the package must be an open edition and you must belong to the package group. If you add a class back to a package, you become the owner of the class within that edition of the package.

Adding a Method Back to a Class
To add a method from the repository to the workspace:

  1. Select the class that contained the method before the method was removed from the workspace.
  2. Select Add, Method from the class' pop-up menu.
  3. In the Add Method SmartGuide, select Add from Repository.
  4. Select the methods you want to add back by enabling their checkboxes.
  5. Click OK.

The methods will be added and compiled.

ngrelc.gif (533 bytes)
Projects and Other Program Elements
Editions and Versioning

ngrelt.gif (466 bytes)
Creating a Class
Creating an Interface
Adding Projects and Packages from the Repository to the Workspace
Creating a Method
Searching for a Program Element in the Repository
Deleting Program Elements from the Workspace