Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#4983 closed defect (fixed)

The Documentation Browser is not updated when a different model is selected

Reported by: Francesco Casella Owned by: Adeel Asghar
Priority: critical Milestone: 1.13.0
Component: OMEdit Version:
Keywords: Cc:

Description

Steps to reproduce the issue

  • double click on model X in the Libraries Browser
  • click on the documentation view button: the corresponding documentation is displayed in the Documentation Browser
  • double-click on model Y in the Libraries Browser

The diagram (or textual view) of model Y is now displayed in the main window, but the documentation of model X is still shown in the Documentation Browser.

I'm not sure whether this is a bug or a feature. As far as I am concerned, I find this behaviour extremely confusing. In fact, this caused me to mess things up several times when developing documentation for a new library, because almost invariably I end up editing the wrong documentation layer.

I would strongly suggest to also update the documentation layer whenever a new model is selected in the main window.

Change History (2)

comment:1 by Adeel Asghar, 6 years ago

Resolution: fixed
Status: newclosed

I intentionally implemented it like this since this is an independent window. One can actually navigate to the documentation of other models and in that case we don't update the ModelWidget area.

Having said that I still agree that the behavior is a bit confusing. So I fixed in ba22c5a/OMEdit.

Note that now we are updating the documentation when the model is changed but we are not updating the model when documentation navigates to the documentation of another model.

in reply to:  1 comment:2 by Francesco Casella, 6 years ago

Replying to adeas31:

Note that now we are updating the documentation when the model is changed but we are not updating the model when documentation navigates to the documentation of another model.

That was exactly the behaviour I had in mind, thanks!

Note: See TracTickets for help on using tickets.