Exemplo n.º 1
0
    @Override
    public void doAction() {
      layerManipulatorManager.swapLayers(currentLayer.id, targetLayer.id);

      int oldCurrentId = currentLayer.id;
      currentLayer.id = targetLayer.id;
      targetLayer.id = oldCurrentId;

      scene.forceSortLayers();

      selectLayer(currentLayer);
    }