How can I find out when tabbed dockables are hidden

I want to find out when a dockable gets hidden because it is in a TabbedDockStation, and the user user has clicked on another tab. Similarly I also want to find out when that dockable is made visible (either because the user clicked on it’s tab, or maybe because the user closed all the other tabs, thus making this dockable visible again).

I could not find any events in the FrontendListener and DockableListener for this.

Can you please tell me which events I should listen to in order to get this information.


Thanks
Parag

As already set elsewhere: :smiley:

I would add a DockStationListener to the *parent of the Dockable, the method dockableVisibilitySet is called if the Dockable changes its visibility - and clicking on a tab will change the visibility.

  • with a DockHierarchyListener you always know what parent a Dockable has

Hope that helps
Beni