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