system/src/sc/lang/java/JavaModel.java
public void fileRenamed(SrcEntry oldSrcEnt, SrcEntry newSrcEnt) {
      if (srcFiles != null && srcFiles.size() > 0) {
         srcFiles.remove(0);
         srcFiles.add(0, newSrcEnt);
      }
      if (layeredSystem != null)
         layeredSystem.fileRenamed(oldSrcEnt, newSrcEnt, true);
   }
/**
    * Called when we detect that a source file has changed ffom outside the system.
    * This handles updating the srcFile on this model and updating the indexes in teh layered system that
    * depend on the file name.  NOTE: this does not change the type name of the model type which typically
    * must correspond with the type but during the editing process, sometimes these become different so we need to
    * handle the update independently.
    */
Called when we detect that a source file has changed ffom outside the system.
This handles updating the srcFile on this model and updating the indexes in teh layered system that
depend on the file name.  NOTE: this does not change the type name of the model type which typically
must correspond with the type but during the editing process, sometimes these become different so we need to
handle the update independently.
Called when we detect that a source file has changed ffom outside the system . This handles updating the srcFile on this model and updating the indexes in teh layered system that depend on the file name . NOTE : this does not change the type name of the model type which typically must correspond with the type but during the editing process sometimes these become different so we need to handle the update independently .
public void fileRenamed(SrcEntry oldSrcEnt, SrcEntry newSrcEnt) {
      if (srcFiles != null && srcFiles.size() > 0) {
         srcFiles.remove(0);
         srcFiles.add(0, newSrcEnt);
      }
      if (layeredSystem != null)
         layeredSystem.fileRenamed(oldSrcEnt, newSrcEnt, true);
   }
public void fileRenamed ( SrcEntry oldSrcEnt , SrcEntry newSrcEnt ) { if ( srcFiles != null && srcFiles . size ( ) > 0 ) { srcFiles . remove ( 0 ) ; srcFiles . add ( 0 , newSrcEnt ) ; } if ( layeredSystem != null ) layeredSystem . fileRenamed ( oldSrcEnt , newSrcEnt , true ) ; }
Called when we detect that a source file has changed ffom outside the system.
Called when we detect that a source file has changed ffom outside the system .