Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#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 Adeel Asghar, 7 years ago

Status: newaccepted

comment:2 by Francesco Casella, 7 years ago

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.

comment:3 by Adeel Asghar, 7 years ago

They are hidden because OMEdit now supports annotation (Protection(access=Access.hide).

in reply to:  3 comment:4 by Francesco Casella, 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:5 by Adeel Asghar, 7 years ago

Resolution: fixed
Status: acceptedclosed

Done in 8f5caa/OMEdit.

comment:6 by Adeel Asghar, 7 years ago

Tools->Options->General->Libraries Browser->Show Hidden Classes (Ignores the annotation(Protection(access = Access.hide))

Note: See TracTickets for help on using tickets.