﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6127	Improve drop-down menu for replaceable class	Francesco Casella	Adeel Asghar	"Please consider the attached test package. Enable replaceable support, load it, open the model {{{S1}}} and double-click on {{{m}}}

- {{{m.RM}}} has a default type {{{TestReplaceableComments.RM1}}}. This is not visible, so it seems that something's missing here. We should display the default type in grey as we do for the default values of parameters, see e.g. the value of {{{p}}} in the same window.
- the entries of the drop-down menu contain the Modelica code ""redeclare model RM = XXX"". Maybe it would be better to skip the ""redeclare model RM = "" part, and rather show the class names ''and their comments'', which normally contain useful information to identify what the class is good for
- the last item of the redeclarable classes is ""TestReplaceableComments.M.RM"". As far as I understand, according to [https://specification.modelica.org/v3.4/Ch5.html#composite-name-lookup Section 5.3.2] of the specification, this shouldn't be there, because composite name lookup inside non-package classes should be restricted to encapsulated elements.

Last, but not least, if you now open {{{S2}}} and double click on {{{m}}}, you should actually see that {{{RM}}} has already been redeclared to {{{RM2}}}, the same way {{{p}}} was changed to 5."	defect	closed	blocker	1.16.0	OMEdit		fixed		Adrian Pop Andrea Bartolini Adeel Asghar
