Bug 109955

Summary: [nls tooling] Properties file editor should detect duplicate properties.
Product: [Eclipse Project] JDT Reporter: trevor campbell <trevor.campbell>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: caladyon, tomasz.zarna
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description trevor campbell CLA 2005-09-20 02:06:14 EDT
It would be nice if Properties file editor detected duplicate properties.
In long properties files on mature projects with many programmers these files
often end up in poor shape and having duplicate properties is a real problem.
Comment 1 Dani Megert CLA 2006-03-21 05:09:55 EST
Try Source > Find Broken NLS Keys... (needs latest 3.2 I-build)
Comment 2 Dani Megert CLA 2009-05-18 10:20:12 EDT
*** Bug 276710 has been marked as a duplicate of this bug. ***
Comment 3 Luciano CLA 2013-10-15 04:25:51 EDT
Eclipse should NOT delete lines with "duplicate" key, because they can be loaded as String array by org.apache.commons.configuration.Configuration.getStringArray

http://commons.apache.org/proper/commons-configuration/apidocs/org/apache/commons/configuration/Configuration.html#getStringArray(java.lang.String)

Deleting lines with the same property and different values leads to loss of data (I'm experimenting now with Eclipse Kepler)!

This feature should be implemented as a command on demand (not automatic).
Thanks

PS: this issue is old and not up-to-date, I think I'm gonna create a new one
Comment 4 Luciano CLA 2013-10-15 04:46:40 EDT
Sorry, I made a mistake: I agree that Eclipse should *only detect*.
I opened issue #419427 because Kepler actually deletes.

Thanks