@Inject
@Optional
public void registerCustomSaveHandler(
@UIEventTopic(UIEvents.UILifeCycle.APP_STARTUP_COMPLETE) MApplication application)
{
MWindow window = application.getSelectedElement();
IEclipseContext windowContext = window.getContext();
windowContext.set(ISaveHandler.class, new CustomSaveHandler());
}