If I put a text object on a work page, and it was the last object selected, and I then click the Text object icon, a dialog appears asking if I want a new object or to edit the current one. I can understand this logic since the objects are the same.
However, using the same set-up as above, but this time I click on the Code object icon, I get the same dialog. Since the last selected object was a text object and I now want a code object, the program should know the difference and open a new editor window for the code object, no questions asked.
I think the action should be the same no matter which icon you select. The only time the dialog should appear is when a like object is selected. If I click the opposing icon, then I would expect my click to be honored without telling me the other type of object is "active."