Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Package diagram partitioning for a class diagram
Package diagram partitioning for a class diagram [message #126053] Sun, 13 May 2007 09:37 Go to next message
Eclipse UserFriend
Since a Package is mapped as root element to a Canvas, I thought that
double clicking within the diagram on a child package contained in the
root package would create and open another diagram in the same diagram
resource, where the child package is also mapped to a Canvas. Isn't this
the diagram partitioning feature introduced in M2? However a double
click not works. Is there another solution to open up a new canvas for a
selected child package?

To get forth, I manually added a new <notation:Diagram> and <element
xmi:type="uml:Package" ..> element in the text representation.

But, if adding new classes to the child package diagram, these classes
are not displayed in the "classifiers" compartment in the figure for the
child package in the root package diagram.

On the other hand, if I add a new class directly in the "classifiers"
compartment, how can I display and edit this class (add attributes..) in
the corresponding child package diagram?


Thanks
Re: Package diagram partitioning for a class diagram [message #126222 is a reply to message #126053] Mon, 14 May 2007 07:33 Go to previous messageGo to next message
Eclipse UserFriend
Hello exquisitus,

> Since a Package is mapped as root element to a Canvas, I thought that
> double clicking within the diagram on a child package contained in the
> root package would create and open another diagram in the same diagram
> resource, where the child package is also mapped to a Canvas. Isn't
> this the diagram partitioning feature introduced in M2? However a
> double click not works. Is there another solution to open up a new
> canvas for a selected child package?
It should works.. Try following steps: Click with the mouse to the diagram
above and "to the left" from the package then drag mouse -> multiple element
selection frame shoudl appear and drop mouse below and "to the right" from
the package. Then double click on it. Diagram should be openned. If not then
this is a bug.

> But, if adding new classes to the child package diagram, these classes
> are not displayed in the "classifiers" compartment in the figure for
> the child package in the root package diagram.
Are you using GMF 2.0? this problem was in prev. releases but should be fixed
with the 2.0 latest stable builds..

-----------------
Alex Shatalin
Re: Package diagram partitioning for a class diagram [message #126300 is a reply to message #126222] Mon, 14 May 2007 18:04 Go to previous messageGo to next message
Eclipse UserFriend
> It should works.. Try following steps: Click with the mouse to the
> diagram above and "to the left" from the package then drag mouse ->
> multiple element selection frame shoudl appear and drop mouse below and
> "to the right" from the package. Then double click on it. Diagram should
> be openned. If not then this is a bug.

Dont understand this procedure. What is "to the left"?
Re: Package diagram partitioning for a class diagram [message #126367 is a reply to message #126300] Tue, 15 May 2007 04:55 Go to previous message
Eclipse UserFriend
Hello exquisitus,

> Dont understand this procedure. What is "to the left"?
Well, sorry for bad explanation. Just try to click on the diagram and drag
the mouse with button presed - you'll see multiple selection frame drawn.
I'm suggesting to select package with this multiple selection frame.

-----------------
Alex Shatalin
Previous Topic:Creating GMF EditPart Without semantic Model
Next Topic:Mapping on more than one diagram
Goto Forum:
  


Current Time: Sun Nov 09 18:36:24 EST 2025

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

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

Back to the top