* @param dockable the dockable object containing the XDockingPanel instance
* that is to be zoomed/shown
*/
public void swapViews( XDockable dockable )
{
MultiSplitLayout multiSplitLayout = (MultiSplitLayout)multiSplitPane.getLayout();
if ( !zoomPanel.isVisible()) {
// If the name is non null the dividers are also removed
multiSplitLayout.setRemoveDividers( false );
zoomPanel.add( dockable.dockedContainer, BorderLayout.CENTER );
cardManager.show( this, "ZoomPane" );
dockable.dockedContainer.setVisible( true );
zoomedDockable = dockable;
}
else {
// Reset the panel name
multiSplitLayout.setRemoveDividers( true );
multiSplitPane.add( dockable.dockedContainer, dockable.dockedContainer.getConstraint() );
cardManager.show( this, "MultiSplitPane" );
zoomedDockable = null;
}
revalidate();