use of blue.ui.core.score.layers.soundObject.ScoreObjectEditorTopComponent in project blue by kunstmusik.
the class PatternLayerPanel method editSoundObject.
protected void editSoundObject() {
content.set(Collections.singleton(patternLayer.getSoundObject()), null);
ScoreObjectEditorTopComponent editor = (ScoreObjectEditorTopComponent) WindowManager.getDefault().findTopComponent("ScoreObjectEditorTopComponent");
if (!editor.isOpened()) {
editor.open();
}
editor.requestActive();
}
use of blue.ui.core.score.layers.soundObject.ScoreObjectEditorTopComponent in project blue by kunstmusik.
the class ScoreObjectSelectionListener method editScoreObject.
protected void editScoreObject(Collection<? extends ScoreObject> selectedScoreObjects, ScoreObject scoreObj) {
if (scoreObj instanceof PolyObject) {
PolyObject pObj = (PolyObject) scoreObj;
ScoreController.getInstance().editLayerGroup(pObj);
} else {
if (selectedScoreObjects.size() == 1) {
ScoreObjectEditorTopComponent editor = (ScoreObjectEditorTopComponent) WindowManager.getDefault().findTopComponent("ScoreObjectEditorTopComponent");
if (!editor.isOpened()) {
editor.open();
}
editor.requestActive();
}
}
}
Aggregations