Getting grid co-ordinates of a dockable just before it closes

Hi Beni,

When a user closes a dockable by clicking on it’s close button, is it possible to catch an event before the dockable is closed, such that calling getRoot() of the root dock station, will yield a tree from which I can get the leaf of the dockable which is about to close?

I want to get the leaf to be able to get information using which I can re-create it’s grid co-ordinates.

Thanks & Regards
Parag Shah

Hm, try adding a VetoableDockFrontendListener to the DockFrontend, its “hiding” method is called before a Dockable closes (although the listener is only notified if there is any chance to cancel the closing event, but for clicking the close-button this is always true).