Bug 89612

Summary: [5.0][content assist] Content Assist for annotation elements should add a '='
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, vkhomyackov
Version: 3.1Keywords: bugday, helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 89602    
Bug Blocks:    

Description Markus Keller CLA 2005-03-30 12:20:58 EST
I20050330-0500

public class Try {
    @Tag(/*ContentAssist*/)
    void n() {}
}

@interface Tag {
    String name() default "name";
    String value();
}

- execute content assist where indicated above
-> expected: proposal 'value' inserts 'value='
-> was: inserts just 'value'

BTW: content assist after 'value=' does currently not work (bug 89602).
Comment 1 Dani Megert CLA 2005-03-30 12:23:38 EST
time permitting for M7
Comment 2 Dani Megert CLA 2005-05-25 18:09:28 EDT
Setting to remind until dependent bug has been fixed.
Comment 3 Tom Hofmann CLA 2005-05-31 07:15:43 EDT
reopening
Comment 4 Tom Hofmann CLA 2005-05-31 07:18:03 EDT
We don't get any proposals for an empty prefix, currently (consistent with code
assist behavior in other situations). However, '=' should be included in the
trigger chars for the annotation element reference, which would be an easy fix.

Low priority for 3.1.
Comment 5 Dani Megert CLA 2005-05-31 07:31:08 EDT
not for 3.1
Comment 6 Victor Homyakov CLA 2012-03-05 06:25:48 EST
Bump. Still present in 3.7 - will anybody finally fix it? In my everyday work after most of annotation properties I should manually type ="" (equal sign and double quotes for string value).
Comment 7 Dani Megert CLA 2012-03-12 08:29:41 EDT
(In reply to comment #6)
> Bump. Still present in 3.7 - will anybody finally fix it? In my everyday work
> after most of annotation properties I should manually type ="" (equal sign 
> and double quotes for string value).

We won't work on this bug but accept a high quality patch.