/bundles/plugins-trunk/CommonControls/common/gui/actions/Cancel.java
Java | 28 lines | 14 code | 5 blank | 9 comment | 0 complexity | 331b921cf527ba5f1a0fc45b3885b1c5 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
- package common.gui.actions;
- import java.awt.event.*;
- import javax.swing.*;
- /**
- * An old class that probably shouldn't be used anymore.
- *
- * @author mace
- * @created May 28, 2003
- * @modified $Date: 2012-03-13 17:07:11 +0100 (Tue, 13 Mar 2012) $ by $Author: ezust $
- * @version $Revision: 21349 $
- * @deprecated
- */
- @Deprecated
- class Cancel extends CustomAction {
- private JDialog _dialog;
- public Cancel(JDialog d) {
- super("Cancel");
- _dialog = d;
- }
- public void actionPerformed(ActionEvent e) {
- _dialog.dispose();
- }
- }