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 Oct 10, 2024
1 parent 425d119 commit eddfc3e
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 @@ -226,6 +226,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 @@ -284,6 +284,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 @@ -70,6 +70,7 @@ public class MamutViewGrapher extends MamutView< DataGraph< Spot, Link >, DataVe
.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 @@ -188,6 +188,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 @@ -216,6 +216,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 @@ -207,6 +207,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 eddfc3e

Please sign in to comment.