Bug 19688 - Preferences not working with import/export
Summary: Preferences not working with import/export
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 critical (vote)
Target Milestone: ---   Edit
Assignee: Wassim Melhem CLA
QA Contact:
URL:
Whiteboard:
Keywords: readme
Depends on:
Blocks: 19494
  Show dependency tree
 
Reported: 2002-06-07 17:57 EDT by Randy Giffen CLA
Modified: 2002-09-09 15:06 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Giffen CLA 2002-06-07 17:57:14 EDT
Build F2

The following preferences were not transfered from one workspace to another 
using the export/import preferences feature.

Plug-In Devlopment>Source Code Location
 - Added, Removed
Plug-In Devlopment>Target Platform
 - another compatible application
 - Application Location
 - Selection
Comment 1 Dejan Glozic CLA 2002-06-07 18:03:10 EDT
What can I do about it?
Comment 2 Randy Giffen CLA 2002-06-07 18:22:04 EDT
Ensure that these settings are saved in and read from your plug-in's 
preference store (if possible).
Comment 3 Dejan Glozic CLA 2002-06-07 18:28:33 EDT
Ah, now I figured out. The settings listed below are saved in PDE Core settings 
(not a preference store) because PDE Core routines and builders must be able to 
access them without upward references to PDE UI. We had a lot of problems from 
running UI code during builds or activating UI plug-in triggered by core plug-
ins.

How do you transfer preferences that are affecting core settings in the UI? 
Dual book-keeping is dangerous.
Comment 4 Dejan Glozic CLA 2002-06-07 18:51:03 EDT
I have just found out that preference store has been moved from 
AbstractUIPlugin to Plugin. This would make things much easier if we knew about 
this earlier. We had to use our own file to store and retreive values because 
we had to extend Plugin in PDECore and had to have access to them.

For 2.0, these values will not be copied. After 2.0, we will rework PDE core to 
use moved preference store instead of our own settings. 

We will document this in the README.
Comment 5 Nick Edgar CLA 2002-06-10 21:56:17 EDT
This support was mentioned on the core mailing list in mid April.
http://dev.eclipse.org/mhonarc/lists/platform-core-dev/msg00114.html
Comment 6 Wassim Melhem CLA 2002-09-09 15:06:16 EDT
Fixed.