|
38 | 38 | import java.util.List; |
39 | 39 | import java.util.Map; |
40 | 40 |
|
41 | | -import org.scijava.app.App; |
42 | 41 | import org.scijava.app.AppService; |
43 | | -import org.scijava.app.SciJavaApp; |
44 | 42 | import org.scijava.app.StatusService; |
45 | 43 | import org.scijava.app.event.StatusEvent; |
46 | 44 | import org.scijava.command.CommandService; |
@@ -135,27 +133,13 @@ public final class DefaultUIService extends AbstractService implements |
135 | 133 | /** Whether lazy initialization is complete. */ |
136 | 134 | private boolean initialized; |
137 | 135 |
|
138 | | - /** Application associated with the user interface. */ |
139 | | - private App app; |
140 | | - |
141 | 136 | /** The default user interface to use, if one is not explicitly specified. */ |
142 | 137 | private UserInterface defaultUI; |
143 | 138 |
|
144 | 139 | private boolean activationInvocationPending = false; |
145 | 140 |
|
146 | 141 | // -- UIService methods -- |
147 | 142 |
|
148 | | - @Override |
149 | | - public App getApp() { |
150 | | - if (!initialized) discoverUIs(); |
151 | | - return app; |
152 | | - } |
153 | | - |
154 | | - @Override |
155 | | - public void setApp(final App app) { |
156 | | - this.app = app; |
157 | | - } |
158 | | - |
159 | 143 | @Override |
160 | 144 | public void addUI(final UserInterface ui) { |
161 | 145 | addUI(null, ui); |
@@ -469,7 +453,6 @@ private Map<String, UserInterface> uiMap() { |
469 | 453 | private synchronized void discoverUIs() { |
470 | 454 | if (initialized) return; |
471 | 455 |
|
472 | | - app = appService.getApp(SciJavaApp.NAME); |
473 | 456 | displayViewers = new ArrayList<DisplayViewer<?>>(); |
474 | 457 | uiList = new ArrayList<UserInterface>(); |
475 | 458 | uiMap = new HashMap<String, UserInterface>(); |
|
0 commit comments