Free cookie consent management tool by TermsFeed Policy Generator

Opened 12 years ago

Closed 12 years ago

#1794 closed enhancement (done)

The MainformManager does not take the interfaces hierarchy correctly into account

Reported by: mkommend Owned by: abeham
Priority: medium Milestone: HeuristicLab 3.3.7
Component: MainForm Version: 3.3.7
Keywords: Cc:


Currently the MainFormManager checks all implemented, but not inherited, interfaces for a specific type to determine its default view. A problem occurs if an interface implements another interface and both interfaces have a default view associated, as both interfaces are returned by Type.GetInterfaces. Therefore the interface hierarchy must be checked to return only the default view for the most specific interface.

Example: UserDefinedProblem implements IHeuristicProblem and is a subclass of ParameterizedNamedItem. IHeuristicProblem implements IProblem and for both interfaces default views are defined. Therefore the MainFormManager cannot decide, without analyzing the interface hierarchy, which default view to return (ProblemView or HeuristicProblemView).

Change History (5)

comment:1 Changed 12 years ago by mkommend

  • Status changed from new to accepted

comment:2 Changed 12 years ago by mkommend

  • Milestone changed from HeuristicLab 3.3.x Backlog to HeuristicLab 3.3.7

comment:3 Changed 12 years ago by mkommend

  • Owner changed from mkommend to abeham
  • Status changed from accepted to reviewing

r7587: Implemented analysis of interface hierarchies in MainFormManager for default view discovery.

comment:4 Changed 12 years ago by abeham

  • Status changed from reviewing to readytorelease

works well, code change is small enough, thx

comment:5 Changed 12 years ago by mkommend

  • Resolution set to done
  • Status changed from readytorelease to closed
  • Version changed from 3.3.6 to 3.3.7
Note: See TracTickets for help on using tickets.