/**********************************************************************
- * Copyright (c) 2012 Ericsson
+ * Copyright (c) 2012, 2013 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
// ------------------------------------------------------------------------
// Attributes
// ------------------------------------------------------------------------
+
private final IHost fHost;
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
// Operations
// ------------------------------------------------------------------------
- /* (non-Javadoc)
- * @see org.eclipse.linuxtools.internal.lttng2.ui.views.control.util.IRemoteSystemProxy#getShellService(org.eclipse.rse.core.model.IHost)
- */
+
@Override
public IShellService getShellService() {
ISubSystem ss = getShellServiceSubSystem();
return null;
}
- /* (non-Javadoc)
- * @see org.eclipse.linuxtools.internal.lttng2.ui.views.control.util.IRemoteSystemProxy#getTerminalService()
- */
@Override
public ITerminalService getTerminalService() {
ISubSystem ss = getTerminalServiceSubSystem();
return null;
}
- /* (non-Javadoc)
- * @see org.eclipse.linuxtools.internal.lttng2.ui.views.control.util.IRemoteSystemProxy#getShellServiceSubSystem()
- */
@Override
public ISubSystem getShellServiceSubSystem() {
if (fHost == null) {
return null;
}
- /* (non-Javadoc)
- * @see org.eclipse.linuxtools.internal.lttng2.ui.views.control.util.IRemoteSystemProxy#getTerminalServiceSubSystem()
- */
@Override
public ISubSystem getTerminalServiceSubSystem() {
if (fHost == null) {
return null;
}
- /*
- * (non-Javadoc)
- * @see org.eclipse.linuxtools.internal.lttng2.ui.views.control.remote.IRemoteSystemProxy#getFileServiceSubSystem()
- */
@Override
public IFileServiceSubSystem getFileServiceSubSystem() {
if (fHost == null) {
return null;
}
- /* (non-Javadoc)
- * @see org.eclipse.linuxtools.internal.lttng2.ui.views.control.util.IRemoteSystemProxy#connect(org.eclipse.rse.core.model.IRSECallback)
- */
+ @Override
+ public int getPort() {
+ if (getShellServiceSubSystem() != null) {
+ return getShellServiceSubSystem().getConnectorService().getPort();
+ }
+ return IRemoteSystemProxy.INVALID_PORT_NUMBER;
+ }
+
+ @Override
+ public void setPort(int port) {
+ if ((getShellServiceSubSystem() != null) && (port > 0)) {
+ getShellServiceSubSystem().getConnectorService().setPort(port);
+ }
+ }
+
@Override
public void connect(IRSECallback callback) throws ExecutionException {
ISubSystem shellSubSystem = getShellServiceSubSystem();
}
}
- /* (non-Javadoc)
- * @see org.eclipse.linuxtools.internal.lttng2.ui.views.control.util.IRemoteSystemProxy#disconnect()
- */
@Override
public void disconnect() throws ExecutionException {
ISubSystem shellSubSystem = getShellServiceSubSystem();
}
}
- /* (non-Javadoc)
- * @see org.eclipse.linuxtools.internal.lttng2.ui.views.control.util.IRemoteSystemProxy#createCommandShell()
- */
@Override
public ICommandShell createCommandShell() throws ExecutionException {
ICommandShell shell = new CommandShell(this);
return shell;
}
- /* (non-Javadoc)
- * @see org.eclipse.linuxtools.internal.lttng2.ui.views.control.util.IRemoteSystemProxy#addCommunicationListener(org.eclipse.rse.core.subsystems.ICommunicationsListener)
- */
@Override
public void addCommunicationListener(ICommunicationsListener listener) {
IConnectorService[] css = fHost.getConnectorServices();
}
}
- /* (non-Javadoc)
- * @see org.eclipse.linuxtools.internal.lttng2.ui.views.control.util.IRemoteSystemProxy#removeCommunicationListener(org.eclipse.rse.core.subsystems.ICommunicationsListener)
- */
@Override
public void removeCommunicationListener(ICommunicationsListener listener) {
IConnectorService[] css = fHost.getConnectorServices();