File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/org/scijava/plugins/platforms/macos Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ public boolean registerAppMenus(final Object menus) {
128128
129129 @ Override
130130 public void dispose () {
131- getPlatformService ().getEventService ().unsubscribe (subscribers );
131+ getPlatformService ().eventService ().unsubscribe (subscribers );
132132 }
133133
134134 // -- Event handlers --
@@ -148,13 +148,13 @@ protected void onEvent(final WinActivatedEvent evt) {
148148
149149 private void removeAppCommandsFromMenu () {
150150 final PlatformService platformService = getPlatformService ();
151- final EventService eventService = platformService .getEventService ();
152- final CommandService commandService = platformService .getCommandService ();
151+ final EventService eventService = platformService .eventService ();
152+ final CommandService commandService = platformService .commandService ();
153153
154154 // NB: Search for commands being handled at the application level.
155155 // We remove such commands from the main menu bar;
156156 // the Mac application menu will trigger them instead.
157- final ArrayList <ModuleInfo > infos = new ArrayList <ModuleInfo >();
157+ final ArrayList <ModuleInfo > infos = new ArrayList <>();
158158 for (final CommandInfo info : commandService .getCommands ()) {
159159 if (info .is ("app-command" )) {
160160 info .setMenuPath (null );
You can’t perform that action at this time.
0 commit comments