Summary: | [Preferences] Default file editor preferences won't die | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Jared Burns <jared_burns> |
Component: | UI | Assignee: | Tod Creasey <Tod_Creasey> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | normal | ||
Priority: | P2 | CC: | dj.houghton |
Version: | 2.0 | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | other | ||
Whiteboard: |
Description
Jared Burns
2002-03-15 09:20:08 EST
The file editor preferences where designed to rely on knowing if a plugin has changed since the workbench was last started. Core used to have API for this (although it was never implemented and just returned true everty time). It appears this api has been removed. This is a difficult problem to solve. We need to add associations from any newly added plugins. In remebering deletions we would have to distinguish between associations from a plugin vs. associations added by the user. DJ are there plans to support an isChanged api for IPluginDescriptor? Do you know which class the API was removed from? I apologize in advance if this is just crazy talk but... When you're building the list of associations don't you just add associations from plugins, then add associations added by users, then remove associations deleted by users? Actually I released some new code in this area recently. On shutdown, for a given extension, we save 1) All associated editors 2) All editors which were explictly deleted by the user Then on startup 1) We get all associated editors from plugins 2) Ensure that all associated editors from the saved sate are included 3) Remove deleted editors This is only a partial solution since if you delete an extension, it will reappear with all its editors on restart Still an issue in 20020803 |