File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
src/main/java/org/scijava/ui/headless Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 4141import org .scijava .ui .UIService ;
4242import org .scijava .ui .UserInterface ;
4343import org .scijava .ui .viewer .DisplayWindow ;
44+ import org .scijava .util .ListUtils ;
4445
4546/**
4647 * A "null object" {@link UIService} implementation used when the application is
@@ -68,10 +69,16 @@ public boolean isVisible() {
6869 }
6970
7071 @ Override
71- public void show (final String name , final Object o ) {}
72+ public void show (final String name , final Object o ) {
73+ // NB: Rather than creating a Display, let's just log it.
74+ log ().info (name + " = " + o );
75+ }
7276
7377 @ Override
74- public void show (final Display <?> display ) {}
78+ public void show (final Display <?> display ) {
79+ // NB: Rather than looking for a DisplayViewer, let's just log it.
80+ log ().info (display .getName () + " = " + ListUtils .string (display , false ));
81+ }
7582
7683 @ Override
7784 public DisplayWindow createDisplayWindow (final Display <?> display ) {
You can’t perform that action at this time.
0 commit comments