Skip to content

Commit

Permalink
Issue #1167 seems fine: it opens very fast.
Browse files Browse the repository at this point in the history
  • Loading branch information
tischi committed Jul 5, 2024
1 parent 629dc93 commit 049fcad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
19 changes: 4 additions & 15 deletions src/main/java/org/embl/mobie/lib/view/save/ViewSaver.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,12 @@
public class ViewSaver
{
public static final String CREATE_NEW_VIEWS_JSON_FILE = "Make New Views JSON file";
public static final String CREATE_SELECTION_GROUP = "Create new group";
public static final String CREATE_SELECTION_GROUP = "Create New Group";

static { net.imagej.patcher.LegacyInjector.preinit(); }

private MoBIE moBIE;


// enum ProjectSaveLocation {
// datasetJson,
// viewsJson
// }

// enum SaveMethod {
// saveAsNewView,
// overwriteExistingView
// }

public ViewSaver( MoBIE moBIE) {
this.moBIE = moBIE;
}
Expand All @@ -90,11 +79,11 @@ public boolean saveViewDialog( View view )
if ( moBIE.getViews().containsKey( view.getName() ) )
{
GenericDialog gd = new GenericDialog( "Overwrite view?" );
gd.addMessage( "A view named \"" + view.getName() + "\" exists already.\nAre you sure you want to overwrite it?" );
gd.addMessage( "A view named \"" + view.getName() + "\" exists already." +
"\nAre you sure you want to overwrite it?" );
gd.showDialog();
if ( ! gd.wasOKed() ) {
if ( ! gd.wasOKed() )
return false;
}
}

view.setDescription( "" ); // TODO
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/debug/DebugIssue1167.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public static void main( String[] args )
{
new ImageJ().ui().showUI();
final OpenImageAndLabelsCommand command = new OpenImageAndLabelsCommand();
command.image = new File( "/Users/tischer/Desktop/tim-oliver.ome.zarr" );
command.image = new File( "/Users/tischer/Downloads/20240524_1_s2.zarr" );
command.run();
}
}

0 comments on commit 049fcad

Please sign in to comment.