Add Command Problem [message #194031] |
Tue, 30 August 2005 11:33 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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().
|
|
|
Powered by
FUDForum. Page generated in 0.02641 seconds