This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 251828

Summary: API Review: Support for custom camel case for QuerySupport
Product: editor Reporter: Tomas Zezula <tzezula>
Component: Parsing & IndexingAssignee: apireviews <apireviews>
Status: RESOLVED FIXED    
Severity: normal Keywords: API, API_REVIEW_FAST
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:
Attachments: Patch file

Description Tomas Zezula 2015-04-14 14:34:16 UTC
Created attachment 153191 [details]
Patch file

The Camel Case parser used in QuerySupport needs to be customisable as there is a different need for Camel Case in types and files.
The types camel case split point is a UpCase while for files the split point is UpCase, '.', '_','-'...

The patch resolves following:

1) Removes duplicates of camel case check and camel case parsing from various modules which were copied from jumpto but are now obsolete.

2) Adds QuerySupport.Query.Factory.setCamelCasePart and QuerySupport.Query.Factory.setCamelCaseSeparator to provide a way how to specify non default (types) camel case.
Comment 1 Tomas Zezula 2015-04-15 11:20:29 UTC
Fixed jet-main http://hg.netbeans.org/jet-main/rev/fdf6541f8326