Search in sources :

Example 16 with Launch

use of org.eclipse.debug.core.Launch in project jbosstools-openshift by jbosstools.

the class SetupCRCJob method launchSetup.

@Override
protected ILaunch launchSetup(IServer server) {
    if (CRC100Server.matchesCRC_1_21_OrGreater(server)) {
        // Ask about telemetry
        // Would you like to contribute anonymous usage statistics
        setTelemetryFlag(server, promptTelemetry(server));
    }
    if (useTerminal) {
        Process p = launchSetupViaTerminal(server);
        ILaunch l = new Launch(null, "run", null);
        ProcessUtility.addProcessToLaunch(p, l, server, true, getBinaryLocation());
        return l;
    } else {
        return super.launchSetup(server);
    }
}
Also used : ILaunch(org.eclipse.debug.core.ILaunch) Launch(org.eclipse.debug.core.Launch) ILaunch(org.eclipse.debug.core.ILaunch)

Aggregations

ILaunch (org.eclipse.debug.core.ILaunch)16 Launch (org.eclipse.debug.core.Launch)16 AbstractTest (org.eclipse.linuxtools.profiling.tests.AbstractTest)4 Before (org.junit.Before)4 Test (org.junit.Test)4 ILaunchConfiguration (org.eclipse.debug.core.ILaunchConfiguration)3 ILaunchConfigurationWorkingCopy (org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)3 LaunchTestingOptions (org.eclipse.linuxtools.oprofile.launch.tests.utils.LaunchTestingOptions)3 TestingOprofileLaunchConfigurationDelegate (org.eclipse.linuxtools.oprofile.launch.tests.utils.TestingOprofileLaunchConfigurationDelegate)3 DSELaunch (de.uka.ipd.sdq.dsexplore.launch.DSELaunch)2 File (java.io.File)2 IOException (java.io.IOException)2 ProjectScope (org.eclipse.core.resources.ProjectScope)2 CoreException (org.eclipse.core.runtime.CoreException)2 IConfigurationElement (org.eclipse.core.runtime.IConfigurationElement)2 IExtensionPoint (org.eclipse.core.runtime.IExtensionPoint)2 NullProgressMonitor (org.eclipse.core.runtime.NullProgressMonitor)2 IProcess (org.eclipse.debug.core.model.IProcess)2 IStreamsProxy (org.eclipse.debug.core.model.IStreamsProxy)2 PerfLaunchConfigDelegate (org.eclipse.linuxtools.internal.perf.launch.PerfLaunchConfigDelegate)2