Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » compound elements
compound elements [message #226330] Thu, 09 November 2006 14:57 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #226486 is a reply to message #226461] Tue, 14 November 2006 14:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Sferzah.yandex.ru

now i see it, resize but can't move..

where i can read more about different layots and EditPolicies?
Re: compound elements [message #226548 is a reply to message #226486] Thu, 16 November 2006 14:47 Go to previous message
Eclipse UserFriend
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?
Previous Topic:Fill an oval with a gradient
Next Topic:TreeViewer with lazy loading
Goto Forum:
  


Current Time: Sun Nov 28 20:52:13 GMT 2021

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

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

Back to the top