jlArguments.setEnabled(true);
int selectedIndex = jlFathers.getSelectedIndex();
IResidentNode residentNode = residentNodeAuxList.get(selectedIndex);
updateStatesList(residentNode);
IMultiEntityNode node = fatherNodeList.get(selectedIndex);
// let's assume node != null.
if(node instanceof InputNode){
List<OrdinaryVariable> listOrdinaryVariable = ((InputNode)node).getOrdinaryVariableList();
updateArgumentsList(listOrdinaryVariable);
}else{
List<OrdinaryVariable> listOrdinaryVariable = ((IResidentNode)node).getOrdinaryVariableList();
updateArgumentsList(listOrdinaryVariable);
if (node.equals(getResidentNode())){
jlArguments.setEnabled(false);
}
}
}
}