Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext Hover Documentation [Duplicate -
Xtext Hover Documentation [Duplicate - [message #1822040] Wed, 26 February 2020 09:34
Loredana Hozan is currently offline Loredana HozanFriend
Messages: 20
Registered: January 2019
Junior Member
Hello, i have the following grammar:
	('data-dictionary' '{'
	('entity-catalog' '{'
	AttributeSimpleType | AttributeEntityType 
        name=ID funcName=STRING '{'
	(type=FeatureAttributeType | type=FeatureEntityType)
	'entity' (attribute=[AttributeEntityType|ID]|attribute=[AttributeEntityType|GENERAL_FQN]);

I have implemented the IEObjectDocumentationProvider and DefaultEObjectHoverProvider, but when i hover over a feature instead of giving me the doc. of the feature it gives me the doc of the attribute which is contained in the data-dictionary. The object that is passed to the getDocumentation method is of type Attribute. I have debugged and noticed in the EObjectAtOffsetHelper inside the resolveCrossReferencedElement method, the type of the object passed is Feature, but there is a check for the object's representation in the model instance. Since the selected Feature is present as an Attribute the returned object is the Attribute. Is there a way to get the doc of the feature instead of the attribute without having to override that method and get rid of the check?

[Updated on: Wed, 26 February 2020 09:53]

Report message to a moderator

Previous Topic:Xtext Hover Documentation [Duplicate -
Next Topic:Xtext Hover Documentation
Goto Forum:

Current Time: Thu Oct 22 22:00:51 GMT 2020

Powered by FUDForum. Page generated in 0.02282 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top