Skip to content

Commit ca91f4e

Browse files
committed
AppEventService: deprecate getCommands()
It is cleaner to tag each individual "app" command with a special key. Then the MacOSXPlatform can just remove all such tagged commands, without needing to mess around with the AppEventService at all.
1 parent 63805cf commit ca91f4e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/org/scijava/platform/AppEventService.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,13 @@ public interface AppEventService extends SciJavaService {
5252
/** Quits ImageJ, prompting the user about any unsaved work first. */
5353
void quit();
5454

55-
/** Gets the commands associated with this service. */
55+
/**
56+
* Gets the commands associated with this service.
57+
*
58+
* @deprecated Tag relevant commands instead:
59+
* <code>attrs = { @Attr(name = "app-command") }</code>
60+
*/
61+
@Deprecated
5662
List<Class<? extends Command>> getCommands();
5763

5864
}

0 commit comments

Comments
 (0)