I want to implement that the collapsing of a compartment minimizes this element.
Means the compartment's size is reset to the minimal size of this element. Of
course, uncollapsing should resize the compartment to its former size, a value
that can easily be saved as a Dimension.
With the ResizeCompartmentFigure class, I thought I have found the right
candidate for implementing my behaviour. But there are some problems when
extending the class with my own ResizeFigure. All of the
org.eclipse.XXX.internal.XXX packages which are necessary for the ScrollPanes
are not an open API. They are just for the internal use in GMF.
That's why I am asking if there are other possibilities to implement the desired
feature. Maybe some other classes? Or a special EditPolicy?