|
Re: Collapseable contentPane of an edit part [message #147551 is a reply to message #147499] |
Thu, 12 August 2004 13:37 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
You could simply remove the contentspane from the editpart's mane figure,
assuming they are two different figures. You'll also have to make sure that
the children don't remain selected.
"Marion Schmid" <marion.schmid@sap.com> wrote in message
news:cffgnd$1b2$1@eclipse.org...
> Hello!
>
> I want to develop a feature to collapse/expand the content pane (where the
> child edit parts are located) of my edit parts.
> I wonder how to implement this or if this feature is maybe already
> available.
>
> One possibility I was thinking about is to override the
> AbstractGraphicalEditPart's addVisual(childEditPart, index).
>
> protected void addChildVisual(EditPart childEditPart, int index) {
> IFigure child = ((GraphicalEditPart)childEditPart).getFigure();
> getContentPane().add(child, index);
> }
>
> and just add
>
> child.setVisible(false)
> and change the parent container's size to the mininum size
>
> for the cases of collapsing.
>
> Does anyone of you have a better idea to solve this?
>
> Thanks and best regards,
> Marion
>
>
|
|
|
Powered by
FUDForum. Page generated in 1.58115 seconds