commented out dead code. private class FigureTypeAction is never used.
This commit is contained in:
parent
6f4cba68ae
commit
5e96288896
@ -836,40 +836,40 @@ public class RocketPanel extends JPanel implements TreeSelectionListener, Change
|
|||||||
figure3d.setSelection(components);
|
figure3d.setSelection(components);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
//
|
||||||
/**
|
// /**
|
||||||
* An <code>Action</code> that shows whether the figure type is the type
|
// * An <code>Action</code> that shows whether the figure type is the type
|
||||||
* given in the constructor.
|
// * given in the constructor.
|
||||||
*
|
// *
|
||||||
* @author Sampo Niskanen <sampo.niskanen@iki.fi>
|
// * @author Sampo Niskanen <sampo.niskanen@iki.fi>
|
||||||
*/
|
// */
|
||||||
private class FigureTypeAction extends AbstractAction implements StateChangeListener {
|
// private class FigureTypeAction extends AbstractAction implements StateChangeListener {
|
||||||
private static final long serialVersionUID = 1L;
|
// private static final long serialVersionUID = 1L;
|
||||||
private final VIEW_TYPE type;
|
// private final VIEW_TYPE type;
|
||||||
|
//
|
||||||
public FigureTypeAction(VIEW_TYPE type) {
|
// public FigureTypeAction(VIEW_TYPE type) {
|
||||||
this.type = type;
|
// this.type = type;
|
||||||
stateChanged(null);
|
// stateChanged(null);
|
||||||
figure.addChangeListener(this);
|
// figure.addChangeListener(this);
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
@Override
|
// @Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
// public void actionPerformed(ActionEvent e) {
|
||||||
boolean state = (Boolean) getValue(Action.SELECTED_KEY);
|
// boolean state = (Boolean) getValue(Action.SELECTED_KEY);
|
||||||
if (state == true) {
|
// if (state == true) {
|
||||||
// This view has been selected
|
// // This view has been selected
|
||||||
figure.setType(type);
|
// figure.setType(type);
|
||||||
go2D();
|
// go2D();
|
||||||
updateExtras();
|
// updateExtras();
|
||||||
}
|
// }
|
||||||
stateChanged(null);
|
// stateChanged(null);
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
@Override
|
// @Override
|
||||||
public void stateChanged(EventObject e) {
|
// public void stateChanged(EventObject e) {
|
||||||
putValue(Action.SELECTED_KEY, figure.getType() == type && !is3d);
|
// putValue(Action.SELECTED_KEY, figure.getType() == type && !is3d);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user