/**
* insert measures
*/
private void massInsertMeasures() {
MusicContainerForm rootForm;
MusicContainerForm measureForm;
MusicContainerForm singleStaff;
if (wrapper.isMeasuresCreateNewSection()) {
rootForm = MusicPlugin.getDefault().getActiveDiagram();
MusicContainerForm sectionForm = new SectionForm();
insertCompoundCommand(rootForm, sectionForm);
rootForm = sectionForm;
} else {
rootForm = (MusicContainerForm)MeiNodeNavigator
.findActiveDescendantForm(
SectionForm.class,
MusicPlugin.getDefault().getActiveDiagram())
.get(MeiNodeNavigator.findActiveDescendantForm(
SectionForm.class,
MusicPlugin.getDefault().getActiveDiagram()).size() - 1);
}
if (wrapper.isMeasuresCreateNewEnding()) {
rootForm = MusicPlugin.getDefault().getActiveDiagram();
MusicContainerForm endingForm = new EndingForm();
insertCompoundCommand(rootForm, endingForm);
rootForm = endingForm;
} else {
rootForm = (MusicContainerForm)MeiNodeNavigator
.findActiveDescendantForm(