How to associate events to the preview/design mode button

Does anyone know how to associate an event/listener to the preview/design button located in the main toolbar?

This is really no way to be notified of this event, but you can check it through FPMISystem.getMode()