system/src/sc/layer/LayeredSystem.java
public SystemRefreshInfo refreshRuntimes(boolean active) {
      if (options.verbose)
         verbose("Start refreshRuntimes");
      updatePeerModels(true);

      acquireDynLock(false);
      SystemRefreshInfo sysInfo;
      try {
         sysInfo = refreshSystem(false, active);
         ArrayList<SystemRefreshInfo> peerChangedInfos = new ArrayList<SystemRefreshInfo>();
         if (peerSystems != null) {
            int sz = peerSystems.size();
            for (int i = 0; i < sz; i++) {
               LayeredSystem peer = peerSystems.get(i);
               setCurrent(peer);
               // TODO: right now, we ignore the change models in other systems.  These are used by EditorContext to do
               // updating of any errors detected in the models.  Currently EditorContext only knows about one layered system
               // but will need to know about all of them to manage errors, switching views etc. correctly.
               peerChangedInfos.add(peer.refreshSystem(false, active));
            }
            setCurrent(this);
         }
         completeRefresh(sysInfo, peerChangedInfos, active, true);
      }
      finally {
         releaseDynLock(false);
      }
      if (options.verbose)
         verbose("end refreshRuntimes");
      return sysInfo;
   }
/**
    * This call will update the models in all of the runtimes for either active or inactive types.
    *  Even if you specify active, this will not rebuild the active layers.
    */
This call will update the models in all of the runtimes for either active or inactive types.
Even if you specify active, this will not rebuild the active layers.
This call will update the models in all of the runtimes for either active or inactive types . Even if you specify active this will not rebuild the active layers .
public SystemRefreshInfo refreshRuntimes(boolean active) {
      if (options.verbose)
         verbose("Start refreshRuntimes");
      updatePeerModels(true);
      acquireDynLock(false);
      SystemRefreshInfo sysInfo;
      try {
         sysInfo = refreshSystem(false, active);
         ArrayList<SystemRefreshInfo> peerChangedInfos = new ArrayList<SystemRefreshInfo>();
         if (peerSystems != null) {
            int sz = peerSystems.size();
            for (int i = 0; i < sz; i++) {
               LayeredSystem peer = peerSystems.get(i);
               setCurrent(peer);
               peerChangedInfos.add(peer.refreshSystem(false, active));
            }
            setCurrent(this);
         }
         completeRefresh(sysInfo, peerChangedInfos, active, true);
      }
      finally {
         releaseDynLock(false);
      }
      if (options.verbose)
         verbose("end refreshRuntimes");
      return sysInfo;
   }
public SystemRefreshInfo refreshRuntimes ( boolean active ) { if ( options . verbose ) verbose ( "Start refreshRuntimes" ) ; updatePeerModels ( true ) ; acquireDynLock ( false ) ; SystemRefreshInfo sysInfo ; try { sysInfo = refreshSystem ( false , active ) ; ArrayList < SystemRefreshInfo > peerChangedInfos = new ArrayList < SystemRefreshInfo > ( ) ; if ( peerSystems != null ) { int sz = peerSystems . size ( ) ; for ( int i = 0 ; i < sz ; i ++ ) { LayeredSystem peer = peerSystems . get ( i ) ; setCurrent ( peer ) ; peerChangedInfos . add ( peer . refreshSystem ( false , active ) ) ; } setCurrent ( this ) ; } completeRefresh ( sysInfo , peerChangedInfos , active , true ) ; } finally { releaseDynLock ( false ) ; } if ( options . verbose ) verbose ( "end refreshRuntimes" ) ; return sysInfo ; }
This call will update the models in all of the runtimes for either active or inactive types.
This call will update the models in all of the runtimes for either active or inactive types .
// TODO: right now, we ignore the change models in other systems.  These are used by EditorContext to do // updating of any errors detected in the models.  Currently EditorContext only knows about one layered system // but will need to know about all of them to manage errors, switching views etc. correctly.