Esempio n. 1
0
 @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);
 }
Esempio n. 2
0
 public void actionPerformed(ActionEvent arg0) {
   LanguageChangeCommand cmd = new LanguageChangeCommand(langID);
   ScoreDocument doc = App.getInstance().getScoreDocument();
   doc.getCommandPerformer().execute(cmd);
 }