How to keep IDs consistent [message #1776197] |
Mon, 13 November 2017 10:47  |
Eclipse User |
|
|
|
Hello,
I'm developing an e4 application and am really liking it.
But I have one problem with the IDs of the elements defined in the e4xmi. When I want to access any element from the XMI in my code I have to know the ID of the element. I would really like to have a string constant in my code with this ID.
Right now I would define some interface with a lot of constants and manually update those constants whenever we add or change a command, part etc.
But this is not fool proof. When someone forgets to change the constant after making changes in the XMI we get out of sync. Refactorings also won't work.
Is there any best practice on how to use the IDs in the XMI?
Thanks
Felix
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08394 seconds