Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Reasons of the 'Not all members are distinguishable' warning
Reasons of the 'Not all members are distinguishable' warning [message #1178258] Sat, 09 November 2013 14:13 Go to next message
Tomas Sandkvist is currently offline Tomas SandkvistFriend
Messages: 149
Registered: October 2013
Senior Member
I'm having trouble to realize where these messages are coming from. How hard I look I can't see if there is some element having the same name as another, so perhaps that is not the problem?

Any suggestions appreciated!

Regards,
Tomas Sandkvist
Re: Reasons of the 'Not all members are distinguishable' warning [message #1178456 is a reply to message #1178258] Sat, 09 November 2013 17:21 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1209
Registered: July 2009
Location: Canada
Senior Member

Hi, Tomas,

This can be caused not only by the actual owned members of a namespace,
but also imported members that have names clashing with owned members.
This is one reason why element imports can specify aliases.

Unfortunately, the UML2 implementation of the
namespace-members-are-distinguishable constraint doesn't encode in the
problem marker references to the indistinguishable members, so you will
just have to work it out for yourself. You could possibly use an OCL
query to find them. Something like (totally untested) in the context
of uml::Namespace:

let ns = self in
ns.members->select(e |
ns.members->exists(m | m <> e and not
m.isDistinguishableFrom(e, ns)))

HTH,

Christian

On 2013-11-09 14:13:14 +0000, Tomas Sandkvist said:

> I'm having trouble to realize where these messages are coming from. How
> hard I look I can't see if there is some element having the same name
> as another, so perhaps that is not the problem?
>
> Any suggestions appreciated!
>
> Regards,
> Tomas Sandkvist
Re: Reasons of the 'Not all members are distinguishable' warning [message #1609169 is a reply to message #1178456] Tue, 10 February 2015 01:19 Go to previous messageGo to next message
Vadim Peretokin is currently offline Vadim PeretokinFriend
Messages: 45
Registered: July 2009
Member
How can one run this OCL query on a UML model? Which editors support this?

[Updated on: Tue, 10 February 2015 01:19]

Report message to a moderator

Re: Reasons of the 'Not all members are distinguishable' warning [message #1609343 is a reply to message #1609169] Tue, 10 February 2015 04:07 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1209
Registered: July 2009
Location: Canada
Senior Member

Hi,

If you have the OCL SDK installed, it provides an OCL console in the
Console View. Have a look at the OCL User's Guide:

http://help.eclipse.org/luna/topic/org.eclipse.ocl.doc/help/InteractiveOCL.html?cp=43_1_6


HTH,

Christian

On 2015-02-10 01:19:38 +0000, Vadim Peretokin said:

> How can run this OCL query on a UML model? Which editors support this?
Re: Reasons of the 'Not all members are distinguishable' warning [message #1609630 is a reply to message #1609343] Tue, 10 February 2015 08:30 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6797
Registered: July 2009
Senior Member
Hi

Papyrus' Search using OCL also offers some not very obvious OCL query
capability.

In comparison to the OCL Console, Papyrus Search has inferior input
dialog/selection but better result display. One day they might be unified.

Regards

Ed Willink


On 10/02/2015 04:07, Christian W. Damus wrote:
> Hi,
>
> If you have the OCL SDK installed, it provides an OCL console in the
> Console View. Have a look at the OCL User's Guide:
>
> http://help.eclipse.org/luna/topic/org.eclipse.ocl.doc/help/InteractiveOCL.html?cp=43_1_6
>
>
> HTH,
>
> Christian
>
> On 2015-02-10 01:19:38 +0000, Vadim Peretokin said:
>
>> How can run this OCL query on a UML model? Which editors support this?
>
>
Previous Topic:Permanent display of Hyperlink icon
Next Topic:Import an EMF model in Papyrus
Goto Forum:
  


Current Time: Thu Aug 13 06:34:26 GMT 2020

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

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

Back to the top