import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.remote.core.IRemoteConnection;
-import org.eclipse.remote.core.IRemoteConnectionChangeListener;
-import org.eclipse.remote.core.IRemoteFileService;
-import org.eclipse.remote.core.IRemoteProcessService;
import org.eclipse.tracecompass.internal.lttng2.control.stubs.shells.LTTngToolsFileShell;
import org.eclipse.tracecompass.tmf.remote.core.proxy.RemoteSystemProxy;
import org.eclipse.tracecompass.tmf.remote.core.shell.ICommandShell;
private String fTestFile = null;
private String fScenario = null;
- @Override
- public IRemoteProcessService getProcessService() {
- return null;
- }
-
- @Override
- public IRemoteFileService getRemoteFileService() {
- return null;
- }
-
@Override
public void connect(IProgressMonitor monitor) throws ExecutionException {
}
return shell;
}
- @Override
- public void addConnectionChangeListener(IRemoteConnectionChangeListener listener) {
- }
-
- @Override
- public void removeConnectionChangeListener(IRemoteConnectionChangeListener listener) {
- }
-
public void setTestFile(String testFile) {
fTestFile = testFile;
}
setImage(TARGET_NODE_CONNECTED_ICON_FILE);
fDisconnectedImage = Activator.getDefault().loadIcon(TARGET_NODE_DISCONNECTED_ICON_FILE);
fRemoteProxy = proxy;
- fRemoteProxy.addConnectionChangeListener(this);
+ fRemoteProxy.getRemoteConnection().addConnectionChangeListener(this);
setToolTip(fRemoteProxy.getRemoteConnection().getName());
}
@Override
public void dispose() {
- fRemoteProxy.removeConnectionChangeListener(this);
+ fRemoteProxy.getRemoteConnection().removeConnectionChangeListener(this);
fRemoteProxy.dispose();
disposeControlService();
}
import org.eclipse.remote.core.IRemoteConnection;
import org.eclipse.remote.core.IRemoteConnectionChangeListener;
import org.eclipse.remote.core.IRemoteConnectionType;
-import org.eclipse.remote.core.IRemoteFileService;
-import org.eclipse.remote.core.IRemoteProcessService;
import org.eclipse.remote.core.IRemoteServicesManager;
import org.eclipse.remote.core.RemoteConnectionChangeEvent;
import org.eclipse.remote.core.exception.RemoteConnectionException;
// Operations
// ------------------------------------------------------------------------
- /**
- * Finds the remote file system service.
- *
- * @return file service subsystem, or <code>null</code> if not found.
- */
- public @Nullable IRemoteFileService getRemoteFileService() {
- return fHost.getService(IRemoteFileService.class);
- }
-
- /**
- * Returns a remote process service.
- *
- * @return the remote process service ({@link IRemoteProcessService}, or
- * <code>null</code> if not found.
- */
- public @Nullable IRemoteProcessService getProcessService() {
- return fHost.getService(IRemoteProcessService.class);
- }
-
/**
* Connects the remote connection.
*
return new CommandShell(fHost);
}
- /**
- * Method to add a communication listener to the connector service defined
- * for the given connection.
- *
- * @param listener
- * listener to add
- */
- public void addConnectionChangeListener(IRemoteConnectionChangeListener listener) {
- fHost.addConnectionChangeListener(listener);
- }
-
- /**
- * Method to remove a communication listener from the connector service
- * defined for the given connection.
- *
- * @param listener
- * listener to remove
- */
- public void removeConnectionChangeListener(IRemoteConnectionChangeListener listener) {
- fHost.removeConnectionChangeListener(listener);
- }
-
/**
* Returns the connection state.
*