system/src/sc/lang/java/JavaModel.java
public void disposeInstances() {
      if (!isLayerModel) {
         Map<String, TypeDeclaration> types = getDefinedTypes();
         // TODO: do we need to do anything to removbe children from parents?  It seems like we are throwing them all away so should not have to.
         for (TypeDeclaration td:types.values()) {
            td.removeTypeInstances();
         }
      }
   }
/** Find all instances for all types in this model and dispose of them */
Find all instances for all types in this model and dispose of them
Find all instances for all types in this model and dispose of them
public void disposeInstances() {
      if (!isLayerModel) {
         Map<String, TypeDeclaration> types = getDefinedTypes();
         for (TypeDeclaration td:types.values()) {
            td.removeTypeInstances();
         }
      }
   }
public void disposeInstances ( ) { if ( ! isLayerModel ) { Map < String , TypeDeclaration > types = getDefinedTypes ( ) ; for ( TypeDeclaration td : types . values ( ) ) { td . removeTypeInstances ( ) ; } } }
Find all instances for all types in this model and dispose of them
Find all instances for all types in this model and dispose of them
// TODO: do we need to do anything to removbe children from parents?  It seems like we are throwing them all away so should not have to.