public FolderOutputTarget(FolderModel model) { _model = model; Metadata = new Dictionary <string, object>() { { "Namespace Provider", model.GetFolderOptions()?.NamespaceProvider() ?? true } }; }
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")); }
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); }