Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Outline, hierarchicaly, Diagram input a subelement
Outline, hierarchicaly, Diagram input a subelement [message #234080] Thu, 18 June 2009 12:00 Go to next message
Urs Frei is currently offline Urs FreiFriend
Messages: 27
Registered: July 2009
Junior Member
Hello

I have a Model A that can contains also a Model A an so one.
- A
- A
- A
Now I would like to show in the DiagramEditor everything that contains the
first Model A. But the sub Model A should displayed as a black box. After I
double clicked in the outline View on the sub Model A, the Editor should now
show the content of the sub Model A and no more the content of the Model A.

I would like to have a hierarchically model and I would like to step in to
it and step out.

What I have to do to have this behaviour?

I am tried following things:
- Add a EditPartFactory and create a TreeEditPart. Override the method
getDragTracker, and performRequest. So I can detect the double click. My
problem is to set a subelement on the DiagramEditor.
- I tried to configure it on the gmfmap file. But on it I have no Idea what
I have to do.

Thank you for your help

Urs
Re: Outline, hierarchicaly, Diagram input a subelement [message #234094 is a reply to message #234080] Thu, 18 June 2009 12:34 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Urs,

Try modifying Related Diagrams property for the NodeMapping of node representing
"blackbox" A element on A diagram - select Canvas from this .gmfmap model
and try generatig gmfgen model and code with these settings. See Ecore diagram
editor/Node Mapping for EPackage element there as an example.

-----------------
Alex Shatalin
Re: Outline, hierarchicaly, Diagram input a subelement [message #234169 is a reply to message #234094] Fri, 19 June 2009 06:44 Go to previous messageGo to next message
Urs Frei is currently offline Urs FreiFriend
Messages: 27
Registered: July 2009
Junior Member
Hello Alex



Thank you for your help. I tried to set the canvas on the Top Reference
Node --> Node Mapping but nothing happen. If I do a double click on a
SubModel on the Outline nothing happens.



I am also not sure we are speaking from the same behaviour.

If I look the ecore Editor behaviour at runtime, I cannot see the searched
behaviour.

My behaviour is the following:

I have an Element A --> MainModel, and an Element A --> SubModel. The
SubModel is a child of the MainModel. The Outline should show the whole
tree. If I do a double click (Outline) on the SubModel, the DiagramEditor
should show the SubModel and its content. But not the parent MainModel. If I
do a double click (Outline) on the MainModel, the DiagramEditor should show
the MainModel and its content. But not the content of the SubModel.



This cannot see this behaviour in any ecore Editor that I know.



Have you any other Idea?



Thank you




Urs



"Alex Shatalin" <vano@borland.com> schrieb im Newsbeitrag
news:3c3172e62e16c8cbbe3905409bf3@news.eclipse.org...
> Hello Urs,
>
> Try modifying Related Diagrams property for the NodeMapping of node
> representing "blackbox" A element on A diagram - select Canvas from this
> .gmfmap model and try generatig gmfgen model and code with these settings.
> See Ecore diagram editor/Node Mapping for EPackage element there as an
> example.
>
> -----------------
> Alex Shatalin
>
>
Re: Outline, hierarchicaly, Diagram input a subelement [message #234177 is a reply to message #234169] Fri, 19 June 2009 07:00 Go to previous message
Urs Frei is currently offline Urs FreiFriend
Messages: 27
Registered: July 2009
Junior Member
ohhh. I see!! I know not THE ecore Tool. Now I found it.

Sorry. I look again.


"Urs Frei" <urs.frei@naturasoft.ch> schrieb im Newsbeitrag
news:h1fc4a$jrd$1@build.eclipse.org...
> Hello Alex
>
>
>
> Thank you for your help. I tried to set the canvas on the Top Reference
> Node --> Node Mapping but nothing happen. If I do a double click on a
> SubModel on the Outline nothing happens.
>
>
>
> I am also not sure we are speaking from the same behaviour.
>
> If I look the ecore Editor behaviour at runtime, I cannot see the searched
> behaviour.
>
> My behaviour is the following:
>
> I have an Element A --> MainModel, and an Element A --> SubModel. The
> SubModel is a child of the MainModel. The Outline should show the whole
> tree. If I do a double click (Outline) on the SubModel, the DiagramEditor
> should show the SubModel and its content. But not the parent MainModel. If
> I do a double click (Outline) on the MainModel, the DiagramEditor should
> show the MainModel and its content. But not the content of the SubModel.
>
>
>
> This cannot see this behaviour in any ecore Editor that I know.
>
>
>
> Have you any other Idea?
>
>
>
> Thank you
>
>
>
>
> Urs
>
>
>
> "Alex Shatalin" <vano@borland.com> schrieb im Newsbeitrag
> news:3c3172e62e16c8cbbe3905409bf3@news.eclipse.org...
>> Hello Urs,
>>
>> Try modifying Related Diagrams property for the NodeMapping of node
>> representing "blackbox" A element on A diagram - select Canvas from this
>> .gmfmap model and try generatig gmfgen model and code with these
>> settings. See Ecore diagram editor/Node Mapping for EPackage element
>> there as an example.
>>
>> -----------------
>> Alex Shatalin
>>
>>
>
>
Previous Topic:Custom Layout in Compartment
Next Topic:IUndoContext and Undo/Redo actions
Goto Forum:
  


Current Time: Fri May 29 11:37:14 GMT 2020

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

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

Back to the top