Bug 548057 - [Preferences] Add Color Previews in 'Appearance color options' table on 'Text Editors' preference page
Summary: [Preferences] Add Color Previews in 'Appearance color options' table on 'Text...
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.13   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: 4.13 M3   Edit
Assignee: Andrew Obuchowicz CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
Depends on:
Blocks:
 
Reported: 2019-06-07 11:38 EDT by Andrew Obuchowicz CLA
Modified: 2019-08-20 09:44 EDT (History)
3 users (show)

See Also:


Attachments
Suggested widget placement + table color preview (119.02 KB, image/png)
2019-06-07 11:40 EDT, Andrew Obuchowicz CLA
no flags Details
Improved clarity of Suggested Fix image (120.19 KB, image/png)
2019-06-07 11:44 EDT, Andrew Obuchowicz CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Obuchowicz CLA 2019-06-07 11:38:58 EDT
- Would be nice to see color previews in all the rows of the "Appearance color options" table.

- This might make the table very crowded, to resolve this I suggest:
    - Moving the "Color:" label and it's associated color choose button to the 
      right
    - Extending the right border/side of the "Appearance color options" table 
      with the space gained from moving the color picker.
 
JFace Snippet003 demonstrates a possible way to display color previews in a table: https://wiki.eclipse.org/JFaceSnippets#Snippet003_-_Table_Label_Provider
Comment 1 Andrew Obuchowicz CLA 2019-06-07 11:40:42 EDT
Created attachment 278856 [details]
Suggested widget placement + table color preview
Comment 2 Andrew Obuchowicz CLA 2019-06-07 11:44:27 EDT
Created attachment 278857 [details]
Improved clarity of Suggested Fix image
Comment 3 Andrew Obuchowicz CLA 2019-06-07 11:45:42 EDT
Where it occurs:
Preferences -> General -> Editors -> Text Editors (near the bottom of the window)
Comment 4 Andrew Obuchowicz CLA 2019-06-07 11:52:41 EDT
(In reply to Andrew Obuchowicz from comment #0)
> - Would be nice to see color previews in all the rows of the "Appearance
> color options" table.
> 
> - This might make the table very crowded, to resolve this I suggest:
>     - Moving the "Color:" label and it's associated color choose button to
> the 
>       right
>     - Extending the right border/side of the "Appearance color options"
> table 
>       with the space gained from moving the color picker.
>  
> JFace Snippet003 demonstrates a possible way to display color previews in a
> table:
> https://wiki.eclipse.org/JFaceSnippets#Snippet003_-_Table_Label_Provider

Additionally, the user should be able to open up a color picker by clicking on a color preview from the table  (inline editing behaviour)
Comment 5 Nitin Dahyabhai CLA 2019-06-24 10:39:30 EDT
That's the Platform's preference page.
Comment 6 Andrew Obuchowicz CLA 2019-06-24 12:13:09 EDT
(In reply to Nitin Dahyabhai from comment #5)
> That's the Platform's preference page.

Can you clarify what you mean by this?
Comment 7 Nitin Dahyabhai CLA 2019-06-24 12:59:59 EDT
(In reply to Andrew Obuchowicz from comment #6)
> Can you clarify what you mean by this?

Both of your screenshots are from preference pages that come from the Eclipse Platform, not the Web Tools Platform, the opposite of what's shown in bug 548061.
Comment 8 Andrew Obuchowicz CLA 2019-06-24 13:47:15 EDT
(In reply to Nitin Dahyabhai from comment #7)
> (In reply to Andrew Obuchowicz from comment #6)
> > Can you clarify what you mean by this?
> 
> Both of your screenshots are from preference pages that come from the
> Eclipse Platform, not the Web Tools Platform, the opposite of what's shown
> in bug 548061.

I see, what should I modify? The bug is currently filed against Platform/UI.
Comment 9 Dani Megert CLA 2019-07-16 13:23:47 EDT
(In reply to Nitin Dahyabhai from comment #5)
> That's the Platform's preference page.
Sorry, my bad. But bug 548168 is for the Structured Text Editor.
Comment 10 Nitin Dahyabhai CLA 2019-07-16 13:35:58 EDT
(In reply to Dani Megert from comment #9)
> Sorry, my bad. But bug 548168 is for the Structured Text Editor.

The Gerrit for it isn't, and its use of asyncExec gives me pause for crafting corresponding changes there.
Comment 11 Dani Megert CLA 2019-07-16 13:56:11 EDT
(In reply to Nitin Dahyabhai from comment #10)
> (In reply to Dani Megert from comment #9)
> > Sorry, my bad. But bug 548168 is for the Structured Text Editor.
> 
> The Gerrit for it isn't, and its use of asyncExec gives me pause for
> crafting corresponding changes there.
I agree to both, nevertheless the bug is about the Structured Editors page and should be moved out of Platform again.
Comment 12 Andrew Obuchowicz CLA 2019-07-16 15:13:04 EDT
(In reply to Nitin Dahyabhai from comment #10)
> (In reply to Dani Megert from comment #9)
> > Sorry, my bad. But bug 548168 is for the Structured Text Editor.
> 
> The Gerrit for it isn't, and its use of asyncExec gives me pause for
> crafting corresponding changes there.

I appologize for the confusion, Nitin - I made a mistake when posting the gerrit change initially (used the wrong bug #).

The associated gerrit change for this bug is: https://git.eclipse.org/r/#/c/146099/

As for asyncExec, it's usage will be removed if my change gets merged.
Comment 14 Mickael Istria CLA 2019-07-22 13:28:49 EDT
Thanks Andrew. Please add a note to the N&N
Comment 15 Andrew Obuchowicz CLA 2019-07-22 16:46:32 EDT
(In reply to Mickael Istria from comment #14)
> Thanks Andrew. Please add a note to the N&N

Will do !
Comment 16 Eclipse Genie CLA 2019-07-24 14:51:28 EDT
New Gerrit change created: https://git.eclipse.org/r/146572
Comment 18 Dani Megert CLA 2019-08-12 11:01:44 EDT
> Additionally, the user should be able to open up a color picker by clicking on 
> a color preview from the table  (inline editing behaviour)
This was not implemented. Updated summary.