Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Try using Practically Macro Options</p> <p>Just install it from the eclipse update site</p> <p><a href="http://puremvcnotificationviewer.googlecode.com/svn/trunk/PracticallyMacroGoogleUpdateSite" rel="nofollow">http://puremvcnotificationviewer.googlecode.com/svn/trunk/PracticallyMacroGoogleUpdateSite</a></p> <p>After installing and restarting eclipse. Go to Windows-->Preferences-->Practically Macro options-->Editor Macro Defenitions</p> <p>Click "New" and select "Editor Macro script (Beanshell)" in Available Commands and click "Add"</p> <p>Use the following script</p> <pre><code>import org.eclipse.debug.core.DebugPlugin; import org.eclipse.debug.core.ILaunchConfiguration; import org.eclipse.debug.core.ILaunch; import org.eclipse.debug.ui.DebugUITools; try { // Terminate process if it already exists from a previous launch org.eclipse.debug.core.ILaunch[] allLaunches=DebugPlugin.getDefault().getLaunchManager().getLaunches(); for (ILaunch l : allLaunches) { if (l.getLaunchConfiguration().getName().equals("YOUR CONFIG NAME")) { console.write("terminating launch: " ); console.writeln(l.getLaunchConfiguration().getName()); l.terminate(); break; } } org.eclipse.debug.core.ILaunchConfiguration[] allConfigurations=DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurations(); for (ILaunchConfiguration config : allConfigurations) { if (config.getName().equals("YOUR CONFIG NAME")) { DebugUITools.launch(config, "debug"); break; } } } catch (CoreException e) { e.printStackTrace(); } finally{} </code></pre> <p>Notes: </p> <ol> <li>Replace the YOUR CONFIG NAME with whatever you want</li> <li>DebugUITools.launch can be changed to run or debug</li> <li>Specify a macro name in the "Macro info" section</li> <li>Assign an id started with 1.. If you want to be able to see this macro in the standard Eclipse key binding dialog</li> </ol> <p>Now Click "ok"</p> <p>Go to Windows-->Preferences-->General-->Keys</p> <p>Select your macro's name and assign it to any key you want.</p> <p>Finally dont forget to restart your eclipse again!</p> <p>For more help:</p> <p><a href="http://sourceforge.net/p/practicalmacro/discussion/878739/thread/891ddd13" rel="nofollow">http://sourceforge.net/p/practicalmacro/discussion/878739/thread/891ddd13</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload