Bug 290353

Summary: [content assist] want smarter carriage return handling in code completion
Product: [Eclipse Project] JDT Reporter: pengcheng <pengchenglee>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert
Version: 3.6   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description pengcheng CLA 2009-09-24 00:14:03 EDT
Have defined this method:
        TreeItem addImageItem(TreeItem root, String title, AbstractImagePrototype imageProto)
and want to use it:
        addImageItem(root, "Inbox", images.inbox());
1. type:  addImageItem(
    get:  addImageItem()
2. type:  addImageItem(root, ")
    get:  addImageItem(root, "<cursor here>")
3. type:  Inbox
    then carriage return
    get:  addImageItem(root, "Inbox")<cursor here>
    or sometimes get:  addImageItem(root, "Inbox"<cursor here>)
    
    WANT:  addImageItem(root, "Inbox"<cursor here>)
    WANT if then carriage return again, get:
                 addImageItem(root, "Inbox")<cursor here>
                 
4. continue:  addImageItem(root, "Inbox", images.<cursor here>)
    select "inbox()" from the code completion list
    then carriage return
    get:  addImageItem(root, "Inbox", images.inbox()<cursor here>)
    then carriage return again
    get:  addImageItem(root, "Inbox", images.inbox()<line break>
				<cursor here>)
	
	WANT:  addImageItem(root, "Inbox", images.inbox())<cursor here>
    
That might make typing using a notebook keyboard more efficient & enjoyable. Thanks.