java - Running the program from Eclipse plugin -


i developing eclipse plugin , stuff right before user runs program.

i figure either need hook event runs when user starts program or create own button, first stuff , run program afterwards.

is there way listen run event in eclipse plugin? if not, how can invoke event programatically? also, event logged somewhere?

i found this while looking exact same question.

once have manager, implement own listener , add launchmanager:

class mylaunchlistener implements ilaunchlistener {      @override     public void launchadded(ilaunch launch) {         system.out.println("launching!");         // stuff here     }      ... }  ilaunchmanager manager = debugplugin.getdefault().getlaunchmanager(); manager.addlaunchlistener(new mylaunchlistener()); 

note work, need add org.eclipse.debug.core plugin dependencies.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -