|
|
|
Re: Reference between elements in different diagrams [message #195197 is a reply to message #195189] |
Tue, 01 July 2008 19:40 |
Eclipse User |
|
|
|
Originally posted by: balutavasile.yahoo.se
Back again.
I found the cause of my problem. The emf containment feature of my
property was set to true in the ecore model. After setting it to false and
regenerating the model code it works fine. The referenced element remains
in its diagram.
Thanks for your help.
|
|
|
|
Re: Reference between elements in different diagrams [message #494855 is a reply to message #494839] |
Mon, 02 November 2009 22:41 |
No real name Messages: 62 Registered: July 2009 |
Member |
|
|
I figured I misunderstood Alex' post. Now I got it. Everything works so
far, I have now both editors and the Function Blocks have a reference in
the properties view to Statecharts. And after loading a statechart, I
can even set it to a value. This is really awesome! I didn't know that
GMF could do that!
Regards,
Matthias
Matthias Schmeling wrote:
> Hi Vali,
>
> I am looking for existing approaches to referencing elements from other
> domain models. What I want to do is the following:
>
> I have a Function Block Editor and a Statechart editor. A Function Block
> may contain a Statechart. I'd like to give Function Blocks a reference
> to Statecharts from the other domain model and also to open a new
> diagram with the Statechart when clicking/double-clicking/right-clicking
> on a Function Block that contains a Statechart.
>
> If I understand your posts correctly, you have done the first part, is
> that right? I do not completely understand all the posts, could you
> explain to me, what has to be done to get it working?
>
> Thanks in advance,
> Matthias
>
> Vali wrote:
>> Back again.
>> I found the cause of my problem. The emf containment feature of my
>> property was set to true in the ecore model. After setting it to false
>> and regenerating the model code it works fine. The referenced element
>> remains in its diagram.
>>
>> Thanks for your help.
>>
|
|
|
Re: Reference between elements in different diagrams [message #494870 is a reply to message #494855] |
Tue, 03 November 2009 01:08 |
No real name Messages: 62 Registered: July 2009 |
Member |
|
|
Hm, now I'd like to get the file in which the referenced Statechart is
stored. Through debugging I figured out that the referenced statechart
has an XMIResourceImpl in its eAdapters List with the name of the file.
However, I bet there is an easier way than searching through the
eAdapters list. Does anyone have an idea?
Regards,
Matthias
Matthias Schmeling wrote:
> I figured I misunderstood Alex' post. Now I got it. Everything works so
> far, I have now both editors and the Function Blocks have a reference in
> the properties view to Statecharts. And after loading a statechart, I
> can even set it to a value. This is really awesome! I didn't know that
> GMF could do that!
>
> Regards,
> Matthias
>
> Matthias Schmeling wrote:
>> Hi Vali,
>>
>> I am looking for existing approaches to referencing elements from
>> other domain models. What I want to do is the following:
>>
>> I have a Function Block Editor and a Statechart editor. A Function
>> Block may contain a Statechart. I'd like to give Function Blocks a
>> reference to Statecharts from the other domain model and also to open
>> a new diagram with the Statechart when
>> clicking/double-clicking/right-clicking on a Function Block that
>> contains a Statechart.
>>
>> If I understand your posts correctly, you have done the first part, is
>> that right? I do not completely understand all the posts, could you
>> explain to me, what has to be done to get it working?
>>
>> Thanks in advance,
>> Matthias
>>
>> Vali wrote:
>>> Back again.
>>> I found the cause of my problem. The emf containment feature of my
>>> property was set to true in the ecore model. After setting it to
>>> false and regenerating the model code it works fine. The referenced
>>> element remains in its diagram.
>>>
>>> Thanks for your help.
>>>
|
|
|
Powered by
FUDForum. Page generated in 0.03721 seconds