IVsPersistDocData2 Not Being Called

I have a class the implementsIVsPersistDocData2 I register the document with the RTD usingRegisterAndLockDocument, I get some of the calls such as isdocumentreadonly,

But I never getting any calls to IsDocDirty and Save.

[275 byte] By [BillNortman] at [2008-2-4]
# 1

Did you implement IPersistFileFormat ?

Gaston at 2007-8-21 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...
# 2
No, I didn't. Is there any examples of how to implement this?
BillNortman at 2007-8-21 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...
# 3
Start a new project package, and select the option to create a custom editor. The default implementation shows how to implement IVsPersistDocData and IPersistFileFormat.
Regards
Gaston at 2007-8-21 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...
# 4
Ok, thanks for the example, but in the example the editor and the doc is the same class. What has to be different to have them be multiple classes, I have 5 editors and only one data. And the editors don't modify the data they just view the data. The data/doc is modified from a background processing thread that doesn't require an editor to be enabled.
BillNortman at 2007-8-21 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...

Visual Studio

Site Classified