-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9272d89
commit e7a693a
Showing
3 changed files
with
23 additions
and
5 deletions.
There are no files selected for viewing
6 changes: 5 additions & 1 deletion
6
src/main/java/org/cryptomator/integrations/tray/ActionItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
package org.cryptomator.integrations.tray; | ||
|
||
public record ActionItem(String title, Runnable action) implements TrayMenuItem { | ||
public record ActionItem(String title, Runnable action, boolean enabled) implements TrayMenuItem { | ||
|
||
public ActionItem(String title, Runnable action) { | ||
this(title, action, true); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/java/org/cryptomator/integrations/tray/TrayMenuException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.cryptomator.integrations.tray; | ||
|
||
public class TrayMenuException extends Exception { | ||
|
||
public TrayMenuException(String message) { | ||
super(message); | ||
} | ||
|
||
public TrayMenuException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
} |