From 8713f77c46f82363bedc462cc90e3b31f372f35b Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 9 Nov 2015 19:45:11 +0100 Subject: [PATCH] Added comments --- src/dorkbox/util/tray/SystemTrayMenuAction.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/dorkbox/util/tray/SystemTrayMenuAction.java b/src/dorkbox/util/tray/SystemTrayMenuAction.java index 11eecfb..f4f6dcc 100644 --- a/src/dorkbox/util/tray/SystemTrayMenuAction.java +++ b/src/dorkbox/util/tray/SystemTrayMenuAction.java @@ -17,5 +17,12 @@ package dorkbox.util.tray; public interface SystemTrayMenuAction { + /** + * This method will ALWAYS be called in the correct context, either in the swing EDT (if it's swing based), or in a separate thread + * (GTK/AppIndicator based). + * + * @param systemTray this is the parent, system tray object + * @param menuEntry this is the menu entry that was clicked + */ void onClick(SystemTray systemTray, final MenuEntry menuEntry); }