Versioning an edition

You can version a project, a package, or a class. When you version one of these program elements, all program elements contained within it are also versioned. For example, if you version a package, all classes that are part of that package are also versioned.

Let's create a versioned edition of your code.

  1. Select the package in which you created your To-Do List applet. From the Selected menu, click Manage and then Version.   The Versioning Selected Items SmartGuide appears.

  2. Ensure the Automatic radio button is selected and then select OK.

In the Workbench hierarchy, notice that the timestamp beside the package name has been replaced with the new version number. This versioned edition is now permanently stored in the repository, regardless of what happens to your editions in the workspace. You can create open editions based on this versioned edition, and the versioned edition will always be available from the repository.