Skip to content

Commit a93a195

Browse files
committed
Rename and relocate demo packages to sc.fiji.ome.zarr.examples for better organization.
1 parent 868aa01 commit a93a195

11 files changed

Lines changed: 52 additions & 41 deletions

src/test/java/sc/fiji/ome/zarr/util/BdvHandleServiceDemo.java renamed to src/test/java/sc/fiji/ome/zarr/examples/demo/BdvHandleServiceDemo.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* %%
77
* Redistribution and use in source and binary forms, with or without
88
* modification, are permitted provided that the following conditions are met:
9-
*
9+
*
1010
* 1. Redistributions of source code must retain the above copyright notice,
1111
* this list of conditions and the following disclaimer.
1212
* 2. Redistributions in binary form must reproduce the above copyright notice,
1313
* this list of conditions and the following disclaimer in the documentation
1414
* and/or other materials provided with the distribution.
15-
*
15+
*
1616
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1717
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1818
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -26,7 +26,7 @@
2626
* POSSIBILITY OF SUCH DAMAGE.
2727
* #L%
2828
*/
29-
package sc.fiji.ome.zarr.util;
29+
package sc.fiji.ome.zarr.examples.demo;
3030

3131
import net.imagej.ImageJ;
3232
import net.imglib2.img.Img;
@@ -35,6 +35,9 @@
3535

3636
import java.util.Random;
3737

38+
import sc.fiji.ome.zarr.util.BdvHandleService;
39+
40+
@SuppressWarnings( "all" )
3841
public class BdvHandleServiceDemo
3942
{
4043
public static void main( String[] args )

src/test/java/sc/fiji/ome/zarr/ui/DnDActionChooserDemo.java renamed to src/test/java/sc/fiji/ome/zarr/examples/demo/DnDActionChooserDemo.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* %%
77
* Redistribution and use in source and binary forms, with or without
88
* modification, are permitted provided that the following conditions are met:
9-
*
9+
*
1010
* 1. Redistributions of source code must retain the above copyright notice,
1111
* this list of conditions and the following disclaimer.
1212
* 2. Redistributions in binary form must reproduce the above copyright notice,
1313
* this list of conditions and the following disclaimer in the documentation
1414
* and/or other materials provided with the distribution.
15-
*
15+
*
1616
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1717
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1818
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -26,12 +26,15 @@
2626
* POSSIBILITY OF SUCH DAMAGE.
2727
* #L%
2828
*/
29-
package sc.fiji.ome.zarr.ui;
29+
package sc.fiji.ome.zarr.examples.demo;
3030

3131
import javax.swing.*;
3232
import java.awt.event.ActionEvent;
3333
import java.awt.event.KeyEvent;
3434

35+
import sc.fiji.ome.zarr.ui.DnDActionChooser;
36+
37+
@SuppressWarnings( "all" )
3538
public class DnDActionChooserDemo
3639
{
3740

src/test/java/sc/fiji/ome/zarr/pyramid/demo/MultiscaleImageDemo.java renamed to src/test/java/sc/fiji/ome/zarr/examples/demo/MultiscaleImageDemo.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* %%
77
* Redistribution and use in source and binary forms, with or without
88
* modification, are permitted provided that the following conditions are met:
9-
*
9+
*
1010
* 1. Redistributions of source code must retain the above copyright notice,
1111
* this list of conditions and the following disclaimer.
1212
* 2. Redistributions in binary form must reproduce the above copyright notice,
1313
* this list of conditions and the following disclaimer in the documentation
1414
* and/or other materials provided with the distribution.
15-
*
15+
*
1616
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1717
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1818
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -26,14 +26,14 @@
2626
* POSSIBILITY OF SUCH DAMAGE.
2727
* #L%
2828
*/
29-
package sc.fiji.ome.zarr.pyramid.demo;
29+
package sc.fiji.ome.zarr.examples.demo;
3030

3131
import java.nio.file.Paths;
3232

3333
import net.imagej.ImageJ;
3434

3535
import sc.fiji.ome.zarr.plugins.OpenInBDVCommand;
36-
import sc.fiji.ome.zarr.pyramid.legacy.MultiscaleImage;
36+
import sc.fiji.ome.zarr.examples.legacy.MultiscaleImage;
3737
import sc.fiji.ome.zarr.pyramid.Pyramidal5DImageDataImpl;
3838
import sc.fiji.ome.zarr.pyramid.PyramidalDataset;
3939

src/test/java/sc/fiji/ome/zarr/pyramid/demo/N5ReaderDemo.java renamed to src/test/java/sc/fiji/ome/zarr/examples/demo/N5ReaderDemo.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* %%
77
* Redistribution and use in source and binary forms, with or without
88
* modification, are permitted provided that the following conditions are met:
9-
*
9+
*
1010
* 1. Redistributions of source code must retain the above copyright notice,
1111
* this list of conditions and the following disclaimer.
1212
* 2. Redistributions in binary form must reproduce the above copyright notice,
1313
* this list of conditions and the following disclaimer in the documentation
1414
* and/or other materials provided with the distribution.
15-
*
15+
*
1616
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1717
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1818
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -26,7 +26,7 @@
2626
* POSSIBILITY OF SUCH DAMAGE.
2727
* #L%
2828
*/
29-
package sc.fiji.ome.zarr.pyramid.demo;
29+
package sc.fiji.ome.zarr.examples.demo;
3030

3131
import org.janelia.saalfeldlab.n5.N5Reader;
3232
import org.janelia.saalfeldlab.n5.universe.N5DatasetDiscoverer;

src/test/java/sc/fiji/ome/zarr/pyramid/demo/OmeroMetadataDemo.java renamed to src/test/java/sc/fiji/ome/zarr/examples/demo/OmeroMetadataDemo.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* %%
77
* Redistribution and use in source and binary forms, with or without
88
* modification, are permitted provided that the following conditions are met:
9-
*
9+
*
1010
* 1. Redistributions of source code must retain the above copyright notice,
1111
* this list of conditions and the following disclaimer.
1212
* 2. Redistributions in binary form must reproduce the above copyright notice,
1313
* this list of conditions and the following disclaimer in the documentation
1414
* and/or other materials provided with the distribution.
15-
*
15+
*
1616
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1717
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1818
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -26,7 +26,7 @@
2626
* POSSIBILITY OF SUCH DAMAGE.
2727
* #L%
2828
*/
29-
package sc.fiji.ome.zarr.pyramid.demo;
29+
package sc.fiji.ome.zarr.examples.demo;
3030

3131
import java.net.URI;
3232

@@ -40,7 +40,7 @@
4040
* {@link Pyramidal5DImageData} factory methods and printing the OMERO metadata.
4141
* Dataset: IDR idr0033A BR00109990_C2
4242
* URI: <a href="https://livingobjects.ebi.ac.uk/idr/zarr/v0.5/idr0033A/BR00109990_C2.zarr/0">https://livingobjects.ebi.ac.uk/idr/zarr/v0.5/idr0033A/BR00109990_C2.zarr/0</a>
43-
* Run with: mvn exec:java -Dexec.mainClass=sc.fiji.ome.zarr.pyramid.demo.OmeroMetadataDemo
43+
* Run with: mvn exec:java -Dexec.mainClass=sc.fiji.ome.zarr.examples.demo.OmeroMetadataDemo
4444
*/
4545
public class OmeroMetadataDemo
4646
{

src/test/java/sc/fiji/ome/zarr/pyramid/demo/Pyramidal5DImageDataDemo.java renamed to src/test/java/sc/fiji/ome/zarr/examples/demo/Pyramidal5DImageDataDemo.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* %%
77
* Redistribution and use in source and binary forms, with or without
88
* modification, are permitted provided that the following conditions are met:
9-
*
9+
*
1010
* 1. Redistributions of source code must retain the above copyright notice,
1111
* this list of conditions and the following disclaimer.
1212
* 2. Redistributions in binary form must reproduce the above copyright notice,
1313
* this list of conditions and the following disclaimer in the documentation
1414
* and/or other materials provided with the distribution.
15-
*
15+
*
1616
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1717
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1818
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -26,7 +26,7 @@
2626
* POSSIBILITY OF SUCH DAMAGE.
2727
* #L%
2828
*/
29-
package sc.fiji.ome.zarr.pyramid.demo;
29+
package sc.fiji.ome.zarr.examples.demo;
3030

3131
import java.nio.file.Paths;
3232

src/test/java/sc/fiji/ome/zarr/util/ScriptUtilsDemo.java renamed to src/test/java/sc/fiji/ome/zarr/examples/demo/ScriptUtilsDemo.java

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* %%
77
* Redistribution and use in source and binary forms, with or without
88
* modification, are permitted provided that the following conditions are met:
9-
*
9+
*
1010
* 1. Redistributions of source code must retain the above copyright notice,
1111
* this list of conditions and the following disclaimer.
1212
* 2. Redistributions in binary form must reproduce the above copyright notice,
1313
* this list of conditions and the following disclaimer in the documentation
1414
* and/or other materials provided with the distribution.
15-
*
15+
*
1616
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1717
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1818
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -26,23 +26,27 @@
2626
* POSSIBILITY OF SUCH DAMAGE.
2727
* #L%
2828
*/
29-
package sc.fiji.ome.zarr.util;
29+
package sc.fiji.ome.zarr.examples.demo;
3030

3131
import net.imagej.ImageJ;
3232

3333
import ij.IJ;
34+
import sc.fiji.ome.zarr.util.ScriptUtils;
3435

3536
import java.net.URI;
3637
import java.nio.file.Paths;
3738

38-
public class ScriptUtilsDemo {
39-
public static void main(String[] args) {
39+
public class ScriptUtilsDemo
40+
{
41+
public static void main( String[] args )
42+
{
4043
ImageJ ij = new ImageJ();
4144
ij.ui().showUI();
4245

43-
final URI inputUri = Paths.get( "/home/ulman/Documents/talks/CEITEC/2025_11_ZarrSymposium_Zurich/data/MitoEM_fixedRes.zarr/MitoEM_fixedRes" ).toUri();
44-
System.out.println("\nLet's run the script... on URI param: "+inputUri);
46+
final URI inputUri = Paths
47+
.get( "/home/ulman/Documents/talks/CEITEC/2025_11_ZarrSymposium_Zurich/data/MitoEM_fixedRes.zarr/MitoEM_fixedRes" ).toUri();
48+
System.out.println( "\nLet's run the script... on URI param: " + inputUri );
4549
ScriptUtils.executePresetScript( ij.context(), inputUri, IJ::error );
46-
System.out.println("Done.");
50+
System.out.println( "Done." );
4751
}
4852
}

src/test/java/sc/fiji/ome/zarr/ui/StartN5ImporterDialog.java renamed to src/test/java/sc/fiji/ome/zarr/examples/demo/StartN5ImporterDialog.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* %%
77
* Redistribution and use in source and binary forms, with or without
88
* modification, are permitted provided that the following conditions are met:
9-
*
9+
*
1010
* 1. Redistributions of source code must retain the above copyright notice,
1111
* this list of conditions and the following disclaimer.
1212
* 2. Redistributions in binary form must reproduce the above copyright notice,
1313
* this list of conditions and the following disclaimer in the documentation
1414
* and/or other materials provided with the distribution.
15-
*
15+
*
1616
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1717
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1818
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -26,14 +26,15 @@
2626
* POSSIBILITY OF SUCH DAMAGE.
2727
* #L%
2828
*/
29-
package sc.fiji.ome.zarr.ui;
29+
package sc.fiji.ome.zarr.examples.demo;
3030

3131
import org.janelia.saalfeldlab.n5.ij.N5Importer;
3232

3333
import java.nio.file.Path;
3434
import java.nio.file.Paths;
3535
import java.util.Collections;
3636

37+
@SuppressWarnings( "all" )
3738
public class StartN5ImporterDialog
3839
{
3940
public static void main( String[] args )

src/test/java/sc/fiji/ome/zarr/pyramid/legacy/MultiscaleImage.java renamed to src/test/java/sc/fiji/ome/zarr/examples/legacy/MultiscaleImage.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* %%
77
* Redistribution and use in source and binary forms, with or without
88
* modification, are permitted provided that the following conditions are met:
9-
*
9+
*
1010
* 1. Redistributions of source code must retain the above copyright notice,
1111
* this list of conditions and the following disclaimer.
1212
* 2. Redistributions in binary form must reproduce the above copyright notice,
1313
* this list of conditions and the following disclaimer in the documentation
1414
* and/or other materials provided with the distribution.
15-
*
15+
*
1616
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1717
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1818
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -26,11 +26,11 @@
2626
* POSSIBILITY OF SUCH DAMAGE.
2727
* #L%
2828
*/
29-
package sc.fiji.ome.zarr.pyramid.legacy;
29+
package sc.fiji.ome.zarr.examples.legacy;
3030

3131
import sc.fiji.ome.zarr.pyramid.exceptions.NotAMultiscaleImageException;
3232

33-
import static sc.fiji.ome.zarr.pyramid.legacy.Multiscales.MULTI_SCALE_KEY;
33+
import static sc.fiji.ome.zarr.examples.legacy.Multiscales.MULTI_SCALE_KEY;
3434

3535
import net.imglib2.RandomAccessibleInterval;
3636
import net.imglib2.Volatile;

src/test/java/sc/fiji/ome/zarr/pyramid/legacy/Multiscales.java renamed to src/test/java/sc/fiji/ome/zarr/examples/legacy/Multiscales.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* %%
77
* Redistribution and use in source and binary forms, with or without
88
* modification, are permitted provided that the following conditions are met:
9-
*
9+
*
1010
* 1. Redistributions of source code must retain the above copyright notice,
1111
* this list of conditions and the following disclaimer.
1212
* 2. Redistributions in binary form must reproduce the above copyright notice,
1313
* this list of conditions and the following disclaimer in the documentation
1414
* and/or other materials provided with the distribution.
15-
*
15+
*
1616
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1717
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1818
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -26,7 +26,7 @@
2626
* POSSIBILITY OF SUCH DAMAGE.
2727
* #L%
2828
*/
29-
package sc.fiji.ome.zarr.pyramid.legacy;
29+
package sc.fiji.ome.zarr.examples.legacy;
3030

3131
import java.util.Collections;
3232
import java.util.List;

0 commit comments

Comments
 (0)