dmolony-DiskBrowser/src/com/bytezone/diskbrowser/gui/DebuggingAction.java

32 lines
1.1 KiB
Java
Raw Permalink Normal View History

2016-03-14 22:35:22 +00:00
package com.bytezone.diskbrowser.gui;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.JMenuItem;
import javax.swing.KeyStroke;
2020-02-08 10:13:51 +00:00
// -----------------------------------------------------------------------------------//
2016-03-14 22:35:22 +00:00
public class DebuggingAction extends AbstractAction
2020-02-08 10:13:51 +00:00
// -----------------------------------------------------------------------------------//
2016-03-14 22:35:22 +00:00
{
2020-02-08 10:13:51 +00:00
// ---------------------------------------------------------------------------------//
2021-06-01 10:21:21 +00:00
public DebuggingAction ()
2020-02-08 10:13:51 +00:00
// ---------------------------------------------------------------------------------//
2016-03-14 22:35:22 +00:00
{
super ("Debugging");
2021-06-02 01:48:57 +00:00
2016-03-14 22:35:22 +00:00
putValue (Action.SHORT_DESCRIPTION, "Show debugging information");
2018-07-28 12:00:02 +00:00
putValue (Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke ("meta D"));
2016-03-14 22:35:22 +00:00
}
2020-02-08 10:13:51 +00:00
// ---------------------------------------------------------------------------------//
2016-03-14 22:35:22 +00:00
@Override
public void actionPerformed (ActionEvent e)
2020-02-08 10:13:51 +00:00
// ---------------------------------------------------------------------------------//
2016-03-14 22:35:22 +00:00
{
2021-06-02 01:48:57 +00:00
firePropertyChange (e.getActionCommand (), null,
((JMenuItem) e.getSource ()).isSelected ());
2016-03-14 22:35:22 +00:00
}
}