运行 singleton rcp4 应用程序第二次时如何自定义错误消息?
How can I customize error message when running singleton rcp4 application second time?
如何在运行 单例rcp4 应用程序第二次时自定义错误信息?现在默认消息是:
could not launch the product because the associated workspace is currently in use by another application.
LifeCycle
class @PostContextCreate
方法在完成此检查之前运行,因此您可以在其中添加自己的代码来进行检查并显示您自己的消息。
Eclipse做的检查比较复杂,可以看org.eclipse.e4.ui.internal.workbench.swt.E4Application
class
中checkInstanceLocation
方法中的代码
如何在运行 单例rcp4 应用程序第二次时自定义错误信息?现在默认消息是:
could not launch the product because the associated workspace is currently in use by another application.
LifeCycle
class @PostContextCreate
方法在完成此检查之前运行,因此您可以在其中添加自己的代码来进行检查并显示您自己的消息。
Eclipse做的检查比较复杂,可以看org.eclipse.e4.ui.internal.workbench.swt.E4Application
class
checkInstanceLocation
方法中的代码