system/src/sc/layer/LayeredSystem.java
private void cleanupFileProcessors() {
      for (Map.Entry<String,IFileProcessor[]> procEnt:fileProcessors.entrySet()) {
         IFileProcessor[] procList = procEnt.getValue();
         for (IFileProcessor proc:procList) {
            Layer l = proc.getDefinedInLayer();
            if (l != null && l.removed)
               proc.setDefinedInLayer(null);
         }
      }
      for (Map.Entry<Pattern,IFileProcessor> procEnt:filePatterns.entrySet()) {
         IFileProcessor proc = procEnt.getValue();
         Layer l = proc.getDefinedInLayer();
         if (l != null && l.removed)
            proc.setDefinedInLayer(null);
      }
   }
/**
    * We associate some languages - even those that are static, with a "defined in layer" so we can determine how that language is applied to files for a given system
    * When the system is destroyed, we need to remove that association.
    */
We associate some languages - even those that are static, with a "defined in layer" so we can determine how that language is applied to files for a given system
When the system is destroyed, we need to remove that association.
We associate some languages - even those that are static with a " defined in layer " so we can determine how that language is applied to files for a given system When the system is destroyed we need to remove that association .
private void cleanupFileProcessors() {
      for (Map.Entry<String,IFileProcessor[]> procEnt:fileProcessors.entrySet()) {
         IFileProcessor[] procList = procEnt.getValue();
         for (IFileProcessor proc:procList) {
            Layer l = proc.getDefinedInLayer();
            if (l != null && l.removed)
               proc.setDefinedInLayer(null);
         }
      }
      for (Map.Entry<Pattern,IFileProcessor> procEnt:filePatterns.entrySet()) {
         IFileProcessor proc = procEnt.getValue();
         Layer l = proc.getDefinedInLayer();
         if (l != null && l.removed)
            proc.setDefinedInLayer(null);
      }
   }
private void cleanupFileProcessors ( ) { for ( Map . Entry < String , IFileProcessor [ ] > procEnt : fileProcessors . entrySet ( ) ) { IFileProcessor [ ] procList = procEnt . getValue ( ) ; for ( IFileProcessor proc : procList ) { Layer l = proc . getDefinedInLayer ( ) ; if ( l != null && l . removed ) proc . setDefinedInLayer ( null ) ; } } for ( Map . Entry < Pattern , IFileProcessor > procEnt : filePatterns . entrySet ( ) ) { IFileProcessor proc = procEnt . getValue ( ) ; Layer l = proc . getDefinedInLayer ( ) ; if ( l != null && l . removed ) proc . setDefinedInLayer ( null ) ; } }
We associate some languages - even those that are static, with a "defined in layer" so we can determine how that language is applied to files for a given system
 When the system is destroyed, we need to remove that association.
We associate some languages - even those that are static with a " defined in layer " so we can determine how that language is applied to files for a given system When the system is destroyed we need to remove that association .