Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Knowing what diagram an element belongs to in OCL
Knowing what diagram an element belongs to in OCL [message #1611373] Wed, 11 February 2015 10:19 Go to next message
Eclipse UserFriend
Dear all,
I wonder if it's possible to know what elements belong to each diagram
in OCL.
My problem is that I would like to split a bigger diagram into smaller
ones, but for some constraints I would like to know the diagram where a
specific element (class, dependency, ...) is specified.
Is it possible?

Best,

Víctor
Re: Knowing what diagram an element belongs to in OCL [message #1612159 is a reply to message #1611373] Wed, 11 February 2015 21:37 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5429
Registered: July 2009
Senior Member
Hi

Not really. In UML you have the overall model for which each diagram
provides a very partial and selective view.

A particular model element may appear in none or many diagrams, so there
is no unique definition to find.

Naively you have to search the diagrams for graphical appearances. It
may be that Papyrus provides a helper API for this kind of search.

Regards

Ed Willink


On 11/02/2015 10:19, "V. López" wrote:
> Dear all,
> I wonder if it's possible to know what elements belong to each diagram
> in OCL.
> My problem is that I would like to split a bigger diagram into smaller
> ones, but for some constraints I would like to know the diagram where a
> specific element (class, dependency, ...) is specified.
> Is it possible?
>
> Best,
>
> Víctor
Re: Knowing what diagram an element belongs to in OCL [message #1612914 is a reply to message #1612159] Thu, 12 February 2015 09:25 Go to previous message
Eclipse UserFriend
Thanks a lot Ed.
I thought that since diagrams is just a view of the model, it would not
be easy. I'll check if it's possible to relate the elements to their
graphical representation in the diagrams.

Best,

Víctor

El 11/02/2015 a las 22:37, Ed Willink escribió:
> Hi
>
> Not really. In UML you have the overall model for which each diagram
> provides a very partial and selective view.
>
> A particular model element may appear in none or many diagrams, so there
> is no unique definition to find.
>
> Naively you have to search the diagrams for graphical appearances. It
> may be that Papyrus provides a helper API for this kind of search.
>
> Regards
>
> Ed Willink
>
>
> On 11/02/2015 10:19, "V. López" wrote:
>> Dear all,
>> I wonder if it's possible to know what elements belong to each diagram
>> in OCL.
>> My problem is that I would like to split a bigger diagram into smaller
>> ones, but for some constraints I would like to know the diagram where a
>> specific element (class, dependency, ...) is specified.
>> Is it possible?
>>
>> Best,
>>
>> Víctor
>
Previous Topic:Enumeration Bug in OCL for profiles and inconsistency between Xtext OCL console and OCLs in a profil
Next Topic:OCL Parsing Error: 1:1:4 "inv:" misplaced construct(s) what does this mean?
Goto Forum:
  


Current Time: Thu Oct 19 12:50:50 GMT 2017

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

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