Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Get XMI: ID of elements in sysml
Get XMI: ID of elements in sysml [message #1836047] Fri, 18 December 2020 22:36 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:UML/Sysml Profile..
Next Topic:[Acceleo] - How to bundle Acceleo with Sirius
Goto Forum:
  


Current Time: Thu Feb 13 01:20:12 GMT 2025

Powered by FUDForum. Page generated in 0.03699 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top