Enabling the CVS resource decorations

When enabled, CVS will decorate resources in Workbench views with icon and label decorations that indicate the CVS state of the resource.

To enable the CVS decorations:

  1. From the main menu bar, select Window > Preferences to open the Workbench Preferences dialog.
  2. In the dialog, select the Workbench > Label Decorations preference page. This page allows the enabling and disabling of all decorations defined by different plug-ins in the Workbench.
  3. Click on the CVS box to enable the CVS decorations.
  4. Click OK.

Note: The decorations may not appear immediately because, in some cases, they are expensive to compute so they are calculated in the background.

To configure the CVS decorations:

  1. From the main menu bar, select Window > Preferences to open the Workbench Preferences dialog.
  2. In the dialog, select the Team > CVS > Label Decorations preference page. This page allows the configuration of how decorations appear on CVS projects, folders and files.
  3. To configure the text label decorations:
    1. Pick the resource type (file, folder, project) for which you want to change the decoration.
    2. Click in the decoration string for that resource type at the location where the new decoration element should go.
    3. Click the Add Variables button for that resource type.
    4. Choose the CVS information variable to add. For instance, for files, you could select the added_flag which will be inserted in the decoration where you placed the cursor. The string {added_flag} will be added to the decoration string which will decorate newly added resources using the added resource label (which can be set in the Label Decoration for Added field).
  4. Repeat the above for any other decorations to be added.
  5. Decorations can be removed by deleting the decoration variable name (i.e. {added_flag}) from the decoration string. In a similar manner, spacing can be added.
  6. To configure icon decorations, simply enable/disable the icon checkboxes at the bottom of the page.
  7. Click OK or Apply for the new decorations to take effect.

Related concepts
Team programming with CVS
Synchronizing with a CVS repository

Related tasks
Checking out a project from a CVS repository
Sharing a new project using CVS

Related reference
CVS

 
Copyright IBM Corporation and others 2000, 2002