Added final to the class
This commit is contained in:
parent
951a600f0b
commit
2690d9aae4
|
@ -76,7 +76,7 @@ import dorkbox.systemTray.util.ImageResizeUtil;
|
||||||
* http://bazaar.launchpad.net/~ubuntu-desktop/ido/gtk3/files
|
* http://bazaar.launchpad.net/~ubuntu-desktop/ido/gtk3/files
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("Duplicates")
|
@SuppressWarnings("Duplicates")
|
||||||
public
|
public final
|
||||||
class _AppIndicatorNativeTray extends Tray implements NativeUI {
|
class _AppIndicatorNativeTray extends Tray implements NativeUI {
|
||||||
private volatile AppIndicatorInstanceStruct appIndicator;
|
private volatile AppIndicatorInstanceStruct appIndicator;
|
||||||
private boolean isActive = false;
|
private boolean isActive = false;
|
||||||
|
@ -239,7 +239,7 @@ class _AppIndicatorNativeTray extends Tray implements NativeUI {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final
|
public
|
||||||
boolean hasImage() {
|
boolean hasImage() {
|
||||||
return imageFile != null;
|
return imageFile != null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ import dorkbox.util.SwingUtil;
|
||||||
* Also, on linux, this WILL NOT CLOSE properly -- there is a frame handle that keeps the JVM open. MacOS does not have this problem.
|
* Also, on linux, this WILL NOT CLOSE properly -- there is a frame handle that keeps the JVM open. MacOS does not have this problem.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({"SynchronizationOnLocalVariableOrMethodParameter", "WeakerAccess"})
|
@SuppressWarnings({"SynchronizationOnLocalVariableOrMethodParameter", "WeakerAccess"})
|
||||||
public
|
public final
|
||||||
class _AwtTray extends Tray implements NativeUI {
|
class _AwtTray extends Tray implements NativeUI {
|
||||||
private volatile SystemTray tray;
|
private volatile SystemTray tray;
|
||||||
private volatile TrayIcon trayIcon;
|
private volatile TrayIcon trayIcon;
|
||||||
|
|
|
@ -35,7 +35,7 @@ import dorkbox.systemTray.jna.linux.Gtk;
|
||||||
* This is the "old" way to do it, and does not work with some newer desktop environments.
|
* This is the "old" way to do it, and does not work with some newer desktop environments.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("Duplicates")
|
@SuppressWarnings("Duplicates")
|
||||||
public
|
public final
|
||||||
class _GtkStatusIconNativeTray extends Tray implements NativeUI {
|
class _GtkStatusIconNativeTray extends Tray implements NativeUI {
|
||||||
private volatile Pointer trayIcon;
|
private volatile Pointer trayIcon;
|
||||||
|
|
||||||
|
@ -55,6 +55,8 @@ class _GtkStatusIconNativeTray extends Tray implements NativeUI {
|
||||||
private volatile boolean visible = true;
|
private volatile boolean visible = true;
|
||||||
private volatile File imageFile;
|
private volatile File imageFile;
|
||||||
|
|
||||||
|
private final GtkMenu gtkMenu;
|
||||||
|
|
||||||
// called on the EDT
|
// called on the EDT
|
||||||
public
|
public
|
||||||
_GtkStatusIconNativeTray(final SystemTray systemTray) {
|
_GtkStatusIconNativeTray(final SystemTray systemTray) {
|
||||||
|
@ -63,7 +65,7 @@ class _GtkStatusIconNativeTray extends Tray implements NativeUI {
|
||||||
Gtk.startGui();
|
Gtk.startGui();
|
||||||
|
|
||||||
// we override various methods, because each tray implementation is SLIGHTLY different. This allows us customization.
|
// we override various methods, because each tray implementation is SLIGHTLY different. This allows us customization.
|
||||||
final GtkMenu gtkMenu = new GtkMenu() {
|
gtkMenu = new GtkMenu() {
|
||||||
@Override
|
@Override
|
||||||
public
|
public
|
||||||
void setEnabled(final MenuItem menuItem) {
|
void setEnabled(final MenuItem menuItem) {
|
||||||
|
@ -215,7 +217,7 @@ class _GtkStatusIconNativeTray extends Tray implements NativeUI {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final
|
public
|
||||||
boolean hasImage() {
|
boolean hasImage() {
|
||||||
return imageFile != null;
|
return imageFile != null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user