File tree 4 files changed +33
-9
lines changed
main/java/sc/fiji/bdvpg/cache
test/src/sc/fiji/bdvpg/scijavacommand
4 files changed +33
-9
lines changed Original file line number Diff line number Diff line change 125
125
<reflections .version>0.9.11</reflections .version>
126
126
127
127
<!-- 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 >
129
129
130
130
</properties >
131
131
146
146
<artifactId >scijava-ui-swing</artifactId >
147
147
</dependency >
148
148
149
- <dependency >
150
- <groupId >net.imagej</groupId >
151
- <artifactId >imagej</artifactId >
152
- </dependency >
153
-
154
149
<dependency >
155
150
<groupId >sc.fiji</groupId >
156
151
<artifactId >bigdataviewer-vistools</artifactId >
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public class BoundedLinkedHashMapGlobalCache extends AbstractGlobalCache {
60
60
61
61
@ Override
62
62
public void run () {
63
- logger .info (this .toString ());
63
+ logger .info (BoundedLinkedHashMapGlobalCache . this .toString ());
64
64
}
65
65
};
66
66
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change 32
32
import ij .IJ ;
33
33
import net .imagej .ImageJ ;
34
34
import org .scijava .command .Command ;
35
+ import org .scijava .command .InteractiveCommand ;
35
36
import org .scijava .plugin .Parameter ;
36
37
import org .scijava .plugin .Plugin ;
37
38
import sc .fiji .bdvpg .WarpedSourceDemo ;
38
39
39
40
@ 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 {
42
43
43
44
@ Parameter
44
45
SourceAndConverter <?>[] non_sorted_sources ;
You can’t perform that action at this time.
0 commit comments