Opened 9 years ago

Last modified 3 years ago

#3847 assigned enhancement

Feature Request: Complete as you Type Class Member Drop-Down List

Reported by: stephan.fevrier@… Owned by: Anatoly Trosinenko
Priority: high Milestone:
Component: OMEdit Version: v1.10.0-dev-nightly
Keywords: Autocomplete, code view, drop-down, class members Cc:

Description

As a modeling user that cannot memorize all class structures of the Modelica Library Classes, a class member drop-down list feature like the one you find in programming environments like MS Visual Studio would be very helpful for the OMEdit modeling code view.
Whenever you type a full-stop after a class name, a drop-down list would appear, helping you to auto-complete your package name, class variables, or function names as you type.

Change History (11)

comment:1 by Christoph <buchner@…>, 9 years ago

+1, autocompletion would be very useful when using OMEdit.

Additionally, I wonder what the best way would be to provide indices (e.g. ctags?) to other editors (e.g. the Atom Modelica language plugin), so they too can provide autocompletion of your Modelica code..

comment:3 by Adeel Asghar, 6 years ago

comment:4 by Francesco Casella, 6 years ago

Milestone: Future1.14.0

You may try tomorrow's nightly build

comment:5 by Francesco Casella, 6 years ago

Component: FrontendOMEdit
Owner: changed from somebody to Anatoly Trosinenko
Status: newassigned

Thanks to Anatolij Trosinenko, we now have a first working version of this feature in the 1.14.0 nightly build. Please try it and report.

comment:6 by Francesco Casella, 6 years ago

I think the most important missing feature now is to take care of inheritance. For example, if you type Modelica.Media.Interfaces.PartialTwoPhaseMedium. (which is something I do often, BTW), only the classes defined or re-declared there show up. In fact, there are many others defined or re-defined in the ancestor classes Modelica.Media.Interfaces.PartialPureSubstance and Modelica.Media.Interfaces.PartialMedium.

If the drop-down list showed up also the classes defined in there, it would be a real bonus, because it's quite hard, particularly for beginner users of Modelica.Media, to figure out what is defined and where.

comment:7 by Adrian Pop, 6 years ago

For this we need to involve the NF (new frontend) quite a bit as faking instantiation on the AST via OMEdit is not recommended.

comment:8 by Francesco Casella, 5 years ago

Milestone: 1.14.01.16.0

Releasing 1.14.0 which is stable and has many improvements w.r.t. 1.13.2. This issue is rescheduled to 1.16.0

comment:9 by Francesco Casella, 4 years ago

Milestone: 1.16.01.17.0

Retargeted to 1.17.0 after 1.16.0 release

comment:10 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:11 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.