I think the officer was out of line, but I personally have always notified when pulled over because it seems like a good idea. If a LEO spots a gun he is probably going to assume the worst, not the best. I don't think I'll get shot, but I do think I'm going to be treated a lot differently.
I was pulled over on a traffic stop last night. I had a 1911 IWB and a P2000sk in a tool bag on the passenger seat. The first thing I did was to inform the officer I was licensed and carrying. He said, "Oh, okay," and asked for my DL, CCW card, and proof of insurance. He then asked why I was driving so fast, and I told him, "Stupid reason, I'm late for work." He then asked for the 1911, which I handed him grip first. He unloaded it, handed me the mag and chamber round, and then set the gun on the roof of my car. The same procedure was repeated for the HK. The officer was exremely polite. He even half-joked when he asked for the first one, "I assume since you told me about it your not going to shoot me," and admired my choice in firearms. He then said, "I don't like to mess with working people, and you obviously know your guns, so I'm probably going to let you go. I'm going back to my car to run your license and I'll be done as quickly as possible."
He was true to his word and let me go with a note saying I was late to work because I had been stopped, and a "slow your ass down."
I had a similar experience with an officer of another department about a year ago. I notified him as well and he disarmed me in the same way before going back to his car to run my license.
Anyway, all I'm saying is that it's probably better to avoid an ******* by being polite enough up front to inform a LEO (who has to worry about getting shot every day) that you are armed. It shows respect for his/her position as well as avoids any nasty surprises on the officers part (if they were to spot the gun on you before knowing you were legally carrying, as opposed to finding out you have a CCW).