use of org.openide.util.lookup.AbstractLookup in project blue by kunstmusik.
the class ScoreControllerTest method setUp.
@Before
public void setUp() {
System.out.println("@Before setUp");
this.scoreController = ScoreController.getInstance();
scoreController.setScrollPane(new JScrollPane());
InstanceContent content = new InstanceContent();
Score score = new Score();
scoreController.setScore(score);
PolyObject pObj = (PolyObject) score.get(0);
SoundLayer layer1 = new SoundLayer();
SoundLayer layer2 = new SoundLayer();
pObj.add(layer1);
pObj.add(layer2);
GenericScore score1 = new GenericScore();
score1.setStartTime(2.0f);
GenericScore score2 = new GenericScore();
score2.setStartTime(4.0f);
layer2.add(score1);
layer2.add(score2);
content.add(score);
content.add(score1);
content.add(score2);
scoreController.setLookupAndContent(new AbstractLookup(content), content);
this.buffer = scoreController.getScoreObjectBuffer();
}
Aggregations