From 3697cd2028eeba28c1d62d452c617e9cd203903a Mon Sep 17 00:00:00 2001 From: Jean-Yves Tinevez Date: Wed, 12 Jun 2024 15:24:31 +0200 Subject: [PATCH] Declare the new view commands in the command finder. --- src/main/java/org/mastodon/mamut/MainWindow.java | 1 + src/main/java/org/mastodon/mamut/views/bdv/MamutViewBdv.java | 1 + .../java/org/mastodon/mamut/views/grapher/MamutViewGrapher.java | 1 + src/main/java/org/mastodon/mamut/views/table/MamutViewTable.java | 1 + .../mamut/views/trackscheme/MamutBranchViewTrackScheme.java | 1 + .../mastodon/mamut/views/trackscheme/MamutViewTrackScheme.java | 1 + 6 files changed, 6 insertions(+) diff --git a/src/main/java/org/mastodon/mamut/MainWindow.java b/src/main/java/org/mastodon/mamut/MainWindow.java index 92cea5d98..41373b079 100644 --- a/src/main/java/org/mastodon/mamut/MainWindow.java +++ b/src/main/java/org/mastodon/mamut/MainWindow.java @@ -225,6 +225,7 @@ public void windowClosing( final WindowEvent e ) CommandFinder.build() .context( appModel.getContext() ) .inputTriggerConfig( appModel.getKeymap().getConfig() ) + .descriptionProvider( appModel.getWindowManager().getViewFactories().getCommandDescriptions() ) .keyConfigContext( KeyConfigContexts.MASTODON ) .register( appModel.getModelActions() ) .register( appModel.getProjectActions() ) diff --git a/src/main/java/org/mastodon/mamut/views/bdv/MamutViewBdv.java b/src/main/java/org/mastodon/mamut/views/bdv/MamutViewBdv.java index 0a18a19f5..de2611c1c 100644 --- a/src/main/java/org/mastodon/mamut/views/bdv/MamutViewBdv.java +++ b/src/main/java/org/mastodon/mamut/views/bdv/MamutViewBdv.java @@ -281,6 +281,7 @@ public MamutViewBdv( final ProjectModel appModel ) .context( appModel.getContext() ) .inputTriggerConfig( appModel.getKeymap().getConfig() ) .keyConfigContexts( keyConfigContexts ) + .descriptionProvider( appModel.getWindowManager().getViewFactories().getCommandDescriptions() ) .register( viewActions ) .register( appModel.getModelActions() ) .register( appModel.getProjectActions() ) diff --git a/src/main/java/org/mastodon/mamut/views/grapher/MamutViewGrapher.java b/src/main/java/org/mastodon/mamut/views/grapher/MamutViewGrapher.java index ad365408d..db2d4e0f5 100644 --- a/src/main/java/org/mastodon/mamut/views/grapher/MamutViewGrapher.java +++ b/src/main/java/org/mastodon/mamut/views/grapher/MamutViewGrapher.java @@ -196,6 +196,7 @@ public MamutViewGrapher( final ProjectModel appModel ) .context( appModel.getContext() ) .inputTriggerConfig( appModel.getKeymap().getConfig() ) .keyConfigContexts( keyConfigContexts ) + .descriptionProvider( appModel.getWindowManager().getViewFactories().getCommandDescriptions() ) .register( viewActions ) .register( appModel.getModelActions() ) .register( appModel.getProjectActions() ) 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 d056a024a..df931539b 100644 --- a/src/main/java/org/mastodon/mamut/views/table/MamutViewTable.java +++ b/src/main/java/org/mastodon/mamut/views/table/MamutViewTable.java @@ -180,6 +180,7 @@ protected MamutViewTable( final ProjectModel projectModel, final boolean selecti .context( appModel.getContext() ) .inputTriggerConfig( appModel.getKeymap().getConfig() ) .keyConfigContexts( keyConfigContexts ) + .descriptionProvider( appModel.getWindowManager().getViewFactories().getCommandDescriptions() ) .register( viewActions ) .register( appModel.getModelActions() ) .register( appModel.getProjectActions() ) diff --git a/src/main/java/org/mastodon/mamut/views/trackscheme/MamutBranchViewTrackScheme.java b/src/main/java/org/mastodon/mamut/views/trackscheme/MamutBranchViewTrackScheme.java index 3db7f8902..8cb2a4dfd 100644 --- a/src/main/java/org/mastodon/mamut/views/trackscheme/MamutBranchViewTrackScheme.java +++ b/src/main/java/org/mastodon/mamut/views/trackscheme/MamutBranchViewTrackScheme.java @@ -213,6 +213,7 @@ protected MamutBranchViewTrackScheme( final CommandFinder cf = CommandFinder.build() .context( appModel.getContext() ) .inputTriggerConfig( appModel.getKeymap().getConfig() ) + .descriptionProvider( appModel.getWindowManager().getViewFactories().getCommandDescriptions() ) .keyConfigContexts( keyConfigContexts ) .register( viewActions ) .register( appModel.getModelActions() ) diff --git a/src/main/java/org/mastodon/mamut/views/trackscheme/MamutViewTrackScheme.java b/src/main/java/org/mastodon/mamut/views/trackscheme/MamutViewTrackScheme.java index 95bcebdc1..a025d7503 100644 --- a/src/main/java/org/mastodon/mamut/views/trackscheme/MamutViewTrackScheme.java +++ b/src/main/java/org/mastodon/mamut/views/trackscheme/MamutViewTrackScheme.java @@ -203,6 +203,7 @@ public MamutViewTrackScheme( final ProjectModel appModel ) .context( appModel.getContext() ) .inputTriggerConfig( appModel.getKeymap().getConfig() ) .keyConfigContexts( keyConfigContexts ) + .descriptionProvider( appModel.getWindowManager().getViewFactories().getCommandDescriptions() ) .register( viewActions ) .register( appModel.getModelActions() ) .register( appModel.getProjectActions() )