import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.ITraceControlComponent;
-import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.TargetNodeState;
+import org.eclipse.linuxtools.internal.lttng2.core.control.model.TargetNodeState;
/**
- * <b><u>DisconnectHandler</u></b>
* <p>
* Command handler implementation to disconnect from a target host.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class DisconnectHandler extends BaseNodeHandler {
public Object execute(ExecutionEvent event) throws ExecutionException {
fLock.lock();
try {
- ITraceControlComponent root = fTargetNode.getParent();
fTargetNode.disconnect();
- root.removeChild(fTargetNode);
} finally {
fLock.unlock();
}