@@ -793,7 +793,7 @@ public void deleteInternal(Layer layer) {
793793
794794 @ Override
795795 public void reorderLayerUI (int oldIndex , int newIndex ) {
796- view .reorderLayerInUI (oldIndex , newIndex );
796+ view .reorderLayerUI (oldIndex , newIndex );
797797 }
798798
799799 @ Override
@@ -905,11 +905,6 @@ public Layer getActiveTopLevelLayer() {
905905 return activeTopLevelLayer ;
906906 }
907907
908- @ Override
909- public int getActiveLayerIndex () {
910- return layerList .indexOf (activeTopLevelLayer );
911- }
912-
913908 @ Override
914909 public int indexOf (Layer layer ) {
915910 return layerList .indexOf (layer );
@@ -926,7 +921,7 @@ public boolean listContainsLayer(Layer layer) {
926921 }
927922
928923 @ Override
929- public Stream <? extends Layer > levelStream () {
924+ public Stream <? extends Layer > directChildrenStream () {
930925 return layerList .stream ();
931926 }
932927
@@ -954,9 +949,9 @@ public int getNumORAExportableImages() {
954949 }
955950
956951 /**
957- * Calculates the total number of images in this composition including any mask images.
952+ * Counts the total number of images in this composition including any mask images.
958953 */
959- public int calcNumImages () {
954+ public int countImages () {
960955 int count = 0 ;
961956 for (Layer layer : layerList ) {
962957 if (layer instanceof ImageLayer ) {
@@ -1368,7 +1363,7 @@ public PixelitorEdit changeSelection(Shape newShape) {
13681363 }
13691364 Shape origShape = selection .getShape ();
13701365 selection .setShape (combinator .combine (origShape , newShape ));
1371- selection .setHidden (false , false );
1366+ selection .setHidden (false );
13721367
13731368 return new SelectionShapeChangeEdit ("Selection Change" , this , origShape );
13741369 }
@@ -1414,7 +1409,6 @@ public void setSelection(Selection selection) {
14141409 this .selection = selection ;
14151410 if (isActive ()) {
14161411 SelectionActions .update (this );
1417- SelectionActions .getShowHide ().updateTextFrom (selection );
14181412 }
14191413 }
14201414
0 commit comments