comboContributor.addItemListener(new ItemListener() {
@Override
public void itemStateChanged(ItemEvent e) {
AssistantReferenceContributor assistantReferenceContributor = AssistantReferenceUtil.getContributorProviderByName(MethodParameterDialog.this.project, (String) e.getItem());
if(assistantReferenceContributor != null) {
MethodParameterDialog.this.textContributorData.setEnabled(assistantReferenceContributor.supportData());
}
}
});
// allow only number values to indexes