Examples of MusicEditPart


Examples of info.textgrid.lab.noteeditor.edit.MusicEditPart

  protected boolean calculateEnabled() {
    if (getSelectedObjects().isEmpty()
        || !(getSelectedObjects().get(0) instanceof MusicEditPart)
        || ((MusicEditPart) getSelectedObjects().get(0)).getModel() == null)
      return false;
    MusicEditPart selectedEditPart = (MusicEditPart) getSelectedObjects()
        .get(0);
    BasicElement selectedModel = (BasicElement) selectedEditPart.getModel();
    if(selectedModel instanceof UnknownMeiNodeForm || selectedModel instanceof ErrorMsgDiagram)
      return false;
    for (Class candidate : MusicPlugin.allowedChildrenMap
        .get(selectedModel.getClass())) {
      if(isCandidate(candidate))
View Full Code Here

Examples of info.textgrid.lab.noteeditor.edit.MusicEditPart

    return false;
  }

  @Override
  public void run() {
    MusicEditPart selectedEditPart = (MusicEditPart) getSelectedObjects()
        .get(0);
    this.parent = (MusicContainerForm) selectedEditPart.getModel();
    execute(createAddPossibleChildrenCommand());
    setChecked(false);
  }
View Full Code Here

Examples of info.textgrid.lab.noteeditor.edit.MusicEditPart

  protected boolean calculateEnabled() {
    if (getSelectedObjects().isEmpty()
        || !(getSelectedObjects().get(0) instanceof MusicEditPart)
        || ((MusicEditPart) getSelectedObjects().get(0)).getModel() == null)
      return false;
    MusicEditPart selectedEditPart = (MusicEditPart) getSelectedObjects()
        .get(0);
    if (selectedEditPart.getParent() == null)
      return false;
    return true;
  }
View Full Code Here

Examples of info.textgrid.lab.noteeditor.edit.MusicEditPart

    return compoundCmd;
  }

  @Override
  public void run() {
    MusicEditPart selectedEditPart = (MusicEditPart) getSelectedObjects()
        .get(0);
    MusicContainerForm parent = (MusicContainerForm) selectedEditPart
        .getParent().getModel();
    execute(createCloneCommand((BasicElement) selectedEditPart.getModel(), parent));
    setChecked(false);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.