Get XMI: ID of elements in sysml [message #1836047] |
Fri, 18 December 2020 22:36  |
Eclipse User |
|
|
|
Hey Guys I need t extract the XMI ID of every elemnts of my SysML Model on papyrus using acceleo and i saw in other forums that i should use the Java Service below::
public String getXMIID(EObject eObject) {
if (eObject.eResource() instanceof XMIResource) {
return ((XMIResource)eObject.eResource()).getID(eObject);
}
return "";
}
but the query that evoques this Java service does not work with Package, class, Block, ports etc..
Does anybody have an idea how to deal with this ?
Thanks in Advance
|
|
|
Re: Get XMI: ID of elements in sysml [message #1836059 is a reply to message #1836047] |
Sat, 19 December 2020 09:06  |
Eclipse User |
|
|
|
Hi
It is almost certain that your problem is either that you did it wrong or that tools have evolved. Either way, without any sight of your code it's almost impossible to tell.
If you have been scanning xmi:id postings you will have seen that using xmi:id for anything other than debug aids is very misguided. Rethink your problem.
Regards
Ed Willink
|
|
|
Powered by
FUDForum. Page generated in 0.03699 seconds