Possibly different sorts of popups ?

If there's only one item selected, then show the popup for that sort of item. If there are multiple items all of the same type, then show a command popup for those items.

If there are different sorts of items shown, show a popup with the ability to edit only the property they all have in common....