"Arrange All" for top elements and their compartment elements [message #216391] |
Mon, 26 January 2009 16:53 |
Eclipse User |
|
|
|
Originally posted by: xxx.xxx.xxx
Hi all,
I notice that the "Arrange All" action arranges the top diagram elements
only... say you have top elements A and B in the diagram, each of which
has a compartment containing A1 and A2, and B1 and B2 respectively.
If the diagram is selected, the "Arrange All" action arranges A and B
inside the diagram, but does not arrange A1 and A2 inside A, or B1 and B2
inside B.
If the compartment of A is selected, the "Arrange All" action arranges A1
and A2 inside A, but does not arrange B1 abd B2 inside B, or A and B
inside the diagram.
e.g. in the Mindmap example, the diagram is in focus, the "Arrange All"
action arranges the topics in the diagram, but the threads inside the
topic compartments are not arranged.
I tried using ArrangeRequest:
ArrangeRequest arrangeRequest = new
ArrangeRequest(ActionIds.ACTION_ARRANGE_ALL);
MyTopEditPart myTopEditPart = (MyTopEditPart)
ilEditor.getDiagramEditPart();
List<EditPart> ep = new ArrayList<EditPart>();
//create the ep list....
arrangeRequest.setPartsToArrange(ep);
//etc...
and no matter which edit parts I put in the ep list (only the top, or only
one of the compartments), always the top elements are arranged, but their
compartment objects are not.
I can't figure out how to arrange everything together (the top elements
and their compartment contents). Any suggestions are highly appreciated..
Kind regards,
Iliyana
|
|
|
|
Powered by
FUDForum. Page generated in 0.02932 seconds