Judges apply the laws of the land but do not create them. I'll suggest that this is more of a political issue in that the pertinent legislation(s) may be in need to attention. Alternatively, perhaps the application of secrecy to journalistic sources should be treated in the same manner as that of police sources? 
Not a simple issue and certainly one that merits considered thought and public discourse.