Bug 113096 - [JFace] Consolidate the various implementations/copies of CamelCase support
Summary: [JFace] Consolidate the various implementations/copies of CamelCase support
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks: 90170 176017
  Show dependency tree
 
Reported: 2005-10-19 11:12 EDT by Philipe Mulet CLA
Modified: 2019-09-30 17:08 EDT (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2005-10-19 11:12:32 EDT
Build 3.1.0

This is a reminder to keep JDT informed if CamelCase support is introduced in
the platform. Note that we have defined CharOperation#camelCaseMatch(...)
operations, and this is intended to be in JDT/Core as leveraged in search &
codeassist which are headless operations.

JDT is planning to support CamelCase for 3.2
Comment 1 Kim Horne CLA 2005-10-19 13:28:12 EDT
I'm not sure who on UI should be looking at this.  
Comment 2 Michael Van Meekeren CLA 2005-10-24 10:08:59 EDT
I've been thinking about this and I'm not sure that it makes as much sense in
general as it does for Java.
Comment 3 Michael Van Meekeren CLA 2005-11-08 10:11:01 EST
Actually it's not just Java (certainly a general development issue).  We have a
number of bugs in other areas requesting CamelCase as well.  
Comment 4 Michael Van Meekeren CLA 2005-11-08 10:20:24 EST
Susan, Doug - can we discuss what we might want to provide in a general sense
here.  NOTE, I'm not necessarily talking about 3.2 just what would we do.  Also
I believe JDT or others might be willing to provide patches.
Comment 5 Susan McCourt CLA 2005-11-08 14:41:57 EST
I'll be looking at CamelCase from the standpoint of bug #94382 (Open 
Resource/Open Type sharing code) during this milestone (M4).
Comment 6 Philipe Mulet CLA 2005-11-09 03:50:06 EST
We have defined an API in JDT/Core: CharOperation#camelCaseMatch(...).
It could be pushed down into the platform, but note that we need it in headless
land. Also, our implementation is char[] based for performance reasons, and we
would want to preserve that (i.e. there could be several versions of the same
method, but one efficient implementation for char[]). Given CamelCase is not
well specified, it could be problematic to come up with several implementations,
which would likely not be exactly the same.
Comment 7 Susan McCourt CLA 2006-07-10 17:25:43 EDT
moving Open Resource related bugs to Szymon.
Szymon, please move between you and Krystof as needed.  Let me know if you have any questions.  These are all the bugs I had related to OpenResource.
Comment 8 Szymon Brandys CLA 2006-09-12 05:52:17 EDT
Krzysztof is responsible for camel case support in the platform.
Comment 9 Frederic Fusier CLA 2006-09-19 09:52:18 EDT
JDT/Core implementation for CamelCase is done in org.eclipse.jdt.core.search.SearchPattern class (camelCaseMatch methods)
Comment 10 Tod Creasey CLA 2006-10-03 09:44:39 EDT
This support is currently in org.eclipse.ui.dialogs in the workbench rather than in JFace.
Comment 11 Krzysztof Michalski CLA 2006-10-03 10:11:03 EDT
CamelCase is done in org.eclipse.ui.workbench inside classes: org.eclipse.ui.dialogs.SearchPattern and org.eclipse.ui.dialogs.CharOperation. 
Comment 12 Krzysztof Michalski CLA 2006-11-06 06:11:15 EST
CamelCase works properly for open resource dialog. All functionality for camelCase filtering is inside org.eclipse.ui.dialogs.SearchPattern .
Comment 13 Markus Keller CLA 2007-05-24 08:53:55 EDT
Unfortunately, we were not aware of the fact that Platform/UI just copied and modified JDT/Core's implementation, and now it's too late to fix this bug for 3.3.

Reopening, since this needs to be cleaned up for 3.4. The diverging implementations of CamelCase support have already caused a lot of grief (see e.g. bug 176017).
Comment 14 Markus Keller CLA 2007-05-24 09:31:55 EDT
Moreover, if CamelCase support is going to be used in the Platform, you should also support something like JDT/UI's TextFieldNavigationHandler (again, this needs to be coordinated, and the implementation needs to be cleaned up before it is moved, etc.).
Comment 15 Szymon Brandys CLA 2008-05-30 04:30:37 EDT
Krzysztof left the team some time ago. I'm removing the target milestone.
Comment 16 Szymon Brandys CLA 2008-05-30 11:28:18 EDT
Reassigning to Susan.
Comment 17 Susan McCourt CLA 2009-07-09 16:38:55 EDT
As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009.

Updating title to make it a bit clearer what is requested.
This is one of many "look at all the copies of XXX function and try to offer a consolidated class/API for it" bugs.  I'm assigning to JFace because that's where similar bugs are assigned, but it's not clear if the API would actually live there.
Comment 18 thomas menzel CLA 2015-07-21 17:11:44 EDT
see also bug 393293 for some more ideas on enhancing this feature
Comment 19 Eclipse Genie CLA 2019-09-30 17:08:17 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.