facebook

Properties editor not keeping format

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #301221 Reply

    fwiffo
    Member

    For some reason the property editor adds line breaks with properties spanning multiple lines and |

    Setup:
    We have a properties file which contains a couple of very large properties. These are actually properties containing which options should be used, i.e.

    
    available.buttons=button1|button2|button3|button4 ... etc.
    

    To make this easier for editing and noticing changes, we have them split along multiple lines:

    
    avaliable.buttons=button1|\
    button2|\
    button3|\
    etc...
    

    However, a funny thing occurs when I save these. It actually changes the \n to \n\r (or something), which creates:

    
    available.buttons=button1|\
    
    button2|\
    
    button3|\
    
    button4 ... etc.
    

    Looking at how it’s set up, it shows

    
    available.buttons=button1|\[LF]
    [CR]
    button2|\[LF]
    [CR]
    button3|\[LF]
    [CR]
    button4 ... etc.
    

    Is this just me? Is there something which allows me to change these settings?

    #301247

    fwiffo,
    I could not replicate this at my end. I am not getting any special characters in my source view of the properties file.
    Can you give some more detail?
    1. What are your installation details? You can get them from MyEclipse > Installation Summary > Installation Details.
    2. Can you list out the steps in detail to reproduce the error?

    #301254

    fwiffo
    Member

    I happen to run MyEclipse 6.5
    I checked with a colleague who runs 7.5, and he doesn’t experience the problem.

    I’ll be upgrading to 7.5 soon.
    So I think it’s best to suspend this issue.
    If I happen to reproduce it then, it means that there’s some difference between my and my collegue’s install, which might provide more clues.

    FWIW, I could do the following to reproduce.
    * make a new properties file –> the view will switch to properties.
    * Switch to the source
    * add property: test=val1\val2\val3\val4 (with newlines in between, yes)
    * add property test2=val2
    * switch back to properties view (it should list test=val1val2val3val4 which is correct)
    * modify test2 to val3 (or something)
    * save
    test now has ‘extra’ newlines added, which can be seen in the source tab.

    #301255

    fwiffo

    I’ll be upgrading to 7.5 soon.

    Good to know that you will be upgrading soon. Let me know if you have any issues with ME7.5 properties editor.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Properties editor not keeping format

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in