Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 364705

Summary: ProposalProvider does not propose braces if using xbase
Product: [Modeling] TMF Reporter: Andreas Muelder <Andreas.Muelder>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: sven.efftinge
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Andreas Muelder CLA 2011-11-24 06:23:04 EST
Build Identifier: 20110916-0149

If a grammar is derived from XBase, the proposal provider does not provide braces 
anymore. ( '{', '(', '[' .... ) 


	


Reproducible: Always

Steps to Reproduce:
1. Create a new Grammar derived from XBase:
2. Create a simple model 
Model:	{Model} 'model' '{' '}' ;	
3. In the runtime editor, put the cursor after 'model' and hit CTRL + space
Comment 1 Andreas Muelder CLA 2011-11-24 06:44:22 EST
The reason for that is the method XBaseProposalProvider#isKeywordWorthyToPropose()
It filters all keywords with a length <= 1. What is the intention for that?

Overriding this method in my own ProposalProvider does work for me.
Comment 2 Sven Efftinge CLA 2011-11-24 06:50:13 EST
Sorry, I forgot about it.
Comment 3 Karsten Thoms CLA 2017-09-19 18:07:38 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 18:17:14 EDT
Closing all bugs that were set to RESOLVED before Neon.0