Opened 12 years ago
Last modified 3 years ago
#2132 assigned defect
getComponentAnnotations should evaluate the parameters
Reported by: | Adeel Asghar | Owned by: | Adrian Pop |
---|---|---|---|
Priority: | blocker | Milestone: | 1.19.0 |
Component: | Interactive Environment | Version: | trunk |
Keywords: | Cc: | Francesco Casella, Martin Sjölund, Per Östlund |
Description
getComponentAnnotations should evaluate the parameters inside the annotations and return the correct annotations result.
For example,
loadModel(Modelica) getComponentAnnotations(Modelica.Mechanics.MultiBody.World)
true {{Placement(true,0.0,0.0,84.0,-16.0,116.0,16.0,0.0,0.0,0.0,-,-,-,-,0.0)},{},{Dialog(error)},{Dialog(error)},{},{},{},{Dialog(error)},{},{Dialog(error)},{},{Dialog(error)},{Dialog(error)},{Dialog(error)},{Dialog(error)},{Dialog(error)},{Dialog(error)},{Dialog(error)},{Dialog(error)},{Dialog(error)},{Dialog(error)},{Dialog(error)},{Dialog(error)},{Dialog("Defaults","Parameters",true,false,"",false)},{Dialog("Defaults","Parameters",true,false,"",false)},{Dialog("Defaults","Parameters",true,false,"",false)},{Dialog("Defaults","Parameters",true,false,"",false)},{Dialog("Defaults","Parameters",true,false,"",false)},{Dialog("Defaults","Parameters",true,false,"",false)},{Dialog("Defaults","Parameters",true,false,"",false)},{Dialog("Defaults","Parameters",true,false,"",false)},{Dialog("Defaults","Parameters",true,false,"",false)},{Dialog("Defaults","Parameters",true,false,"",false)},{Dialog("Defaults","Parameters",true,false,"",false)},{Dialog("Defaults","Parameters",true,false,"",false)},{Dialog("Defaults","Parameters",true,false,"",false)},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}}
Change History (19)
comment:1 by , 12 years ago
Priority: | high → critical |
---|
comment:3 by , 10 years ago
Milestone: | 1.9.1 → 1.9.2 |
---|
This ticket was not closed for 1.9.1, which has now been released. It was batch modified for milestone 1.9.2 (but maybe an empty milestone was more appropriate; feel free to change it).
comment:4 by , 10 years ago
Milestone: | 1.9.2 → 1.9.3 |
---|
Milestone changed to 1.9.3 since 1.9.2 was released.
comment:6 by , 9 years ago
Cc: | added |
---|---|
Owner: | changed from | to
Status: | new → assigned |
The same behavior is experienced when the code contains some tool specific annotations. See #3655.
comment:10 by , 8 years ago
Milestone: | 1.11.0 → 1.12.0 |
---|
Milestone moved to 1.12.0 due to 1.11.0 already being released.
comment:11 by , 7 years ago
Milestone: | 1.12.0 → 1.13.0 |
---|---|
Priority: | critical → blocker |
I guess it's finally time to address this.
@adrpo, can we have this in 1.13.0 together with replaceable support? Otherwise, please change the milestone to 2.0.0
comment:12 by , 6 years ago
Milestone: | 1.13.0 → 1.14.0 |
---|
Will implement this in 1.14.0, once the new-front-end-based API is stable.
comment:14 by , 5 years ago
Milestone: | 1.14.0 → 1.15.0 |
---|
Releasing 1.14.0 which is stable and has many improvements w.r.t. 1.13.2.
This issue, previously marked as blocker for 1.14.0, is rescheduled to 1.15.0
comment:15 by , 5 years ago
Milestone: | 1.15.0 → 1.16.0 |
---|
Release 1.15.0 was scrapped, because replaceable support eventually turned out to be more easily implemented in 1.16.0. Hence, all 1.15.0 tickets are rescheduled to 1.16.0
This functionaly is require in order to get the correct results for the GUI in the case of models with conditional connectors, which is crucial in order to get a meaningful rendering of the MSL in OMEdit. It is also useful for the Enable annotation, which is often used in MSL to help the end user setting only those parameters that make sense to set. The lack of support for such functionality might lead to a very confusing appearance of many models in the MSL, whose interface was designed with such features in mind.
I would then recommend to fix it with high priority, as all the infrastructure in OMEdit is now ready to handle this correctly.