Beispiel #1
0
 public FolderOutputTarget(FolderModel model)
 {
     _model   = model;
     Metadata = new Dictionary <string, object>()
     {
         { "Namespace Provider", model.GetFolderOptions()?.NamespaceProvider() ?? true }
     };
 }
Beispiel #2
0
        private static IEnumerable <IOutputTargetRole> GetRolesInFolder(this IVisualStudioProject project, FolderModel folder)
        {
            var roles = folder.Roles.Select(x => new ProjectOutput(x.Name, x.Folder?.Name)).ToList <IOutputTargetRole>();

            return(roles);
        }
 public static bool HasFolderOptions(this FolderModel model)
 {
     return(model.HasStereotype("Folder Options"));
 }
Beispiel #4
0
 public bool Equals(FolderModel other)
 {
     return(Equals(_element, other?._element));
 }
        public static FolderOptions GetFolderOptions(this FolderModel model)
        {
            var stereotype = model.GetStereotype("Folder Options");

            return(stereotype != null ? new FolderOptions(stereotype) : null);
        }