Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » outline tree view(i have problem in viewing outline using Xtext grammar <unnamed> are getting created)
outline tree view [message #1772532] Tue, 12 September 2017 05:05
krishna chaitanya is currently offline krishna chaitanyaFriend
Messages: 1
Registered: September 2017
Junior Member
i have some parser rules written in Xtext grammar i couldn't generate outline in proper hierarchy i am getting <unnamed><unnamed><unnamed>
should the change the code in grammar or any implementations could you please provide me some info.

i am sending my sample code here def_property is my main parser rule

Xtext grammar code:-


(superType=[def_slotted_exemplar])? Dpp


ui code for skeleton generation:-
override complete_define_property(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
super.complete_define_property(model, ruleCall, context, acceptor)
acceptor.accept(createCompletionProposal("_pragma(classify_level= basic, topic={topic}, usage={subclass})\nexemplar_name.define_property(:name ,


:name )
  • Attachment: stub.PNG
    (Size: 10.10KB, Downloaded 28 times)
Previous Topic:How to use BacktrackingLexerDocumentTokenSource
Next Topic:How to get images from other plug-in using PluginImageHelper
Goto Forum:

Current Time: Wed Sep 19 06:39:25 GMT 2018

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

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

Back to the top