OMEdit should not allow modifying outer components
Description
Outer components are not allowed to have modifiers or binding equations, but OMEdit allows the user to add such via the parameters dialog.
Steps to Reproduce
- Open any model with an outer component, for example the one from #11779.
- Right-click a outer component and select Parameters.
- Add a modifier in the Modifiers tab.
- Upon adding the modifier, a compiler error will be produced.
Expected Behavior
OMEdit shouldn't allow adding modifiers to known outer components, and should ideally tell the user why. Maybe changing the label in the Modifiers tab to say something like "This component is outer and can't be modified", and hiding the modifier text field.
Additional Context
Completely forbidding adding modifiers on outer components is probably quite hard, e.g. when adding nested modifiers on a non-outer component that contains outer elements. So we can probably not handle all cases, but we should at least handle the ones where we know that we're trying to modify an outer component.
It could potentially also make sense to redirect the user to the inner component instead in some cases, but I'm not sure what the expectations are for that.