system/src/sc/lang/java/JavaModel.java
public void updateLayeredModel(ExecutionContext ctx, boolean updateInstances, UpdateInstanceInfo updateInfo) {
      if (!isStarted())
         ParseUtil.initAndStartComponent(this);
      // Need to get the per-layer model type here as we need to merge the models one at a time when adding multiple layers at the same time.
      BodyTypeDeclaration modelType = getLayerTypeDeclaration();
      BodyTypeDeclaration prevType = modelType.getModifiedType();
      if (prevType != null)
         prevType.updateType(modelType, ctx, TypeUpdateMode.Add, updateInstances, updateInfo);
      else
         System.err.println("*** No modified type for updateLayeredModel: " + modelType);
   }
/** Adds a new layer onto an existing model. */
Adds a new layer onto an existing model.
Adds a new layer onto an existing model .
public void updateLayeredModel(ExecutionContext ctx, boolean updateInstances, UpdateInstanceInfo updateInfo) {
      if (!isStarted())
         ParseUtil.initAndStartComponent(this);
      BodyTypeDeclaration modelType = getLayerTypeDeclaration();
      BodyTypeDeclaration prevType = modelType.getModifiedType();
      if (prevType != null)
         prevType.updateType(modelType, ctx, TypeUpdateMode.Add, updateInstances, updateInfo);
      else
         System.err.println("*** No modified type for updateLayeredModel: " + modelType);
   }
public void updateLayeredModel ( ExecutionContext ctx , boolean updateInstances , UpdateInstanceInfo updateInfo ) { if ( ! isStarted ( ) ) ParseUtil . initAndStartComponent ( this ) ; BodyTypeDeclaration modelType = getLayerTypeDeclaration ( ) ; BodyTypeDeclaration prevType = modelType . getModifiedType ( ) ; if ( prevType != null ) prevType . updateType ( modelType , ctx , TypeUpdateMode . Add , updateInstances , updateInfo ) ; else System . err . println ( "*** No modified type for updateLayeredModel: " + modelType ) ; }
Adds a new layer onto an existing model.
Adds a new layer onto an existing model .
// Need to get the per-layer model type here as we need to merge the models one at a time when adding multiple layers at the same time.