Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324418 - [nls tooling] Properties File Editor gets confused with trailing double backslash
Summary: [nls tooling] Properties File Editor gets confused with trailing double backs...
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-03 10:04 EDT by Jeremy CLA
Modified: 2010-09-08 10:53 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy CLA 2010-09-03 10:04:41 EDT
I have properties defined in a property file in the following fashion:
test.ontology=\\\\a\\b\\c\\
test.name=My Test Ontology
test2.ontology=\\\\a\\b\\c\\d\\
test2.name=My Test Ontology #2

If I copy and past this into a properties file, save, close and reopen, i get the following properties file definition:
test.ontology=\\\\a\\b\\c\\
test2.ontology=\\\\a\\b\\c\\d\\

Now, I haven't been able to find documentation in the Java API's that says you can't have a property end with an escaped backslash, so I assume that I'm not defining these incorrectly.  And, for those who would say use slashes, not backslashes, these are conceptual paths, not file paths, and cannot be changed.

Is this a bug, or am I defining the entries incorrectly?

-- Configuration Details --
Product: Eclipse 1.3.0.20100617-0520 (org.eclipse.epp.package.java.product)
Installed Features:
 org.eclipse.jdt 3.6.0.v20100526-0800-7z8XFUJFMTfCWGoVuHImpms9H155
Comment 1 Markus Keller CLA 2010-09-08 10:49:09 EDT
This works fine for me with Eclipse 3.6 (Helios), e.g. from here:
http://download.eclipse.org/eclipse/downloads/drops/R-3.6-201006080911/index.php

It looks like you use a third-party properties file editor that has a bug. Your properties definitions are correct.
Comment 2 Jeremy CLA 2010-09-08 10:53:55 EDT
I apologize.  Didn't realize I had another Properties file editor installed.  Switching to the Eclipse based properties file editor resolved my issues.  Thanks for the help.