osate / osate2

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

Display AADLDoc for all elements #2075

Closed lwrage closed 4 years ago

lwrage commented 4 years ago

Summary

When adding AADLDoc comments to a record field there is no documentation shown when hovering over a field name in an AADL model.

Environment

lwrage commented 4 years ago

Hover text is provided via an IEObjectHoverProvider. The default implementation DefaultEObjectHoverProvider delegates to an IEObjectHoverDocumentationProvider that reads the AADLDoc (comment lines starting with --- immediately preceding the declaration). DefaultEObjectHoverProvider checks in method if the referenced object can have hover text by checking if the object has a qualified name. We should just allow any NamedElement to have hover text.