Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2468


Ignore:
Timestamp:
11/05/09 13:20:30 (14 years ago)
Author:
mkommend
Message:

renamed method for determining default viewable types in ContentAttribute (ticket #771)

Location:
trunk/sources/HeuristicLab.MainForm/3.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm/3.2/ContentAttribute.cs

    r2466 r2468  
    5858    }
    5959
    60     public static IEnumerable<Type> GetTypesWhereViewTypeIsDefaultView(Type viewType) {
     60    public static IEnumerable<Type> GetDefaultViewableTypes(Type viewType) {
    6161      ContentAttribute[] attributes = (ContentAttribute[])viewType.GetCustomAttributes(typeof(ContentAttribute), true);
    6262      return from a in attributes
  • trunk/sources/HeuristicLab.MainForm/3.2/MainFormManager.cs

    r2467 r2468  
    5151          foreach (Type viewType in types) {
    5252            views.Add(viewType);
    53             foreach (Type contentType in ContentAttribute.GetTypesWhereViewTypeIsDefaultView(viewType)) {
     53            foreach (Type contentType in ContentAttribute.GetDefaultViewableTypes(viewType)) {
    5454              if (defaultViews.ContainsKey(contentType))
    5555                throw new ArgumentException("DefaultView for type " + contentType + " is " + defaultViews[contentType] +
Note: See TracChangeset for help on using the changeset viewer.