Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2227 closed enhancement (fixed)

new menu item: "Open Modelica Library"

Reported by: Lennart Ochel Owned by: Adeel Asghar
Priority: high Milestone: 1.9.0
Component: OMEdit Version: trunk
Keywords: Cc:

Description

I use OMEdit without any pre-loaded libraries. In the case that I need one (e.g. MSL) it is annoying to click trough the directories until I am at $OPENMODELICALIBRARY. Maybe we should introduce a new menu entry next to “Open Modelica File(s)” called “Open Modelica Library”, which takes me directly to $OPENMODELICALIBRARY.
What do you think?

Change History (8)

comment:1 by Martin Sjölund, 12 years ago

Why not something like the dialogue box when we add libraries? $OPENMODELICALIBRARY is not a single directory, but a set of directories.

Anyway, the existing dialogue knows the names of all available Modelica libraries and presents a drop-down list.

comment:2 by Lennart Ochel, 12 years ago

You are right, that would be even better. I guess the „Open Modelica Library“ item should than display the dialogue box from Tools -> Options -> Libraries -> Add.

comment:3 by Adeel Asghar, 12 years ago

Why should we do that? Just use the “Open Modelica File(s)” and choose the package.mo of Modelica library.

in reply to:  description comment:4 by Lennart Ochel, 12 years ago

Replying to lochel:

In the case that I need one (e.g. MSL) it is annoying to click trough the directories until I am at $OPENMODELICALIBRARY.

A user (eg. me) do not always know where the libraries are.

comment:5 by Adeel Asghar, 12 years ago

Resolution: fixed
Status: newclosed

Added a new drop down menu in the File Menu which allows to load all the available libraries. r16282.

comment:6 by Martin Sjölund, 12 years ago

You need a refresh button (or making it a drow-down dialogue instead of a menu). I like to add libraries during OMEdit runtime :)

in reply to:  6 ; comment:7 by Adeel Asghar, 12 years ago

Replying to sjoelund.se:

You need a refresh button (or making it a drow-down dialogue instead of a menu). I like to add libraries during OMEdit runtime :)

Yes you can add the library now during the runtime but loading a library with different version is not possible.

in reply to:  7 comment:8 by Martin Sjölund, 12 years ago

Replying to adeas31:

Yes you can add the library now during the runtime but loading a library with different version is not possible.

No, if I apt-get install a new library while OMEdit is already running, the menu items do not update. You need to refresh the list :D

Note: See TracTickets for help on using tickets.