Adds a position group to this
LinkedModeModel
. This method may not be called if the model has been installed. Also, if a UI has been set up for this model, it may not pick up groups added afterwards.
If the positions in group
conflict with any other group in this model, a BadLocationException
is thrown. Also, if this model is nested inside another one, all positions in all groups of the child model have to reside within a single position in the parent model, otherwise a BadLocationException
is thrown.
If group
already exists, nothing happens.
@param group the group to be added to this model
@throws BadLocationException if the group conflicts with the other groupsin this model or violates the nesting requirements.
@throws IllegalStateException if the method is called when themodel is already sealed