Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 361518

Summary: Preference changes not stored after clicking 'OK' or pressing 'Enter'
Product: [Technology] EGit Reporter: Dani Megert <daniel_megert>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: NEW --- QA Contact:
Severity: major    
Priority: P3 CC: markus.kell.r, remy.suen
Version: 1.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Dani Megert CLA 2011-10-20 06:48:13 EDT
1.2.0.201110111814

Preference changes not stored after clicking 'OK' or pressing 'Enter'.

1. start new workspace
2. enter user.name and user.email in Git > Configuration
3. reopen Git > Configuration
4. select 'name'
5. enter a new name into the 'Value:' field (not leave the field)
6. click 'OK' or press 'Enter'
7. reopen Git > Configuration
==> BAD: changes are not there

This is 'major'. Due to this my wrong name ended up in the shared repository.
Comment 1 Dani Megert CLA 2011-11-01 11:26:24 EDT
We have several possible ways to fix this:

1) We get rid of the 'Change' button all together and update on focus lost.
2  We don't check the dirty state in 
   GlobalConfigurationPreferencePage.performOk(). Not sure whether always saving
   the values has any side-effect though (e.g. notified listeners could cause
   a performance hit).
3) We introduce a protocol that allows to notify the ConfigurationEditorComponent
   when applying or OKing the outer composite.

What do you prefer?
Comment 2 Kevin Sawicki CLA 2011-11-07 15:26:35 EST
What do you think about using a cell editor and changing things directly in the tree?
Comment 3 Remy Suen CLA 2011-11-07 16:07:19 EST
(In reply to comment #2)
> What do you think about using a cell editor and changing things directly in the
> tree?

Would this solution be keyboard accessible?
Comment 4 Dani Megert CLA 2011-11-08 02:43:54 EST
(In reply to comment #2)
> What do you think about using a cell editor and changing things directly in the
> tree?

Last time I used cell editors they weren't too developer friendly (i.e. needs quite some work to get it done right). Not sure whether that changed.

(In reply to comment #3)
> Would this solution be keyboard accessible?
AFAIK this isn't an issue. Each OS has its native key binding to activate the cell editing (e.g. 'Enter' on Windows).