Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355099 - deltaRestore needs to save and restore new cloneable snippets
Summary: deltaRestore needs to save and restore new cloneable snippets
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.2 M2   Edit
Assignee: Remy Suen CLA
QA Contact: Remy Suen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 339130
  Show dependency tree
 
Reported: 2011-08-18 11:17 EDT by Dean Roberts CLA
Modified: 2011-09-15 13:48 EDT (History)
2 users (show)

See Also:


Attachments
Enable deltaRestore for clonableSnippets (1.55 KB, patch)
2011-08-30 11:15 EDT, Dean Roberts CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dean Roberts CLA 2011-08-18 11:17:41 EDT
Clonable Snippets where added to MApplicationElement to support saving custom perspectives.

This model part needs to be saved and restored as part of the deltaRestore process.

Until this happens saved perspectives will only work if Eclipse is started with the command line argument -deltaRestore false
Comment 1 Dean Roberts CLA 2011-08-30 11:15:52 EDT
Created attachment 202430 [details]
Enable deltaRestore for clonableSnippets

Changes so clonableSnippets participate in deltaRestore.

This patch seems to work for me.

With no changes, it appears that delta restore was half saving the change, but the value was null causing a null pointer exception on startup when restarting a workspace that had a previous save perspective.

The only thing this patch does is make sure that clonableSnippets is recognized as a chained, and saving seems to work now.

Is anybody surprised that, with no changes, the save was half working?  Is this intended behaviour or should something more rational have been happenging in that case?
Comment 2 Remy Suen CLA 2011-09-02 09:25:32 EDT
(In reply to comment #1)
> Created attachment 202430 [details]
> Enable deltaRestore for clonableSnippets

Fix pushed to R4_development. Thanks, Dean!
http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?h=R4_development&id=d2a6aedea222ef6458553447378b81ac570c13a9

I have opened bug 356592 for tracking tests related to the persistence of the clonable snippets list.
Comment 4 Dean Roberts CLA 2011-09-15 13:40:46 EDT
Verified with I20110705-1340 by exercising the save perspective code.
Comment 5 Dean Roberts CLA 2011-09-15 13:48:23 EDT
Cut and paste error in previous comment.

This was verified in I20110915-0200