I've created a web part with a custom editor part. Now I want to make changes in the behaviour of the web part if the editor part is open.
I can almost get it to work by setting a flag in the CreateEditorParts() method except that also fires when the user clicks "OK", "Apply" or "Cancel". The page will render without the editor part open but the web part still executes the CreateEditorParts method.
I haven't been able to find a property on the System.Web.UI.WebControls.WebParts.WebPart class that would indicate this, which seems like so obviously where it should be ;)
.. is there a way?