Search in sources :

Example 1 with ScoreObjectEditorTopComponent

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();
}
Also used : ScoreObjectEditorTopComponent(blue.ui.core.score.layers.soundObject.ScoreObjectEditorTopComponent)

Example 2 with ScoreObjectEditorTopComponent

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();
        }
    }
}
Also used : PolyObject(blue.soundObject.PolyObject) ScoreObjectEditorTopComponent(blue.ui.core.score.layers.soundObject.ScoreObjectEditorTopComponent)

Aggregations

ScoreObjectEditorTopComponent (blue.ui.core.score.layers.soundObject.ScoreObjectEditorTopComponent)2 PolyObject (blue.soundObject.PolyObject)1