Bug 529898

Summary: [content assist] Switch completion mode from INSERT to REPLACE
Product: [Modeling] Sirius Reporter: Laurent Fasani <laurent.fasani>
Component: CoreAssignee: Project inbox <sirius.core-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: julien.dupont, pierre-charles.david
Version: 5.1.0Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Bug Depends on: 428752    
Bug Blocks:    

Description Laurent Fasani CLA 2018-01-16 11:02:12 EST
This is the top level ticket for all scenarios that would be fixed using the jface PROPOSAL_REPLACE mode instead of PROPOSAL_INSERT.

Below are three typical scenarios that should be fixed with REPLACE mode. For the example, domain class and aql interpreter are used but there are, in fact, many other sub scenario when 
* using completion for method, variable
* using other interpreter: service, variable, feature, acceleo3, others?

scenario1:
* type aql:self.eAllContents(Ecore::E<Ctrl+SPACE>)
* select ecore::EAttribute
-> the "Ecore::E" part should be replaced by the one with right case.
-> the expected result is "aql:self.eAllContents(ecore::EAttribute)

scenario2:
* type aql:self.eAllContents(ecore::<Ctrl+SPACE>EAttribute)
* content assist is called after ecore:: and select EClass
-> the expected result is "aql:self.eAllContents(ecore::EClass)

scenario3:
* type aql:self.eAllContents(EAtt<Ctrl+SPACE>)
* content assist is called after "EAtt" and select EAttribute
-> the "EAtt" part should be replaced by the full qualified domain type.
-> the expected result is "aql:self.eAllContents(ecore::EAttribute)
Comment 1 Laurent Fasani CLA 2018-01-30 12:01:28 EST
scenario1 is handled by Bug 428752