Bug 469115

Summary: Support more snippet locations
Product: z_Archived Reporter: Johannes Dorn <johannes.dorn>
Component: RecommendersAssignee: Project inbox <recommenders-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: sewe
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Johannes Dorn CLA 2015-06-02 07:45:17 EDT
We currently don't support two java partitions which correspond to locations where the snipmatch search can be triggered.

These are JAVA_STRING and JAVA_CHARACTER. 

e.g.
-setText("$")

-setChar('$')

Triggering snipmatch search here won't find any snippets.

It might be worthwhile to support these locations and also allow snippets to be exclusive to them. I can imagine to have some unicode snippets that enter the correct code.

With Bug 468756 we do support snippets to be applied in comments if they have the FILE location. We may want to change it, so that comments have their own locations.