osate / osate2

Open Source AADL2 Tool Environment
http://osate.org
Eclipse Public License 2.0
35 stars 8 forks source link

Text hover doesn't work for cross references in annexes #2876

Closed lwrage closed 12 months ago

lwrage commented 12 months ago

Summary An annex library or subclause can reference, for example, a property. Hovering over the reference should show the property's AADL doc comment, but it doesn't show anything.

Expected behavior Show hover text.

Actual behavior No hover text shown.

Desktop (please complete the following information):

lwrage commented 12 months ago

The issue is in code that finds the xtext node for an annex element. This is handled correctly for "go to definition" via ctrl+click and needs to be fixed separately for hover. There may be other places that need a similar fix (mark occurrence?, rename?).