Bug 126230 - CompareEditor and ISaveableModelSource
Summary: CompareEditor and ISaveableModelSource
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Compare (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M5   Edit
Assignee: Andre Weinand CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 119621
  Show dependency tree
 
Reported: 2006-02-02 13:16 EST by Michael Valenta CLA
Modified: 2006-02-06 06:17 EST (History)
0 users

See Also:


Attachments
Patch to add saveable model support to compare editor (4.64 KB, patch)
2006-02-02 13:48 EST, Michael Valenta CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Valenta CLA 2006-02-02 13:16:42 EST
The Workbench has introduced a new interface, ISaveableModelSource, which gives views more control over the save lifecycle of their models. The ISaveableModel API is similar to an IDocument but only only deals with the save lifecycle. What it allows is for a model to be shared between views and editors. The model can be saved in either the view or the editor. The workbench will prompt based on saveable models on shutdown and will only prompt when closing the last view or editor with a referecne to a model.

We are using this to support model based synchronization. What we would like is the ability to open and work in multiple compare editors from the sync view and only get prompted when all the editors and the sync view are closed. In other words, the sync view will manage the save lifecycle of the model instead of the editor. In order to support this, a small number of changes are required to CompareEditor. I will attach the proposed patch.
Comment 1 Michael Valenta CLA 2006-02-02 13:48:12 EST
Created attachment 34039 [details]
Patch to add saveable model support to compare editor
Comment 2 Andre Weinand CLA 2006-02-06 06:17:37 EST
Thanks, Michael.
patch reviewed and applied.