use of com.intellij.refactoring.ui.AbstractMemberSelectionTable in project kotlin by JetBrains.
the class KotlinPullUpDialogBase method initClassCombo.
@SuppressWarnings("unchecked")
@Override
protected void initClassCombo(JComboBox classCombo) {
classCombo.setRenderer(new KotlinOrJavaClassCellRenderer());
classCombo.addItemListener(new ItemListener() {
@Override
public void itemStateChanged(ItemEvent e) {
if (e.getStateChange() == ItemEvent.SELECTED) {
if (myMemberSelectionPanel == null)
return;
AbstractMemberSelectionTable<KtNamedDeclaration, KotlinMemberInfo> table = myMemberSelectionPanel.getTable();
if (table == null)
return;
table.setMemberInfos(myMemberInfos);
table.fireExternalDataChange();
}
}
});
}
Aggregations