Skip to content

Commit

Permalink
Create Package for Library Extensions and Retrieval
Browse files Browse the repository at this point in the history
Instead of everything being in the top directory, more fine grained categorization is used for clarity.
  • Loading branch information
AvocadoMoon committed Oct 1, 2024
1 parent 869a4ef commit b9ca9fc
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@
import org.scijava.plugin.Parameter;
import org.scijava.plugin.Plugin;
import org.vcell.N5.UI.N5ExportTable;
import org.vcell.N5.retrieving.LoadingFactory;
import org.vcell.N5.retrieving.SimResultsLoader;

import java.io.*;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.Stack;


/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
import ij.plugin.Duplicator;
import org.scijava.log.Logger;
import org.vcell.N5.N5ImageHandler;
import org.vcell.N5.SimResultsLoader;
import org.vcell.N5.retrieving.SimLoadingEventCreator;
import org.vcell.N5.retrieving.SimLoadingListener;
import org.vcell.N5.retrieving.SimResultsLoader;

import javax.swing.*;
import javax.swing.event.EventListenerList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import org.scijava.log.Logger;
import org.vcell.N5.ExportDataRepresentation;
import org.vcell.N5.N5ImageHandler;
import org.vcell.N5.SimResultsLoader;
import org.vcell.N5.retrieving.SimLoadingListener;
import org.vcell.N5.retrieving.SimResultsLoader;

import javax.swing.*;
import javax.swing.border.Border;
Expand All @@ -12,7 +13,6 @@
import javax.swing.event.ListSelectionListener;
import javax.swing.table.AbstractTableModel;
import javax.swing.table.DefaultTableCellRenderer;
import javax.swing.table.TableCellRenderer;
import javax.swing.table.TableColumn;
import java.awt.*;
import java.awt.datatransfer.Clipboard;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.vcell.N5.UI;

import org.vcell.N5.N5ImageHandler;
import org.vcell.N5.SimResultsLoader;
import org.vcell.N5.retrieving.SimResultsLoader;

import javax.swing.*;
import java.awt.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
package org.vcell.N5;
package org.vcell.N5.library.extensions;

import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.model.ListObjectsV2Request;
import org.janelia.saalfeldlab.n5.N5Exception;
import org.janelia.saalfeldlab.n5.s3.AmazonS3KeyValueAccess;
import org.janelia.saalfeldlab.n5.s3.AmazonS3Utils;

import java.net.URI;

public class S3KeyValueAccess extends AmazonS3KeyValueAccess {
private final String bucketName;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.vcell.N5;
package org.vcell.N5.library.extensions;

import ij.ImagePlus;
import ij.gui.ImageWindow;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
package org.vcell.N5;
package org.vcell.N5.retrieving;

import ij.ImagePlus;
import ij.plugin.Duplicator;
import org.vcell.N5.UI.ImageIntoMemory;
import org.vcell.N5.UI.N5ExportTable;
import org.vcell.N5.UI.SimLoadingEventCreator;
import org.vcell.N5.UI.SimLoadingListener;

import javax.swing.*;
import javax.swing.event.EventListenerList;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;

public class LoadingFactory implements SimLoadingEventCreator {
private static final EventListenerList eventListenerList = new EventListenerList();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
package org.vcell.N5.UI;

import org.vcell.N5.SimResultsLoader;

import javax.swing.event.EventListenerList;
package org.vcell.N5.retrieving;

public interface SimLoadingEventCreator {
public void addSimLoadingListener(SimLoadingListener simLoadingListener);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.vcell.N5.UI;
package org.vcell.N5.retrieving;

import java.util.EventListener;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.vcell.N5;
package org.vcell.N5.retrieving;

import com.amazonaws.ClientConfiguration;
import com.amazonaws.auth.AWSStaticCredentialsProvider;
Expand All @@ -23,6 +23,9 @@
import org.janelia.saalfeldlab.n5.imglib2.N5Utils;
import org.janelia.saalfeldlab.n5.s3.N5AmazonS3Reader;
import org.scijava.log.Logger;
import org.vcell.N5.N5ImageHandler;
import org.vcell.N5.library.extensions.S3KeyValueAccess;
import org.vcell.N5.library.extensions.SimCacheLoader;

import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLContext;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.vcell.N5;
package org.vcell.N5.retrieving;

import com.amazonaws.services.s3.AmazonS3ClientBuilder;
import com.google.gson.internal.LinkedTreeMap;
Expand All @@ -11,6 +11,8 @@
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.vcell.N5.N5DataSetFile;
import org.vcell.N5.N5ImageHandler;

import java.io.File;
import java.io.IOException;
Expand Down

0 comments on commit b9ca9fc

Please sign in to comment.