Bug 493859 - Java Code Templates settings by preferences import are reverted when restarting Eclipse.
Summary: Java Code Templates settings by preferences import are reverted when restarti...
Status: CLOSED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.5.2   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Noopur Gupta CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2016-05-17 22:36 EDT by yuki hane CLA
Modified: 2016-05-21 02:13 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yuki hane CLA 2016-05-17 22:36:25 EDT
"Java > Code Style > Code Templates" settings imported by "File > Import > General > Preferenes" are available.
But when restarting Eclipse, these settings are reverted to previous local one.


1. Edit "Java > Code Style > Code Templates" settings. [A]
2. Import preferences by "File > Import > General > Preferenes". [B]
3. Restart Eclipse.
4. Open "Java > Code Style > Code Templates"
Preferences values are not [B] but [A].
Comment 1 Dani Megert CLA 2016-05-18 09:52:51 EDT
Noopur, please take a look.
Comment 2 Noopur Gupta CLA 2016-05-19 03:11:19 EDT
I cannot reproduce it with Eclipse Neon build I20160518-2000 using the steps given in comment #0. Please try to reproduce it with Neon RC1 build and attach the preferences file to be imported to reproduce the bug:
http://download.eclipse.org/eclipse/downloads/drops4/S-4.6RC1-201605121000/
Comment 3 yuki hane CLA 2016-05-21 02:13:40 EDT
I found my mistake.
Oomph does not record Importing preferences, so contents of "~/.eclipse/org.eclipse.oomph.setup/setups/user.setup" are not changed.
Eclipse read it when restarting, so it look like be reverted.