What is the correct way to add a Shutdown Hook for an Eclipse RCP application?

前端 未结 3 1410
执念已碎
执念已碎 2020-12-09 22:08

I have an RCP application that uses a connection to a in-memory database. There is one circumstance that, when shutting down windows, the application is killed without givi

3条回答
  •  一向
    一向 (楼主)
    2020-12-09 22:43

    You should override the preShutdown method on your class that extends WorkbenachAdvisor. Return false to halt the shutdown process or true to continue.

提交回复
热议问题