From 4bfdf9a8dee05f230bd3f291405acec84d298060 Mon Sep 17 00:00:00 2001 From: Stefan Hahmann Date: Thu, 10 Oct 2024 12:45:59 +0200 Subject: [PATCH] Move Export to CSV to File > Export sub menu --- .../org/mastodon/mamut/views/table/MamutViewTable.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/mastodon/mamut/views/table/MamutViewTable.java b/src/main/java/org/mastodon/mamut/views/table/MamutViewTable.java index 8c57956cf..f1e2e53f2 100644 --- a/src/main/java/org/mastodon/mamut/views/table/MamutViewTable.java +++ b/src/main/java/org/mastodon/mamut/views/table/MamutViewTable.java @@ -30,6 +30,7 @@ import static org.mastodon.app.MastodonIcons.TABLE_VIEW_ICON; import static org.mastodon.app.ui.ViewMenuBuilder.item; +import static org.mastodon.app.ui.ViewMenuBuilder.menu; import static org.mastodon.app.ui.ViewMenuBuilder.separator; import static org.mastodon.mamut.MamutMenuBuilder.editMenu; import static org.mastodon.mamut.MamutMenuBuilder.fileMenu; @@ -208,11 +209,11 @@ protected MamutViewTable( final ProjectModel projectModel, final boolean selecti appModel.getWindowManager().addWindowMenu( menu, actionMap ); MamutMenuBuilder.build( menu, actionMap, fileMenu( - separator(), - item( TableViewActions.EXPORT_TO_CSV ) ), + menu( "Export", + item( TableViewActions.EXPORT_TO_CSV ) ) ), viewMenu( MamutMenuBuilder.colorMenu( colorMenuHandle ), - ViewMenuBuilder.menu( "Branch coloring", colorBranchMenuHandle ), + menu( "Branch coloring", colorBranchMenuHandle ), separator(), item( MastodonFrameViewActions.TOGGLE_SETTINGS_PANEL ) ), editMenu( @@ -228,7 +229,7 @@ protected MamutViewTable( final ProjectModel projectModel, final boolean selecti separator(), item( TableViewActions.EDIT_LABEL ), item( TableViewActions.TOGGLE_TAG ) ), - ViewMenuBuilder.menu( "Settings", + menu( "Settings", item( BigDataViewerActions.BRIGHTNESS_SETTINGS ), item( BigDataViewerActions.VISIBILITY_AND_GROUPING ) ) ); projectModel.getPlugins().addMenus( menu );