Bug 529898 - [content assist] Switch completion mode from INSERT to REPLACE
Summary: [content assist] Switch completion mode from INSERT to REPLACE
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Core (show other bugs)
Version: 5.1.0   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on: 428752
Blocks:
  Show dependency tree
 
Reported: 2018-01-16 11:02 EST by Laurent Fasani CLA
Modified: 2020-07-07 01:05 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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