mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove duplicate code appeared on merge
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user