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:
The classes will be added and compiled.
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:
The methods will be added and compiled.
Projects and Other Program Elements
Editions and Versioning
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