I'm beginning to understand the liberal mindset a little bit from this thread. They tend to take something logical and think it means the opposite of what it does.
Being president, or running for such an office makes no difference at all. Racism is racism and Trump doesn't seem to demonstrate racism if you take his full comments and not just the un-contextualized version that the media repeates . He makes comments that the media skews to fit their agenda. His comment about the judge, in context, pertains to the judges membership in an extremist group that espouses views and actions that are opposite of those that trump has been very vocal about. In my view, the judge should have recused himself to avoid the appearance of a conflict of interest. Trumps commentary is about two things - justice and the appearance of the court being impartial. Both are very important and the judge's refusal to recuse himself undermines both.