hiding editparts inside a container [message #69514] |
Wed, 12 March 2003 11:05  |
Eclipse User |
|
|
|
Originally posted by: amititz.yahoo.com
Hi,
I have a model object that has children, and a corresponding editpart for it
that displays these children's editparts. My editor also provides a content
outline page with a GEF treeviewer (just like in the logic example), that is
synchronized using a selectionSynchronizer to the editor's graphical viewer.
I have two problems with it:
1) I want to be able to hide everything that is inside the container
editpart (recursively), BUT I don't want to remove the corresponding model
objects AND I still want my outline page to show them. however, if I try to
just setVisible(false) the figure to these editpart, then a selection in the
outline page causes the editor to show the bounding rectangle of this
editpart's figure.
2) Suppose now that I do want to show the child editparts in the editor. The
problem here is that I can't move them around like in the circuit editpart
in the logic example.
Any suggestions ?
Thanks in advance,
Amit
|
|
|
Re: hiding editparts inside a container [message #69556 is a reply to message #69514] |
Wed, 12 March 2003 11:25  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
"Amit" <amititz@yahoo.com> wrote in message
news:b4nlvm$t8r$1@rogue.oti.com...
> Hi,
> I have a model object that has children, and a corresponding editpart for
it
> that displays these children's editparts. My editor also provides a
content
> outline page with a GEF treeviewer (just like in the logic example), that
is
> synchronized using a selectionSynchronizer to the editor's graphical
viewer.
>
> I have two problems with it:
> 1) I want to be able to hide everything that is inside the container
> editpart (recursively), BUT I don't want to remove the corresponding model
> objects AND I still want my outline page to show them. however, if I try
to
> just setVisible(false) the figure to these editpart, then a selection in
the
> outline page causes the editor to show the bounding rectangle of this
> editpart's figure.
filter the hidden model elements from the graphical viewer in your
getModelChildren() method, and call refreshChildren(). This will cause the
editparts to be thrown out, instead of just having there figure's hidden.
>
> 2) Suppose now that I do want to show the child editparts in the editor.
The
> problem here is that I can't move them around like in the circuit editpart
> in the logic example.
I didn't understand this part of the question. Are you saying the children
are "locked"? Or that their positions are fixed?
|
|
|
Powered by
FUDForum. Page generated in 0.04247 seconds