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
Ala Eddine is currently offline Ala EddineFriend
Messages: 5
Registered: November 2020
Junior Member
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
Ed Willink is currently offline Ed WillinkFriend
Messages: 7220
Registered: July 2009
Senior Member
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: Fri Jul 30 05:31:43 GMT 2021

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

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

Back to the top