Regardless, I'm still concerned about the exception you were getting, as it may be a precursor to future problems. Generally, an editor window class would derive from SoftPro.Select.Shell.EditorPane, and you would also provide an editor factory class that derives from SoftPro.Select.Shell.EditorFactory to create your editor window and expose it to our system. The factory is registered through a SoftPro.Select.Shell.Registration.ProvideEditorFactory attribute on your package class. By doing so, both your editor window and editor factory would have access to our service provider via the protected GetService methods provided by each base class, and so the following would return a valid reference:
Code: Select all
Select.Client.SelectServer sps = GetService( typeof( Select.Client.SelectServer ) ) as Select.Client.SelectServer;