Bug 429099 - [templates] Add ${assist} to trigger code-assist from a template expansion
Summary: [templates] Add ${assist} to trigger code-assist from a template expansion
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.2   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-25 17:47 EST by David Harkness CLA
Modified: 2014-10-03 10:28 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Harkness CLA 2014-02-25 17:47:53 EST
Use case: I have a template that inserts an annotation that takes a single parameter chosen from a class's constants. I've omitted the part that adds the necessary imports.

    @SuppressFBWarnings(FindBugs.${cursor})

With this bound to "fb" you must enter this sequence:

    type `fb`
    type `ctrl-space`
    choose "fb template"
    type `ctrl-space` to trigger code-assist on "FindBugs."
    select constant

I would like the code-assist to trigger automatically and display the possible constants immediately.

Note: There's a placeholder that displays a popup selection list that looks like code-assist, but the values must be listed in the template itself. I want the values to be pulled from the FindBugs class.
Comment 1 Srikanth Sankaran CLA 2014-09-10 23:00:15 EDT
Pass to JDT/UI for comment. Does this belong in JDT/text instead ?