Package info.textgrid.lab.noteeditor.model

Examples of info.textgrid.lab.noteeditor.model.SectionForm


 
  @Override
  public void redo(){
    CompoundCommand compoundCommand = new CompoundCommand(COMMAND_ID);
    MusicDiagram activeDiagram = MusicPlugin.getDefault().getActiveDiagram();
    SectionForm child = new SectionForm();
    CreateCommand createCmd = new CreateCommand();
    createCmd.setParent(activeDiagram);
    createCmd.setChild(child);
    compoundCommand.add(createCmd);
    DeleteCommand cleanupCommand = new DeleteCommand();
View Full Code Here


  }

  private static MeiNode handleScoreChild(BasicElement childForm,
      boolean saveAllVariants) {
    if (childForm instanceof SectionForm) {
      SectionForm sectionForm = (SectionForm) childForm;
      Section section = (Section) sectionForm.getMeiNode();
      section.getUnclearsAndSbsAndApps().clear();
      for (BasicElement sectionChildForm : sectionForm.getChildren()) {
        section.getUnclearsAndSbsAndApps().add(
            handleScoreChild(sectionChildForm, saveAllVariants));
      }
      return section;
    } else if (childForm instanceof EndingForm) {
View Full Code Here

    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(
View Full Code Here

  }

  private static BasicElement handleSection(Section section,
      BasicElement parentForm) {
    SectionForm sectionForm = new SectionForm();
    sectionForm.setMeiNode(section);
    sectionForm.setParent(parentForm);
    for (MeiNode child : section.getUnclearsAndSbsAndApps()) {
      BasicElement handleSectionContent = handleMeiElement(child,
          sectionForm);
      if (handleSectionContent != null)
        sectionForm.addChild(handleSectionContent);
    }
    return sectionForm;

  }
View Full Code Here

    return candidate.equals(SectionForm.class);
  }

  @Override
  public void run() {
    this.child = new SectionForm();
    super.run();
  }
View Full Code Here

TOP

Related Classes of info.textgrid.lab.noteeditor.model.SectionForm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.