remove duplicate code appeared on merge

This commit is contained in:
Kirill.Safonov
2010-12-08 00:42:20 +03:00
parent d119950ff9
commit a2e88a8a41
@@ -146,21 +146,6 @@ public abstract class ChangesTrackingTableView<T> extends TableView<T> {
}
});
}
else if (component instanceof JCheckBox) {
final ActionListener checkBoxListener = new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
listener.stateChanged(new ChangeEvent(component));
}
};
((JCheckBox)component).addActionListener(checkBoxListener);
Disposer.register(parentDisposable, new Disposable() {
@Override
public void dispose() {
((JCheckBox)component).removeActionListener(checkBoxListener);
}
});
}
else {
throw new UnsupportedOperationException("editor control of type " + component.getClass().getName() + " is not supported");
}