Is there any possibility to check if a CDockablePerspective or the associated MultipleCDockable is currently minimized?
I want to tile all MultipleCDockable in the current perspective, but only that ones that are not minimized by the user. I have a map of all added windows (DockablePerspective is just holding the CDockablePerspective) (DockWindow is my custom meta-information):
workDockablePerspectives.put(window.getId(), new DockablePerspective(
window, new MultipleCDockablePerspective(
WorkDockableFactory.ID, window.getId(),
workDockableLayoutFactory.createFor(window))));
The MultipleCDockable itself has a method “getExtendedMode” which returns something like “normalized”, “maximized” or “minimized”.
All CDockablePerspectives have a method “getLocationHistory”, and the LocationHistory has a method “getLastMode”. That method returns the same information as “getExtendedMode” from MultipleCDockable.
Thank you, good to know.
But I’m using now a different approach. I just set a tiled perspective for all my multi-dockables.
The user can than minimize the docks and save it as the current perspective. Anyway, to arrange the docks manually is much simpler with DockingFrames than with JDesktopPane and JInternalFrame.