Java – how to properly end eclipse startup configuration execution?

I am writing an eclipse plug - in that provides a new startup configuration type It can be expected that when the execution of this new type of startup configuration is completed, the tooltip of the startup configuration button still indicates that my configuration is running

This can cause problems when I want to start several such configurations using the startup group. The second configuration waits indefinitely for the first to complete (I am using the wait until the termination option of the startup group) So I think I didn't tell the platform that the execution of startup configuration is complete

Solution

If I remember correctly, after starting the ilaunchconfigurationdelegate #launch, I need to start a new system process, and then create a runtimeprocess for this process Then, the runtimeprocess will generate the necessary debugevents and notify the corresponding ilaunch. When it terminates

You usually create a runtimeprocess by calling debugplugin#newprocess (ilaunch, process, string), but you can also instantiate it directly (for example, if you want to extend the runtimeprocess class)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>