Skip to content

Commit

Permalink
Revert project location File back to String, #1164
Browse files Browse the repository at this point in the history
  • Loading branch information
tischi committed Jun 26, 2024
1 parent bfab1c1 commit 7a0df62
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<groupId>org.embl.mobie</groupId>
<artifactId>mobie-viewer-fiji</artifactId>
<version>5.1.0</version>
<version>5.1.1</version>

<!-- force javadoc generation to fetch errors: -->
<!-- mvn javadoc:javadoc | grep error -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
*/
package org.embl.mobie.command.open.project;

import mpicbg.spim.data.SpimDataException;
import org.embl.mobie.MoBIE;
import org.embl.mobie.MoBIESettings;
import org.embl.mobie.command.CommandConstants;
Expand All @@ -38,7 +37,6 @@
import org.scijava.plugin.Parameter;
import org.scijava.plugin.Plugin;

import java.io.File;
import java.io.IOException;


Expand All @@ -47,8 +45,8 @@ public class OpenMoBIEProjectCommand implements Command
{
static { net.imagej.patcher.LegacyInjector.preinit(); }

@Parameter ( label = "Project Location" )
public File projectLocation = new File( "https://github.com/mobie/platybrowser-datasets" );
@Parameter ( label = "Project URI" )
public String uri = "https://github.com/mobie/platybrowser-datasets";

@Parameter ( label = "Preferentially Fetch Data From", choices = {"Remote", "Local"} )
public String location = "Remote";
Expand All @@ -62,7 +60,7 @@ public void run()

try
{
new MoBIE( MoBIEHelper.toURI( projectLocation ), settings );
new MoBIE( uri, settings );
}
catch ( IOException e )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@
import java.awt.event.ItemListener;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

import static org.embl.mobie.lib.create.ProjectCreatorHelper.*;

Expand Down Expand Up @@ -343,7 +341,7 @@ private void addButtonsPanel() {
{
new Thread( () -> {
OpenMoBIEProjectCommand openMoBIE = new OpenMoBIEProjectCommand();
openMoBIE.projectLocation = new File( this.projectCreator.getProjectLocation().getAbsolutePath() );
openMoBIE.uri = this.projectCreator.getProjectLocation().getAbsolutePath();
openMoBIE.run();
} ).start();
} );
Expand Down

0 comments on commit 7a0df62

Please sign in to comment.