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 , 8 years ago
Milestone: | Future → 1.12.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:2 by , 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 , 8 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:4 by , 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 , 8 years ago
I have fixed the shift + double click and added support for shift + enter when only one component is selected. da3af12/OMEdit.
comment:6 by , 8 years ago
Well done - I already tried this feature in the latest Nightly Build and it comes very handy!
comment:7 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
[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.