Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Add Command Problem
Add Command Problem [message #194031] Tue, 30 August 2005 11:33 Go to next message
Eclipse UserFriend
Originally posted by: prb113.york.ac.uk

I have figures in my editor, which can contain other figures and these
figures can be dragged from one container to another but I am having a
problem implementing this.
Currently I implement the createAddCommand method in the
XYLayoutEditPolicy. This performs all the correct changes in th model but
the view is not refreshed. If the container figure is moved (to call the
refresh) it does appear but then it cannot be dragged back to another
containe figure or moved about. The editpart of the child seems to have no
parent.

Am I doing this right? I've read around a bit and I think I need to do
something with OrphanChildren but I'm unsure what that means. What am I
doing wrong and can you explain what an OrphanChildren request means.

thanks
Paul
Re: Add Command Problem [message #194065 is a reply to message #194031] Tue, 30 August 2005 15:13 Go to previous message
Eclipse UserFriend
Originally posted by: pbeagan.yahoo_dontspamme_.com

> This performs all the correct changes in th model but
> the view is not refreshed.

You should set a breakpoint in the propertyChange(PropertyChangeEvent evt)
method of the parent editpart. If this is not getting called then make
sure that you model updates are executing firePropertyChange().
Previous Topic:dragging a connector across a node anchors on the closer node
Next Topic:When does refreshVisuals take effect?
Goto Forum:
  


Current Time: Sat Apr 20 03:45:07 GMT 2024

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

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

Back to the top