Search in sources :

Example 1 with ProviderLaunchConfigurationDelegate

use of org.eclipse.linuxtools.internal.profiling.launch.provider.launch.ProviderLaunchConfigurationDelegate in project linuxtools by eclipse.

the class LaunchTest method testDelegate.

@Test
public void testDelegate() throws CoreException {
    ILaunchConfiguration config = createConfiguration(proj.getProject());
    ProviderLaunchConfigurationDelegate delegate = new ProviderLaunchConfigurationDelegate();
    ILaunch launch = new Launch(config, ILaunchManager.PROFILE_MODE, null);
    ILaunchConfigurationWorkingCopy wc = config.getWorkingCopy();
    setProfileAttributes(wc);
    delegate.launch(wc, ILaunchManager.PROFILE_MODE, launch, null);
}
Also used : ILaunchConfiguration(org.eclipse.debug.core.ILaunchConfiguration) ILaunch(org.eclipse.debug.core.ILaunch) ProviderLaunchConfigurationDelegate(org.eclipse.linuxtools.internal.profiling.launch.provider.launch.ProviderLaunchConfigurationDelegate) ILaunchConfigurationWorkingCopy(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy) Launch(org.eclipse.debug.core.Launch) ILaunch(org.eclipse.debug.core.ILaunch) Test(org.junit.Test) AbstractTest(org.eclipse.linuxtools.profiling.tests.AbstractTest)

Aggregations

ILaunch (org.eclipse.debug.core.ILaunch)1 ILaunchConfiguration (org.eclipse.debug.core.ILaunchConfiguration)1 ILaunchConfigurationWorkingCopy (org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)1 Launch (org.eclipse.debug.core.Launch)1 ProviderLaunchConfigurationDelegate (org.eclipse.linuxtools.internal.profiling.launch.provider.launch.ProviderLaunchConfigurationDelegate)1 AbstractTest (org.eclipse.linuxtools.profiling.tests.AbstractTest)1 Test (org.junit.Test)1