## Resolving Name Collisions

The UI Designer creates names for the files it generates based on the names you specify for the project and each individual container. In most cases, choosing a unique name for each UI design within a project ensures that all generated file names within the project are unique. However, it is possible that a generated file name could conflict with the name of a file that you have created manually.

If this occurs, the UI Designer will recognize this problem when it attempts to initialize the UI design and display the File Name Collision Detected dialog (Figure 1).

Figure 1 - Name Collision detected between existing files and new UI Design name

NOTE The specific files listed in the dialog will vary.

Follow the steps on this page to resolve the naming conflict as appropriate to your situation.

#### Resolving Name Collisions

1. Option 1: Click No to cancel the file generation - recommended option if you did not create these files with this wizard.

The wizard will cancel the file generation.

NOTE After you click No, repeat the steps to create your new UI design with a unique name to avoid the name collision.

2. Option 2: Click Yes to complete the wizard - recommended option if you created these files with this wizard.

After you click Yes :

- a new S60 UI Design with the name you specified in step 5 is created on disk and displayed in the Project Explorer view.
- an "application.uidesign" file is created on disk and displayed in the Project Explorer view.
- an #include of the new design’s <UIDesignName>.rssi file and other necessary system #includes will be added to your project's <ProjectName>.rss file. If this file does not already exist, the UI Designer will create it.
- the UI Designer will generate code and merge it into each of the listed files.

If you did not create these files with the same wizard:

- they are most probably not formatted correctly for optimum file generation by the UI Designer
- the wizard will place newly generated regions at the end of their respective parents instead of their correct place within the parent
- you must correct this placement manually.

##### Related concepts

- UI Designs

##### Related references

- UI Design Wizard