compound elements [message #226330] |
Thu, 09 November 2006 14:57 |
Eclipse User |
|
|
|
Originally posted by: Sferzah.yandex.ru
i want to create compound elements in my diagram. have a problem with
placement simple objects on it, with outline page, etc.
would you tell me the first steps by simple way to do this?
model, figure, editpart.. then? am i need some features like CompoundPage
(extends AbstractEditorPage)? I mean, what is absolutely necessary to do,
prompt me pls
|
|
|
Re: compound elements [message #226461 is a reply to message #226330] |
Mon, 13 November 2006 11:56 |
Eclipse User |
|
|
|
Originally posted by: Sferzah.yandex.ru
i have simple elements on my diagram, and conteiner
when i put simple elements on conteiner - i see it in outline, but don't
see on diagram, where can be a problem? (.log clear)
|
|
|
|
Re: compound elements [message #226548 is a reply to message #226486] |
Thu, 16 November 2006 14:47 |
Eclipse User |
|
|
|
Originally posted by: Sferzah.yandex.ru
in ContainerEditPart installEditPolicy (to LAYOUT_ROLE) policy extends
XYLayoutEditPolicy, with implementing getOrphanChildrenCommand (to delete
element from old place) and createAddCommand (to add this element to new
place)
i don't find a way to do this with getMoveChildrenCommand..
if i have a DiagramModel - fo root diagram, and i have ConteinerModel with
field subdiagram (DiagramModel).. When i installEditPolicy to its
EditParts - in both case
installEditPolicy(EditPolicy.CONTAINER_ROLE, new
SimplyContainerEditPolicy());
installEditPolicy(EditPolicy.LAYOUT_ROLE, new XYLayoutEditPolicyImpl());
i don't understand how it work (but it work). Why i must install this
policy to container, when his modelchildren (subdiagram) already have this
policy?
|
|
|
Powered by
FUDForum. Page generated in 0.04180 seconds