blob: 5f0bbdf013e4b46e19298447c8509ad5d6c187d0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/*******************************************************************************
* Copyright (c) 2014 Wind River Systems, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Markus Schorn - initial API and implementation
*******************************************************************************/
package org.eclipse.tcf.te.tcf.remote.core.operation;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.tcf.protocol.IPeer;
import org.eclipse.tcf.te.runtime.callback.Callback;
import org.eclipse.tcf.te.runtime.interfaces.properties.IPropertiesContainer;
import org.eclipse.tcf.te.tcf.processes.core.launcher.ProcessLauncher;
public class TCFOperationStartProcess extends TCFOperation<Object> {
private final ProcessLauncher fLauncher;
private final IPeer fPeer;
private final IPropertiesContainer fProps;
public TCFOperationStartProcess(IPeer peer, ProcessLauncher launcher, IPropertiesContainer launcherProps) {
fPeer = peer;
fLauncher = launcher;
fProps = launcherProps;
}
@Override
protected void doExecute() {
fLauncher.launch(fPeer, fProps, new Callback() {
@Override
protected void internalDone(Object caller, IStatus status) {
if (shallAbort(status))
return;
TCFOperationStartProcess.this.setResult(null);
}
});
}
}
|