org.eclipse.debug.core.ILaunchesListener2 Java Examples
The following examples show how to use
org.eclipse.debug.core.ILaunchesListener2.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JUnitTestRunListenerTest.java From eclipse-extras with Eclipse Public License 1.0 | 5 votes |
private ILaunchManager mockLaunchManager() { ILaunchManager result = mock( ILaunchManager.class ); doAnswer( new Answer<Object>() { @Override public Object answer( InvocationOnMock invocation ) { launchesListeners.add( ( ILaunchesListener2 )invocation.getArguments()[ 0 ] ); return null; } } ).when( result ).addLaunchListener( any( ILaunchesListener2.class ) ); return result; }
Example #2
Source File: JUnitTestRunListenerTest.java From eclipse-extras with Eclipse Public License 1.0 | 4 votes |
private void fireLaunchTerminated( ILaunch launch ) { for( ILaunchesListener2 launchesListener : launchesListeners ) { launchesListener.launchesTerminated( new ILaunch[] { launch } ); } }