Chapter 2 Resource Editor Reference Guide


Modifying a resource file

Some resource files can be shared among different models or copied in a local model. Modifications that you make to a resource file are applied differently depending on whether the resource file is shared or copied into the model:

Resource file Description
Share Current resource file for the model constantly refers to the resource file stored in the resource files library. Any modifications made to the resource file are shared by other models using this resource file
Copy Current resource file is a unique copy of the resource file stored in the resource files library. The current resource file is independent of the original resource file so modifications made to the resource file in the resource files library are not available to the model. The copied resource file is saved with the model and cannot be used without it

When you modify a shared resource file, you should always modify a new resource file created from the original resource files shipped with PowerDesigner.

The File Name box allows you to know where the resource file you are modifying is defined:


Steps To modify a resource file:

  1. Select Tools→Resources→Resource File to open the list of resource files.
  2. Select a resource file in the list.

    Note   Modifying a shared resource file
    If you are modifying a shared resource file (you selected the Shared radio button when you choose the resource file), you modify the resource file original resource file in the resource files library. This definition is shared by all models using the resource file Shared connection. To ensure that you keep the original resource file, you should only modify a new resource file created from an original resource file

  3. Click the Properties tool to open the resource file properties dialog box.
  4. Expand the nodes in the tree view window as appropriate.
  5. Select a category or an entry.

    The name, comment, and value of the selected category or entry appear to the right of the tree view.
  6. Modify the comment or value as required.
  7. Click the Save tool to save the changes in the resource file.
  8. Click OK. You return to the list of resource files.
  9. Click Close in the list of resource files.

    If you click OK in the resource file properties dialog box without clicking the Save tool, the changes are saved in memory, the editor is closed and you return to the list of resource files. When you click Close in the list of resource files, a confirmation box appears asking you if you really want to save the modified resource file. If you click Yes, the changes are saved in the resource file itself. If you click No, the changes are kept in memory until you close the PowerDesigner session.

    The next time you open any model that uses the customized resource file, the model will take modifications into account. However, if you have previously modified the same options directly in the model, the values in the resource file do not change these options.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.