Skip to content

Commit

Permalink
Rename view Operation to Attack.
Browse files Browse the repository at this point in the history
  • Loading branch information
DolphFlynn committed Jan 12, 2025
1 parent fc12bfd commit d51df05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import static java.awt.event.KeyEvent.*;

public enum Operation {
public enum Attack {
EmbedJWK("editor_view_button_attack_embed_jwk", VK_J),
SignNone("editor_view_button_attack_sign_none", VK_N),
KeyConfusion("editor_view_button_attack_key_confusion", VK_H),
Expand All @@ -34,7 +34,7 @@ public enum Operation {
private final String labelResourceId;
private final int mnemonic;

Operation(String labelResourceId, int mnemonic) {
Attack(String labelResourceId, int mnemonic) {
this.labelResourceId = labelResourceId;
this.mnemonic = mnemonic;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class EditorViewAttackMenuFactory {
JPopupMenu buildAttackPopupMenu() {
JPopupMenu popupMenuAttack = new JPopupMenu();

for (Operation attack : Operation.values()) {
for (Attack attack : Attack.values()) {
JMenuItem item = new JMenuItem(attack.label(), attack.mnemonic());
item.addActionListener(e -> attack.performOperation(presenter));

Expand Down

0 comments on commit d51df05

Please sign in to comment.