Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » [SOLVED] Cannot retrieve InstanceSpecification with UML2 library
[SOLVED] Cannot retrieve InstanceSpecification with UML2 library [message #898875] Sat, 28 July 2012 18:01 Go to next message
Alfredo Motta is currently offline Alfredo MottaFriend
Messages: 41
Registered: June 2012
Member
Hello everybody,

I have the model attached and I want to retrieve the InstanceSpecification which
is a direct child of the root model using this code

for(Element c: model.allOwnedElements()){
  if(c instanceof org.eclipse.uml2.uml.InstanceSpecification){
    return c;
  }
}


but it seems that the InstanceSpecification is not in the OwnedElements list.
Could you please give me some clue?

Thank you
  • Attachment: model.uml
    (Size: 1.80KB, Downloaded 48 times)
  • Attachment: Cattura.PNG
    (Size: 3.14KB, Downloaded 45 times)

[Updated on: Sat, 28 July 2012 18:11]

Report message to a moderator

Re: [SOLVED] Cannot retrieve InstanceSpecification with UML2 library [message #898877 is a reply to message #898875] Sat, 28 July 2012 18:12 Go to previous message
Alfredo Motta is currently offline Alfredo MottaFriend
Messages: 41
Registered: June 2012
Member
Sorry my fault, the input file was wrong.
The topic can be closed
Previous Topic:CacheAdapter.inverseCrossReferencer and Memory Leaks
Next Topic:Get XMI id of UML2 Element
Goto Forum:
  


Current Time: Sun Nov 23 01:20:07 GMT 2014

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

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