Community
Participate
Working Groups
I have a case where I would like to dynamically switch the model type for a sapphire editor on open. This is easy enough to do if I extend SapphireEditor. However, this editor is going to be standard MasterDetailsPage with a source editor page, and I'd like to use SapphireEditorForXml but when I do that I am unable to set the model type after the file editor input has been set but before the model is created.
Created attachment 206643 [details] patch1 - createModel() switched to non-final This patch simply switching the protected createModel() method in the SapphireEditorForXml to non-final so subclass can set the model type just before it is created.
Created attachment 206644 [details] Patch v2 Same patch as patch 1 but with source attribution in header comments.
Patch accepted. Please verify.
Comment on attachment 206644 [details] Patch v2 Same as patch v1 but when source attribution.
Verified with latest CVS.
Thanks. Closing.