Commit d187887a authored by Tobias Pietzsch's avatar Tobias Pietzsch

Make IJ2 plugin, rename

parent 09ca8f45
...@@ -20,5 +20,5 @@ maven to build and install it: ...@@ -20,5 +20,5 @@ maven to build and install it:
mvn install mvn install
The entry-point for the plugin is the [OvariesPlugIn](src/main/java/de/mpicbg/ovaries/OvariesPlugIn.java) class. The entry-point for the plugin is the [OvariesProjectionPlugin](src/main/java/de/mpicbg/ovaries/OvariesProjectionPlugin.java) class.
...@@ -41,6 +41,8 @@ import javax.swing.JMenuBar; ...@@ -41,6 +41,8 @@ import javax.swing.JMenuBar;
import javax.swing.JMenuItem; import javax.swing.JMenuItem;
import javax.swing.filechooser.FileFilter; import javax.swing.filechooser.FileFilter;
import org.scijava.command.Command;
import org.scijava.plugin.Plugin;
import org.scijava.ui.behaviour.io.InputTriggerConfig; import org.scijava.ui.behaviour.io.InputTriggerConfig;
import org.scijava.ui.behaviour.util.Actions; import org.scijava.ui.behaviour.util.Actions;
...@@ -53,15 +55,16 @@ import bdv.viewer.ViewerOptions; ...@@ -53,15 +55,16 @@ import bdv.viewer.ViewerOptions;
import bdv.viewer.ViewerPanel; import bdv.viewer.ViewerPanel;
import ij.ImageJ; import ij.ImageJ;
import ij.Prefs; import ij.Prefs;
import ij.plugin.PlugIn;
import mpicbg.spim.data.SpimDataException; import mpicbg.spim.data.SpimDataException;
public class OvariesPlugIn implements PlugIn @Plugin(type = Command.class,
menuPath = "Plugins>BigDataViewer>Ellipsoid Surface Projection")
public class OvariesProjectionPlugin implements Command
{ {
static String lastDatasetPath = "/Users/pietzsch/Dropbox/data/ivana/S7/export.xml"; static String lastDatasetPath = "";
@Override @Override
public void run( final String arg ) public void run()
{ {
File file = null; File file = null;
...@@ -196,6 +199,6 @@ public class OvariesPlugIn implements PlugIn ...@@ -196,6 +199,6 @@ public class OvariesPlugIn implements PlugIn
public static void main( final String[] args ) public static void main( final String[] args )
{ {
ImageJ.main( args ); ImageJ.main( args );
new OvariesPlugIn().run( null ); new OvariesProjectionPlugin().run();
} }
} }
# Name: Ellipsoid Surface Projection
# Author: Tobias Pietzsch
# Version: 1.0.0
# A single .jar file can contain multiple plugins, specified in separate lines.
#
# The format is: <menu>, "<menu label>", <class name>
#
# If something like ("<arg>") is appended to the class name, the setup() method
# will get that as arg parameter; otherwise arg is simply the empty string.
Plugins>BigDataViewer, "Ovary Surface Projection", de.mpicbg.ovaries.OvariesPlugIn
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment