system/src/sc/layer/Layer.java
public boolean extendsReplacedLayer(Layer other) {
      initReplacedLayers();
      if (replacedByLayers != null) {
         for (Layer replacedByLayer:replacedByLayers) {
            if (other == replacedByLayer) {
               return true;
            }
         }
      }
      if (baseLayers == null)
         return false;
      for (int i = 0; i < baseLayers.size(); i++) {
         Layer base = baseLayers.get(i);
         if (base == other || base.extendsReplacedLayer(other))
            return true;
      }
      return false;
   }
/** Does this layer extend any layers which replaced features of layers we do extend */
Does this layer extend any layers which replaced features of layers we do extend
Does this layer extend any layers which replaced features of layers we do extend
public boolean extendsReplacedLayer(Layer other) {
      initReplacedLayers();
      if (replacedByLayers != null) {
         for (Layer replacedByLayer:replacedByLayers) {
            if (other == replacedByLayer) {
               return true;
            }
         }
      }
      if (baseLayers == null)
         return false;
      for (int i = 0; i < baseLayers.size(); i++) {
         Layer base = baseLayers.get(i);
         if (base == other || base.extendsReplacedLayer(other))
            return true;
      }
      return false;
   }
public boolean extendsReplacedLayer ( Layer other ) { initReplacedLayers ( ) ; if ( replacedByLayers != null ) { for ( Layer replacedByLayer : replacedByLayers ) { if ( other == replacedByLayer ) { return true ; } } } if ( baseLayers == null ) return false ; for ( int i = 0 ; i < baseLayers . size ( ) ; i ++ ) { Layer base = baseLayers . get ( i ) ; if ( base == other || base . extendsReplacedLayer ( other ) ) return true ; } return false ; }
Does this layer extend any layers which replaced features of layers we do extend
Does this layer extend any layers which replaced features of layers we do extend