|Expose DefaultUpdateBehavior.workspaceSynchronizer to Extenders [message #910962]
||Mon, 10 September 2012 17:59
| Rob Cernich
Registered: September 2011
I've got a situation where I have three resources that are active within my editor:
My editor is opened against the model (I override the default persistency behavior).
The way I read the default synchronizer behavior, the editor input uri will be changed if any of the resources in the resource set are moved, regardless of whether or not the resource moved was actually the input for the editor. (In my case, I really don't care whether or not the diagram file is changed outside the editor, as I do not want to synchronize those changes. The user shouldn't be messing with the diagram file anyway, especially when the editor is opened.) Also, I'd like to update the URI for the diagram resource, in the event the model URI is updated (they move in parallel). I also don't want the diagram unloaded if the diagram resource is deleted (ok, though if the model resource is deleted).
As far as that third, "other," resource goes, I'm doing some crazy stuff with that (it's actually a "derived" resource produced by a builder). I would like to be notified of changes, but want to handle them in a very specific fashion.
I think this would be simpler for me if creation of the workspaceSynchronizer was delegated to a create method that could be overridden by exenders.
Powered by FUDForum
. Page generated in 0.01879 seconds