@Override public void execute() throws PropertyAlreadySetException { ScoreDocument doc = this.doc; Score score = this.score; if (doc == null || score == null) { doc = App.getInstance().getScoreDocument(); // TODO: null score = doc.getScore(0); } PlaybackTool tool = new PlaybackTool(doc, score); doc.setSelectedTool(tool); }
public void actionPerformed(ActionEvent arg0) { LanguageChangeCommand cmd = new LanguageChangeCommand(langID); ScoreDocument doc = App.getInstance().getScoreDocument(); doc.getCommandPerformer().execute(cmd); }