Skip to content

Commit

Permalink
Declare the new view commands in the command finder.
Browse files Browse the repository at this point in the history
  • Loading branch information
tinevez committed Jun 12, 2024
1 parent 6d83187 commit 3697cd2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/mastodon/mamut/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() )
Expand Down

0 comments on commit 3697cd2

Please sign in to comment.