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 - API Review: Support for custom camel case for QuerySupport
Summary: API Review: Support for custom camel case for QuerySupport
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: apireviews
URL:
Keywords: API, API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2015-04-14 14:34 UTC by Tomas Zezula
Modified: 2015-04-15 11:20 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
Patch file (46.61 KB, application/octet-stream)
2015-04-14 14:34 UTC, Tomas Zezula
Details

Note You need to log in before you can comment on or make changes to this bug.
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