#4717 closed defect (fixed)
Cannot modify hidden classes
Reported by: | Martin Sjölund | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | high | Milestone: | 1.13.0 |
Component: | OMEdit | Version: | |
Keywords: | Cc: |
Description
ModelicaServices and Complex now cannot be shown or unloaded, which makes reading their documentation hard. We need some option to show hidden packages, for example a context menu in the libraries browser that you can tick on and off when you want to be able to view these.
Change History (6)
comment:1 by , 7 years ago
Status: | new → accepted |
---|
comment:2 by , 7 years ago
follow-up: 4 comment:3 by , 7 years ago
They are hidden because OMEdit now supports annotation (Protection(access=Access.hide)
.
comment:4 by , 7 years ago
Replying to adeas31:
They are hidden because OMEdit now supports
annotation (Protection(access=Access.hide)
.
You are right. In fact, I tracked down when this annotation was first introduced for Complex and ModelicaServices, and that was in a commit on 27 July 2010, when the annotation had not yet been standardized. Personally, don't think that was a good idea. I posted a comment on github on the topic.
comment:6 by , 7 years ago
Tools->Options->General->Libraries Browser->Show Hidden Classes (Ignores the annotation(Protection(access = Access.hide))
IMHO there should be no hidden packages at all in a Modelica tool. In particular, hidden stuff has no place in an open tool :)
Even newbies should clearly understand that Complex numbers ar not coming out of vacuum due to some magic, but are just records with overloaded operators as explained in the specification. Ditto for functions and constants defined by ModelicaServices.
My suggestion is to always show these packages in a dedicated area of the library window where service libraries are shown.