如何在Eclipse中以程序方式查找哪个项目正在运行 [英] how to find which project is running in Eclipse programatically

查看:599
本文介绍了如何在Eclipse中以程序方式查找哪个项目正在运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,我在Eclipse中有一个Java应用程序。一旦我点击运行按钮或尝试运行,我想得到一个通知。
我认为必须有一些API相关的runtimeConfiguration的Eclipse,但不能破解它。任何建议。

解决方案

你可以听 org.eclipse.debug.DebugEvents



您可以使用此代码附加侦听器,从本主题

  DebugPlugin.getDefault()。addDebugEventListener(< listener instance> ); 


I have a Java Application in Eclipse for example. as soon as I click on run button or try to run, I want to get a notification. I think there must be some API related to runtimeConfiguration of Eclipse but couldn't crack it yet. Any suggestion.

解决方案

You could listen to org.eclipse.debug.DebugEvents.

You can attach the listener using this code, from this topic:

DebugPlugin.getDefault().addDebugEventListener(<listener instance>);

这篇关于如何在Eclipse中以程序方式查找哪个项目正在运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆