system/src/sc/lang/java/ModelUtil.java
public static boolean matchesLayerFilter(Object type, Collection<CodeType> codeTypes) {
      if (!(type instanceof BodyTypeDeclaration))
         return codeTypes.contains(CodeType.Framework);

      BodyTypeDeclaration typeDecl = (BodyTypeDeclaration) type;
      while (typeDecl != null) {
         if (typeDecl.getLayer().matchesFilter(codeTypes))
            return true;
         typeDecl = typeDecl.getModifiedType();
      }
      return false;
   }
/**
    * Used to filter objects in the UI.  Returns true if the type provided has any definitions in a layer with the
    * given code types and functions
    */
Used to filter objects in the UI.  Returns true if the type provided has any definitions in a layer with the
given code types and functions
Used to filter objects in the UI . Returns true if the type provided has any definitions in a layer with the given code types and functions
public static boolean matchesLayerFilter(Object type, Collection<CodeType> codeTypes) {
      if (!(type instanceof BodyTypeDeclaration))
         return codeTypes.contains(CodeType.Framework);
      BodyTypeDeclaration typeDecl = (BodyTypeDeclaration) type;
      while (typeDecl != null) {
         if (typeDecl.getLayer().matchesFilter(codeTypes))
            return true;
         typeDecl = typeDecl.getModifiedType();
      }
      return false;
   }
public static boolean matchesLayerFilter ( Object type , Collection < CodeType > codeTypes ) { if ( ! ( type instanceof BodyTypeDeclaration ) ) return codeTypes . contains ( CodeType . Framework ) ; BodyTypeDeclaration typeDecl = ( BodyTypeDeclaration ) type ; while ( typeDecl != null ) { if ( typeDecl . getLayer ( ) . matchesFilter ( codeTypes ) ) return true ; typeDecl = typeDecl . getModifiedType ( ) ; } return false ; }
Used to filter objects in the UI.
Used to filter objects in the UI .