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 70352 - [50cat] Put case changing actions in the menu
Summary: [50cat] Put case changing actions in the menu
Status: REOPENED
Alias: None
Product: editor
Classification: Unclassified
Component: Actions/Menu/Toolbar (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker with 1 vote (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-13 17:37 UTC by cezariusz
Modified: 2016-07-07 19:36 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
TextFX case actions in Notepad++ (19.31 KB, image/png)
2015-05-14 07:54 UTC, cezariusz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cezariusz 2005-12-13 17:37:02 UTC
[ BUILD # : 200512051900 ]
[ JDK VERSION : 1.5.0_02 ]

Add the following actions to the Edit menu:
- make upper case
- make lower case
- capitalize
- invert case

They can all be in one submenu, not to take too much space.
Having them in menu will make it easier to find them
and to check their shortcuts (assuming multikey shortcuts are being shown in the menu).
Comment 1 maksym 2008-06-25 11:27:58 UTC
These issue is not implemented yet.
Currently NetBeans has incorrect case switching behavior.
Comment 2 Vitezslav Stejskal 2008-06-25 11:49:39 UTC
Ondro, have you guys considered adding these actions? Pros, cons, ideas? Thanks
Comment 3 Ondrej Langr 2008-06-25 12:13:13 UTC
Is there a real use-case for these actions? For invert case, I see it as something to be used for fixing the
i-forgot-numlock-on-problem, but .. how often this happens and how much text is involved? Upper-case/lower-case can
probably be used (although rarely) for conversion of larger amount of texts such as headers, etc .. but it is extremely
infrequent use-case and IMO QuickSearch should be enough for discoverability of this action. For capitalize, I
personally can't really imagine anyone using (=remembering) a shortcut instead of overwriting one single letter. Even if
so, this action is available from the keymap panel and thus can be assigned a user-custom keybinding.

To avoid UI clutter, closing as WONTFIX. Please re-open if you are aware of any significant use-cases I've missed. 
Comment 4 cezariusz 2015-05-14 07:52:47 UTC
(In reply to Ondrej Langr from comment #3)
> Is there a real use-case for these actions? 

Yes, usually after copy-paste from a documentation. For example I copy a list of types (in sentence case), and I want to make them constants or enums, so I have the following options:
- do it manually (lengthy and error prone)
- lookup a shortcut in the keymap, remember it, go back to editor and use it (lengthy and annoying)
- copy it to Notepad++, use TextFX, copy back to NetBeans - that's what I usually do

Most people in my company don't even know that NetBeans supports any case actions, because they don't exist in any menu.

> Upper-case/lower-case can probably be used (although rarely)

Not rarely, believe me.

> To avoid UI clutter, closing as WONTFIX.

Really, a single submenu of useful editor actions is a clutter?

> Please re-open if you are aware of any significant use-cases I've missed.

Make enums from documentation, create JavaDoc for constants, create variable names in bulk, field names (in quotes or annotations), SQL queries.

I can agree that invert case is not that important, but uppercase, lowercase and camelCase are.
Comment 5 cezariusz 2015-05-14 07:54:44 UTC
Created attachment 153648 [details]
TextFX case actions in Notepad++
Comment 6 Martin Balin 2016-07-07 07:28:49 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 7 cezariusz 2016-07-07 19:36:00 UTC
It is still relevant.