Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to find which project is running in Eclipse programatically

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.

like image 582
Abhishek Choudhary Avatar asked Dec 04 '25 05:12

Abhishek Choudhary


1 Answers

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

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

DebugPlugin.getDefault().addDebugEventListener(<listener instance>);
like image 120
ppeterka Avatar answered Dec 06 '25 18:12

ppeterka