Opened 8 years ago

Closed 8 years ago

#4401 closed enhancement (fixed)

OMEdit: Open component class in Diagram View with [Shift] + [Enter]

Reported by: Jan Kokert Owned by: Adeel Asghar
Priority: normal Milestone: 1.12.0
Component: OMEdit Version: v1.12.0
Keywords: open class diagramview Cc:

Description

To open a component class in the DiagramView currently one has to right click and choose "Open Class".
What about doing that faster with [Shift] + [Enter] and [Shift] + double click?

BTW: A non-modified double click opens the Parameters.

Change History (7)

comment:1 by Adeel Asghar, 8 years ago

Milestone: Future1.12.0
Resolution: fixed
Status: newclosed

[Shift] + [Enter] would be tricky since you could have multiple objects selected.
e6df7c1/OMEdit adds the code to open the component class via [Shift] + double click.

comment:2 by Jan Kokert, 8 years ago

Unfortunately, the new implementation only works partially.

Consider the example:
Modelica.Blocks.Examples.PID_Controller

Integrator, PI and Speedsensor can be only opened if we double-click exactly on the text label ("I" and "PI" and "w"). Torque can be always opened.

I guess it is realted to extened or to a merge of different annotions in different layers so that >getParentComponent() fails somehow...

I hope this analysis helps to fix that.

comment:3 by Jan Kokert, 8 years ago

Resolution: fixed
Status: closedreopened

comment:4 by Jan Kokert, 8 years ago

[Shift] + [Enter] would be tricky since you could have multiple objects selected.

For multiple objects, this feature is useless indeed. But we could check if only one model is selected and then we could allow opening it with [Shift] + [Enter]. That would be nice!

comment:5 by Adeel Asghar, 8 years ago

I have fixed the shift + double click and added support for shift + enter when only one component is selected. da3af12/OMEdit.

Last edited 8 years ago by Adeel Asghar (previous) (diff)

comment:6 by Jan Kokert, 8 years ago

Well done - I already tried this feature in the latest Nightly Build and it comes very handy!

comment:7 by Adeel Asghar, 8 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.