From 5e962888967cab84b58e07554c7163cfeedb6b74 Mon Sep 17 00:00:00 2001 From: Daniel_M_Williams Date: Tue, 23 Jun 2015 13:13:44 -0400 Subject: [PATCH] commented out dead code. private class FigureTypeAction is never used. --- .../gui/scalefigure/RocketPanel.java | 72 +++++++++---------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/swing/src/net/sf/openrocket/gui/scalefigure/RocketPanel.java b/swing/src/net/sf/openrocket/gui/scalefigure/RocketPanel.java index 79eed3168..6654191b5 100644 --- a/swing/src/net/sf/openrocket/gui/scalefigure/RocketPanel.java +++ b/swing/src/net/sf/openrocket/gui/scalefigure/RocketPanel.java @@ -836,40 +836,40 @@ public class RocketPanel extends JPanel implements TreeSelectionListener, Change figure3d.setSelection(components); } - - - /** - * An Action that shows whether the figure type is the type - * given in the constructor. - * - * @author Sampo Niskanen - */ - private class FigureTypeAction extends AbstractAction implements StateChangeListener { - private static final long serialVersionUID = 1L; - private final VIEW_TYPE type; - - public FigureTypeAction(VIEW_TYPE type) { - this.type = type; - stateChanged(null); - figure.addChangeListener(this); - } - - @Override - public void actionPerformed(ActionEvent e) { - boolean state = (Boolean) getValue(Action.SELECTED_KEY); - if (state == true) { - // This view has been selected - figure.setType(type); - go2D(); - updateExtras(); - } - stateChanged(null); - } - - @Override - public void stateChanged(EventObject e) { - putValue(Action.SELECTED_KEY, figure.getType() == type && !is3d); - } - } - +// +// +// /** +// * An Action that shows whether the figure type is the type +// * given in the constructor. +// * +// * @author Sampo Niskanen +// */ +// private class FigureTypeAction extends AbstractAction implements StateChangeListener { +// private static final long serialVersionUID = 1L; +// private final VIEW_TYPE type; +// +// public FigureTypeAction(VIEW_TYPE type) { +// this.type = type; +// stateChanged(null); +// figure.addChangeListener(this); +// } +// +// @Override +// public void actionPerformed(ActionEvent e) { +// boolean state = (Boolean) getValue(Action.SELECTED_KEY); +// if (state == true) { +// // This view has been selected +// figure.setType(type); +// go2D(); +// updateExtras(); +// } +// stateChanged(null); +// } +// +// @Override +// public void stateChanged(EventObject e) { +// putValue(Action.SELECTED_KEY, figure.getType() == type && !is3d); +// } +// } +// }