Skip to content

Commit 4d2ed91

Browse files
committed
fix dependency version for scijava-ui-swing and remove useless dependency
1 parent be3ac3b commit 4d2ed91

File tree

4 files changed

+33
-9
lines changed

4 files changed

+33
-9
lines changed

pom.xml

+1-6
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
<reflections.version>0.9.11</reflections.version>
126126

127127
<!-- package version below are determined by the parent pom but need to be upgraded or temporarily fixed for bugs -->
128-
<!-- nothing yet! -->
128+
<scijava-ui-swing.version>0.16.1</scijava-ui-swing.version>
129129

130130
</properties>
131131

@@ -146,11 +146,6 @@
146146
<artifactId>scijava-ui-swing</artifactId>
147147
</dependency>
148148

149-
<dependency>
150-
<groupId>net.imagej</groupId>
151-
<artifactId>imagej</artifactId>
152-
</dependency>
153-
154149
<dependency>
155150
<groupId>sc.fiji</groupId>
156151
<artifactId>bigdataviewer-vistools</artifactId>

src/main/java/sc/fiji/bdvpg/cache/BoundedLinkedHashMapGlobalCache.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public class BoundedLinkedHashMapGlobalCache extends AbstractGlobalCache {
6060

6161
@Override
6262
public void run() {
63-
logger.info(this.toString());
63+
logger.info(BoundedLinkedHashMapGlobalCache.this.toString());
6464
}
6565
};
6666

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package sc.fiji.bdvpg.scijavacommand;
2+
3+
import net.imagej.ImageJ;
4+
import org.scijava.command.Command;
5+
import org.scijava.command.InteractiveCommand;
6+
import org.scijava.plugin.Parameter;
7+
import org.scijava.plugin.Plugin;
8+
9+
@Plugin(type = Command.class, menuPath = "Test>Test Interactive Command")
10+
public class TestInteractiveCommand extends InteractiveCommand {
11+
12+
@Parameter
13+
String a_string;
14+
15+
@Override
16+
public void run() {
17+
// nothing
18+
}
19+
20+
public static void main(String... args) throws Exception {
21+
22+
ImageJ ij = new ImageJ();
23+
ij.ui().showUI();
24+
25+
ij.command().run(TestInteractiveCommand .class, true);
26+
27+
}
28+
}

src/test/src/sc/fiji/bdvpg/scijavacommand/TestWidgetDemoCommand.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,14 @@
3232
import ij.IJ;
3333
import net.imagej.ImageJ;
3434
import org.scijava.command.Command;
35+
import org.scijava.command.InteractiveCommand;
3536
import org.scijava.plugin.Parameter;
3637
import org.scijava.plugin.Plugin;
3738
import sc.fiji.bdvpg.WarpedSourceDemo;
3839

3940
@SuppressWarnings("unused")
40-
@Plugin(type = Command.class, menuPath = "Test>Sorted Sources")
41-
public class TestWidgetDemoCommand implements Command {
41+
@Plugin(type = InteractiveCommand.class, menuPath = "Test>Sorted Sources")
42+
public class TestWidgetDemoCommand extends InteractiveCommand {
4243

4344
@Parameter
4445
SourceAndConverter<?>[] non_sorted_sources;

0 commit comments

Comments
 (0)