Opened 11 years ago

Closed 7 years ago

#2249 closed defect (fixed)

Support new annotation DocumentationClass

Reported by: Martin Sjölund Owned by: Adeel Asghar
Priority: high Milestone: 1.12.0
Component: OMEdit Version: trunk
Keywords: Cc:

Description

Support new annotation DocumentationClass

Change History (21)

comment:1 by Adeel Asghar, 11 years ago

Resolution: fixed
Status: newclosed

Supported in r16478.

comment:2 by Martin Sjölund, 11 years ago

Resolution: fixed
Status: closedreopened

No it's not. It does not open the info layer when I double-click any class inside the DocumentationClass package.

in reply to:  2 comment:3 by Adeel Asghar, 11 years ago

Replying to sjoelund.se:

No it's not. It does not open the info layer when I double-click any class inside the DocumentationClass package.

Yeah my mistake. I was opening the text layer instead of info layer.
Note that diagram layer will also be opened with info layer.

comment:4 by Martin Sjölund, 11 years ago

Why? Rather have it full-screen info layer :)

in reply to:  4 comment:5 by Adeel Asghar, 11 years ago

Replying to sjoelund.se:

Why? Rather have it full-screen info layer :)

No, the GUI is not designed in that way. Also you can't do the navigation on the info layer then. We had it as full-screen earlier but then changed it the way it is now only to support forward & backward navigation.

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

But if I right-click a class and choose view documentation it works as I would expect the preferred view to work. (Right-click->View Class would open the layer and be another action :))

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

Replying to sjoelund.se:

But if I right-click a class and choose view documentation it works as I would expect the preferred view to work. (Right-click->View Class would open the layer and be another action :))

Yes true. This is because you explicitly chosen to view documentation. But when you double click on the class and it has either preferredView as info or DocumentationClass true we open the diagram view and the info layer. I like it this way. If you want to only see the info layer then I can fix it. It not a problem.

comment:8 by Martin Sjölund, 11 years ago

Yes, I think it would be good. Because when I now try to click the documentation I get tons of open models. Not what I want.

Also, ModelicaServices.UsersGuide is not handled (its children do not open documentation)

in reply to:  8 ; comment:9 by Adeel Asghar, 11 years ago

Replying to sjoelund.se:

Yes, I think it would be good. Because when I now try to click the documentation I get tons of open models. Not what I want.

Sorry, I agreed without thinking a lot. If we only open the documentation view on the double click then there is only one way left to open the other views which "view class" through context menu. I am not going to do this. You have to live with it.

Also, ModelicaServices.UsersGuide is not handled (its children do not open documentation)

Fixed it now. Thanks for the test. I was only checking the root parent and not the immediate parent.

in reply to:  9 ; comment:10 by Martin Sjölund, 11 years ago

Replying to adeas31:

Sorry, I agreed without thinking a lot. If we only open the documentation view on the double click then there is only one way left to open the other views which "view class" through context menu. I am not going to do this. You have to live with it.

Why? Who wants to modify the code of documentation classes directly? I mean, it is a read-only class...

in reply to:  10 comment:11 by Adeel Asghar, 11 years ago

Replying to sjoelund.se:

Replying to adeas31:

Sorry, I agreed without thinking a lot. If we only open the documentation view on the double click then there is only one way left to open the other views which "view class" through context menu. I am not going to do this. You have to live with it.

Why? Who wants to modify the code of documentation classes directly? I mean, it is a read-only class...

You think I only added support for the read-only classes? Also its not only about modifying classes. Users may also want to view them.

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

But they can do that. You need a better way of handling preferredView info. Because opening up useless classes is not much fun.

comment:13 by Martin Sjölund, 11 years ago

Milestone: 1.9.01.9.1

Postponed until 1.9.1

comment:14 by Martin Sjölund, 10 years ago

Milestone: 1.9.11.9.2

This ticket was not closed for 1.9.1, which has now been released. It was batch modified for milestone 1.9.2 (but maybe an empty milestone was more appropriate; feel free to change it).

comment:15 by Martin Sjölund, 10 years ago

Milestone: 1.9.21.9.3

Milestone changed to 1.9.3 since 1.9.2 was released.

comment:16 by Martin Sjölund, 9 years ago

Milestone: 1.9.31.9.4

Moved to new milestone 1.9.4

comment:17 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.5

Milestone pushed to 1.9.5

comment:18 by Martin Sjölund, 9 years ago

Milestone: 1.9.51.10.0

Milestone renamed

comment:19 by Martin Sjölund, 8 years ago

Milestone: 1.10.01.11.0

Ticket retargeted after milestone closed

comment:20 by Adeel Asghar, 8 years ago

Milestone: 1.11.01.12.0

Milestone changed to 1.12.0 since 1.11.0 was released.

comment:21 by Adeel Asghar, 7 years ago

Resolution: fixed
Status: reopenedclosed

Fixed in 6b6200/OMEdit.

Note: See TracTickets for help on using tickets.