RGMSSONI / localizedproperties

Automatically exported from code.google.com/p/localizedproperties
0 stars 0 forks source link

Problem with removing recently added wildcard #82

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
During using localizedproperties plugin I've noticed that there is an issue 
with wildcard preferences.

How to reproduce the problem:
1. Add a new wildcard, make sure that it's the last one on the list.
2. Save (Apply/OK) preferences and close preference view.
3. Go back to the preferences view and remove the last one (recently added one) 
wildcard.
4. Save (Apply/OK) and close preferences view.
5. Open preferences once again, and in the wildcards list, the recently removed 
wildcard has been restored.

Workaround:
1. If you find in such situation as described above, move your custom wildcard 
up.

Expected results:
1. Removing wildcard, which is last one on the list of wildcards, will not be 
restored.

Solution:
Because the IPreferenceStore interface doesn't have any key removing method 
defined, I've decided, that setting all available preferences to theirs default 
value (via setToDefault method) before setting all preferences. During getting 
preferences, preferences which point to null or are empty are discarded.

Original issue reported on code.google.com by rafal.go...@gmail.com on 6 Jul 2011 at 9:44

GoogleCodeExporter commented 8 years ago
I modified and put comments, because the solution is enough for new 
wilcardpath, but if I erase and existent, just restore default value.
Instead of this, I set a void string and when I need to load it, I try to test 
the null string.
The solution is related with 89 issue.

Original comment by flores.l...@gmail.com on 27 Jul 2011 at 1:31

GoogleCodeExporter commented 8 years ago
The milestone was updated

Original comment by flores.l...@gmail.com on 10 Aug 2011 at 12:23