diff --git a/pom.xml b/pom.xml index 88e94b310..13a1e434c 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ org.embl.mobie mobie-viewer-fiji - 5.1.1 + 5.1.2 diff --git a/src/main/java/org/embl/mobie/lib/bdv/view/SliceViewer.java b/src/main/java/org/embl/mobie/lib/bdv/view/SliceViewer.java index e25cc2425..6c6afd8e1 100644 --- a/src/main/java/org/embl/mobie/lib/bdv/view/SliceViewer.java +++ b/src/main/java/org/embl/mobie/lib/bdv/view/SliceViewer.java @@ -171,13 +171,17 @@ private void installContextMenuAndKeyboardShortCuts( ) behaviours.behaviour( contextMenu, "Context menu", "button3", "shift P"); behaviours.install( bdvHandle.getTriggerbindings(), "MoBIE" ); - bdvHandle.getKeybindings().removeInputMap( "T" ); + // get all present action keys + // just to see what's there + // one of them is "toggle manual transformation" + Object[] allKeys = bdvHandle.getKeybindings().getConcatenatedActionMap().allKeys(); + // disable the manual transform action + bdvHandle.getKeybindings().getConcatenatedActionMap().get("toggle manual transformation").setEnabled( false ); behaviours.behaviour( ( ClickBehaviour ) ( x, y ) -> new Thread( () -> { Services.commandService.run( ManualTransformationCommand.class, true ); - System.out.println( "My own manual transform" ); }).start(), "Manual transform", "T" ) ; diff --git a/src/main/java/org/embl/mobie/lib/view/save/ViewSaver.java b/src/main/java/org/embl/mobie/lib/view/save/ViewSaver.java index 27da10549..5a63e0d56 100644 --- a/src/main/java/org/embl/mobie/lib/view/save/ViewSaver.java +++ b/src/main/java/org/embl/mobie/lib/view/save/ViewSaver.java @@ -85,7 +85,7 @@ public ViewSaver( MoBIE moBIE) { public boolean saveViewDialog( View view ) { - final GenericDialog gd = new GenericDialog("Save view " + ( view.getName() == null ? "" : view.getName()) ); + final GenericDialog gd = new GenericDialog("Save view" + ( view.getName() == null ? "" : ": " + view.getName()) ); gd.addChoice("Save to", new String[]{ FileLocation.CurrentProject.toString(), FileLocation.ExternalJSONFile.toString() }, saveToProjectOrFile ); gd.addFileField( "( External JSON file )", externalJsonPath, 70 );