Skip to content

Commit

Permalink
Double-click to toggle maximize docking view
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonborkholder committed Oct 5, 2016
1 parent a75cb34 commit 37eb7c5
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,20 @@ public void mousePressed( MouseEvent ev )
this.draggedView = tile.view( viewNum );
this.draggedViewNum = viewNum;
this.dragging = false;

// double-click to toggle maximize view
if ( ev.getClickCount( ) == 2 )
{
MultiSplitPane docker = getAncestorOfClass( MultiSplitPane.class, tile );
if ( docker.getMaximizedLeaf( ) == tile )
{
docker.unmaximizeLeaf( );
}
else
{
docker.maximizeLeaf( tile );
}
}
}
}
}
Expand Down

0 comments on commit 37eb7c5

Please sign in to comment.