Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 91149

Summary: [preferences] Convert preferences import/export to File > import/export
Product: [Eclipse Project] JDT Reporter: Michael Van Meekeren <michaelvanmeekeren>
Component: UIAssignee: Martin Aeschlimann <martinae>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: dirk_baeumer
Version: 3.1   
Target Milestone: 3.1 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Michael Van Meekeren CLA 2005-04-12 11:44:20 EDT
Preference pages to convert:
Java > Build Path > User Libraries
Java > Code Style > *
Java > Editor > Templates


Please convert your import and export options to the new support available off
the File > Import/Export > Preferences  wizard.

For an example see the Preference Transfer ext. pt. (no code necessary)
org.eclipse.ui\schema\preferenceTransfer.exsd

and also if you need to do preference migration or modifications on import see:
org.eclipse.core.runtime\schema\preferences.exsd  (modifier element)
Comment 1 Dirk Baeumer CLA 2005-04-12 13:21:13 EDT
Martin, we already have this on the list for M7. Right ?
Comment 2 Martin Aeschlimann CLA 2005-04-13 03:03:50 EDT
yes, that's on my item list
Comment 3 Martin Aeschlimann CLA 2005-04-13 12:59:14 EDT
I added the first transfers for JDT. There are still some more I would like to
add; I'm waiting for resolution of bug 91298.

I guess you wrote this bug to have the import/export buttons removed.

- I currently can't define a transfer for 'User Libraries': The keys are not
static as they contain the name of the library
    'org.eclipse.jdt.core.userLibrary.Apache=<?xml version....'
A solution would be to allow wildcards in keys:
 <mapping scope="instance">
  <entry node="org.eclipse.jdt.core" keys="org.eclipse.jdt.core.userLibrary.*"/>
 </mapping>

- code templates, editor templates and code formatter import/export all support
exporting single entries or a selection of entries. Code and editor templates
also have the problem that what we store in the key is only the delta to the
default settings.
- another aspect is that all these settings also can be configured project
specificly. Our import/export buttons allow you to store settings from either
project or instance and import them whereever you want (different project or
instance). The preference transfer page only would limit us to export/import on
instance settings.

I would prefer to keep the specific import/export buttons to not loose
functionality. Dirk, what is your opinion?
Comment 4 Dirk Baeumer CLA 2005-04-14 05:41:34 EDT
It is OK with me to keep the page specific import/export functionality since it
is especially useful to transfer settings from workspace to project specific
settings. This scenario isn't supported with new import/export and removing it
so late might cause user confusion.
Comment 5 Martin Aeschlimann CLA 2005-04-14 10:21:45 EDT
After discussions in the team we decided to currently offer only one transfer
'Java Development Preferences'

> 20050414