Adding Projects and Packages from the Repository to the Workspace

The workspace contains all the projects and packages with which you are working.   The repository contains all previous or updated editions, and editions that have otherwise been moved from the workspace. 

tentergf.gif (577 bytes) The repository also contains projects and packages that other users have created.

Adding a Project to the Workspace
If you are in the Workbench, add a project from the repository to the workspace by completing the following steps:

  1. Click the New Project button newProjUp.gif (1058 bytes).  The Add Project SmartGuide will start up.   This SmartGuide is also used for creating a new project.
  2. Select the radio button beside Add project(s) from the repository.  
  3. Select one or more of the available projects from the lists by enabling the desired project and edition check boxes. You can add only one edition of a given project.
  4. Click Finish.

Alternatively, if you are currently using the Repository Explorer, add a project by completing the following steps:

  1. Select a project, and then one of its editions.
  2. Choose Add to Workspace from the edition's pop-up menu.

The project, including all packages and classes contained in that edition of the project, will be added to the Projects page of the Workbench. You can browse it in the Project browser.

tentergf.gif (577 bytes) When you add a project to the workspace, the package and class editions that get added are the editions most recently released into that edition of the project. Anyone on the development team can add projects to their workspaces, because this action does not alter the project edition's configuration of package and class editions in the repository.

Adding a Package to the Workspace
You can add a package from the repository to any project in the workspace, or to a project that does not yet exist, provided that the package has not been added to another project already.  If you are in the Workbench, you can add a package from the repository to the workspace by completing the following steps:

  1. Click the New Package button newPackUp.gif (1064 bytes) in the Workbench.  The Add Package SmartGuide will start up. This SmartGuide is also used for creating a new package.
  2. Provide the name of a project to hold the package.  If a project was selected in the Workbench when you launched the SmartGuide, its name will be in the Project name field by default.  You can enter the name of an existing project or the name for a new project.  If you enter a project name that does not yet exist in the workspace, the SmartGuide will create the project when it adds the package.
  3. Select the radio button beside Add package(s) from the repository.  
  4. Select one or more of the available packages from the lists by enabling the desired package and edition check boxes. You can add only one edition of a given package.
  5. Click Finish.

Alternatively, if you are currently using the Repository Explorer, you can add a package by completing the following steps:

  1. Select a package, and then one of its editions.
  2. Choose Add to Workspace from the edition's pop-up menu. 
  3. Select or provide a name for a project to which the package will be added.

If you specified a new project, it will be created, and then the package will be added to the specified package.  You can browse the package in the Projects and Packages pages of the Workbench, or in the project and package browsers.

tentergf.gif (577 bytes) When you add a package to the workspace, the class editions that get added are the editions most recently released into that edition of the package. The project to which you are adding the package can not be a versioned edition. If the project is not an open edition, then a scratch edition of the project will be created. Only the project owner can open an edition of the project and add a package to it, since this action alters the project's configuration of contained packages and classes in the repository, which changes the team baseline.

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

ngrelt.gif (466 bytes)
Browsing the Workspace
Creating a Project
Creating a Package
Adding Classes and Methods from the Repository to the Workspace
Searching for a Program Element in the Repository