Home » Modeling » GMF (Graphical Modeling Framework) » Double click feather and canvas mapping
Double click feather and canvas mapping [message #114291] |
Mon, 26 March 2007 07:15  |
Eclipse User |
|
|
|
Originally posted by: mcglinnk.cs.tcd.ie
Hey Guys,
I have two qeustions here, so bear with me a second please. The first is
regarding compartments, I would like to arrange my compartments like UML
swinlanes, so that they are side by side rather than one under the other.
Is that possible?
Also, I would like to have a node created within one of these elements
that when you double click creates a new canvas. Currently I am simply
trying to map this node onto the canvas I am working with (eventually this
should be an entirely different canvas).
It works fine to map a top node element (like in the taipan example) to
another canvas, but when I attempt to map a child node, like that of a
node in anohter node, it doesnt appear to work (it is doing something,
because I get that circle with a line through it appearing, it just isnt
opening another window).
I have tried having the node that maps to another canvas contained within
the node that contains the compartments and also tried to have the same
node contained within the main canvas element (the very top element).
Basically, I want to be able to create a swimlane node (like a uml
swimlane in an activity diagram), with compartments each of which have
child nodes (like uml activities) that can link to new diagrams (new
activity diagrams),
All help is much appreciated,
Thanks!
Kris.
|
|
|
Re: Double click feather and canvas mapping [message #114367 is a reply to message #114291] |
Mon, 26 March 2007 08:48   |
Eclipse User |
|
|
|
Hello Kris,
> is regarding compartments, I would like to arrange my compartments
> like UML swinlanes, so that they are side by side rather than one
> under the other. Is that possible?
AFAIU, for now you can modify generated XXXEcitPart.setupContentPane(IFigure
nodeShape) to set "ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout(false);"
> It works fine to map a top node element (like in the taipan example)
> to another canvas, but when I attempt to map a child node, like that
> of a node in anohter node, it doesnt appear to work (it is doing
> something, because I get that circle with a line through it appearing,
> it just isnt opening another window).
Try debugging generated OpenDiagramEditPolicy.
> Basically, I want to be able to create a swimlane node (like a uml
> swimlane in an activity diagram), with compartments each of which have
> child nodes (like uml activities) that can link to new diagrams (new
> activity diagrams),
Then you probably can benefit from UML2 Tools project: http://www.eclipse.org/modeling/mdt/?project=uml2tools#uml2t ools.
-----------------
Alex Shatalin
|
|
| | | | | |
Re: Double click feature and canvas mapping [message #114841 is a reply to message #114798] |
Wed, 28 March 2007 03:01  |
Eclipse User |
|
|
|
Originally posted by: fbanica.soluta.net
For the Flow Layout, make right-click on the rectangle figure, select
NewChild/FlowLayout (see attachment - I hope it's allowed put a .png in the
attachment).
Floppy
"Kris McGlinn " <mcglinnk@cs.tcd.ie> wrote in message
news:b8a38a50805067237b6d2adf6c88db45$1@www.eclipse.org...
> Hi Alex,
>
>> This is a child element of figure in .gmfgen model - you have to create
>> it
>> using popup menu on RectangleFigure.
>
> I dont think you have explained where I can find that popup menu, it
> doesnt appear to be in my rectangle figure in .gmfgraph and it doesnt
> appear to be anywhere in my .gmfgen, as far as I can understand from your
> reply I need to create it in .gmfgraph to appear in .gmfgen? I gave you a
> list of everything that I have in my .gmfgraph in the last message, and
> there is no popup menu to do this.
>
>> The best place to gen an information about .gmfgen model
>> properties/elements
>> is gmfgen.ecore file. ;-) In addition we have the following pages on the
>> web:
>
>> http://wiki.eclipse.org/index.php/GMFGraph_Hints
>> http://wiki.eclipse.org/index.php/GMF_Documentation
>
> Thanks!
>
>> AFAIK, we have an examples for only top-level elements. Try debugging the
>> generated code deeply to get an understanding why diagram is null. Take a
>> look on the element passed to ViewService.createDiagram and compare it
>> with
>> the element passed to the same method on opening diagram for top-level
> diagram
>> node.
>
> I will give this a go when I have some more time and let you know how I
> progress,
>
> Thanks,
>
> Kris.
>
|
|
|
Goto Forum:
Current Time: Tue Jul 22 14:54:00 EDT 2025
Powered by FUDForum. Page generated in 0.04291 seconds
|