Skip to content

Commit

Permalink
#455 Change the tab drag policy to allow reordering.
Browse files Browse the repository at this point in the history
  • Loading branch information
prmr committed Jan 20, 2022
1 parent ef599d8 commit fe7c2ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ca/mcgill/cs/jetuml/gui/EditorFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public EditorFrame(Stage pMainStage, Optional<File> pOpenWith)
setTop(menuBar);

TabPane tabPane = new TabPane();
tabPane.setTabDragPolicy(TabPane.TabDragPolicy.REORDER);
tabPane.getSelectionModel().selectedItemProperty().addListener((pValue, pOld, pNew) -> setMenuVisibility());
setCenter( tabPane );

Expand Down

0 comments on commit fe7c2ed

Please sign in to comment.