Commit cd450a8
authored
Add support for viewing and edit xcmappingmodel files (#3242)
Updates the handling of `.xcmappingmodel` files in the file and group
element creation logic, ensuring they are treated correctly as file
references rather than groups. It also adds a dedicated unit test to
verify this behavior.
Before implementation, only the .xml file was visible, inside a regular
folder. In addition to only being able to view the XML content and not
the Xcode preview,
<img width="310" alt="image (1)"
src="https://github.com/user-attachments/assets/5636e4b4-e835-4e5b-a2cb-11c53002eab6"
/>
Now there is interpretation via Xcode.
<img width="310" alt="image"
src="https://github.com/user-attachments/assets/eb9f8abb-4689-45a6-b0e3-430ca64a36e7"
/>
In addition to displaying correctly in the file structure, when opened,
it shows the Xcode preview and not just the XML as before.
---------
Signed-off-by: Lucas Romano <[email protected]>1 parent e51f451 commit cd450a8
File tree
3 files changed
+47
-0
lines changed- tools/generators/files_and_groups
- src/ElementCreator
- test/ElementCreator
3 files changed
+47
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
108 | 121 | | |
109 | 122 | | |
110 | 123 | | |
| |||
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
500 | 533 | | |
0 commit comments