Skip to content

Commit

Permalink
fix bug that did not save all SpimData2 specific attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanPreibisch committed Sep 5, 2024
1 parent db164bf commit 940506f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,12 @@ public SpimData2 fromXml( final Element root, final URI xmlFile ) throws SpimDat

@Override
public Element toXml( final SpimData2 spimData, final File xmlFileDirectory ) throws SpimDataException
{
return toXml(spimData, xmlFileDirectory.toURI() );
}

@Override
public Element toXml( final SpimData2 spimData, final URI xmlFileDirectory ) throws SpimDataException
{
final Element root = super.toXml( spimData, xmlFileDirectory );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
import net.preibisch.mvrecon.fiji.spimdata.explorer.popup.BDVPopup;
import net.preibisch.mvrecon.fiji.spimdata.explorer.popup.ExplorerWindowSetable;
import net.preibisch.mvrecon.process.interestpointregistration.TransformationTools;
import util.URITools;

public abstract class FilteredAndGroupedExplorerPanel< AS extends SpimData2 >
extends JPanel implements ExplorerWindow< AS >, GroupedRowWindow
Expand Down Expand Up @@ -502,7 +503,7 @@ public JPopupMenu addRightClickSaveAs()
{
final SpimData2 data = this.getSpimData();

final URI newXMLPath = XMLSaveAs.saveAs( data, this.xml().toString() );
final URI newXMLPath = XMLSaveAs.saveAs( data, URITools.getFileName( this.xml() ) );

if ( newXMLPath != null )
{
Expand Down

0 comments on commit 940506f

Please sign in to comment.