Bug 409379 - [projection] Option to hide "final" modifiers on local fields & parameters
Summary: [projection] Option to hide "final" modifiers on local fields & parameters
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.3   Edit
Hardware: All All
: P3 enhancement with 6 votes (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 114906
Blocks:
  Show dependency tree
 
Reported: 2013-05-29 08:28 EDT by Tobias Oberlies CLA
Modified: 2020-12-06 01:44 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Oberlies CLA 2013-05-29 08:28:07 EDT
By default, I want all my local variables and parameters to be final. 

I can configure the save action to add the 'final' keyword where possible (and that's what I did) but the result is source code in which the default case - fields and parameters are final - are emphasised through the 'final' keyword, and exceptions to the default are hard to see.

Therefore, I'd like to have an option to automatically fold/hide the 'final' keyword on local variable and parameter declarations automatically folded, plus some kind of highlighting on declarations that don't have the 'final' keyword.
Comment 1 Dani Megert CLA 2013-05-29 08:34:50 EDT
We'd first have to fix bug 114906. See also bug 63808.
Comment 2 Jan Mothes CLA 2017-02-14 19:56:47 EST
Ideas:
I'd like to have the option to simply see a "lock" icon instead of the letters "final", like this one:
Comment 3 Jan Mothes CLA 2017-02-14 20:02:19 EST
Ok, so the other part of my comment got lost because i used a unicode char inside the comment.

I meant this one: https://codepoints.net/U+1F512

And as another alternative an even simpler improvement:

It's already possible to give "return" a different syntax coloring than other keywords. If I could change "final" color to not be the same as other keywords, too, i'd alrady be much happier, because i could give it a much less visible color.