[Esbox-commits] r132 - in trunk/org.indt.esbox.ui: META-INF src/org/indt/esbox/ui/connection
raul at garage.maemo.org
raul at garage.maemo.org
Mon Oct 15 20:48:15 EEST 2007
Author: raul
Date: 2007-10-15 20:48:15 +0300 (Mon, 15 Oct 2007)
New Revision: 132
Modified:
trunk/org.indt.esbox.ui/META-INF/MANIFEST.MF
trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/connection/ExecConnection.java
trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/connection/Sftp.java
Log:
Modified: trunk/org.indt.esbox.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/org.indt.esbox.ui/META-INF/MANIFEST.MF 2007-10-15 17:45:05 UTC (rev 131)
+++ trunk/org.indt.esbox.ui/META-INF/MANIFEST.MF 2007-10-15 17:48:15 UTC (rev 132)
@@ -19,5 +19,6 @@
com.jcraft.jsch
Eclipse-LazyStart: true
Export-Package: org.indt.esbox.ui,
+ org.indt.esbox.ui.connection,
org.indt.esbox.ui.wizards
Bundle-Localization: plugin
Modified: trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/connection/ExecConnection.java
===================================================================
--- trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/connection/ExecConnection.java 2007-10-15 17:45:05 UTC (rev 131)
+++ trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/connection/ExecConnection.java 2007-10-15 17:48:15 UTC (rev 132)
@@ -11,6 +11,9 @@
*******************************************************************************/
package org.indt.esbox.ui.connection;
+import java.io.IOException;
+import java.io.InputStream;
+
import org.eclipse.swt.widgets.Shell;
import org.indt.esbox.core.scratchbox.ScratchboxException;
import org.indt.esbox.ui.UIActivator;
@@ -97,7 +100,7 @@
*/
public boolean prompt() {
Shell shell = UIActivator.getDefault().getWorkbench().getDisplay().getActiveShell();
- UsernameHostInputDialog prompt = new UsernameHostInputDialog(shell,"Information Required","Insert the host and the username to perform SSH connection");
+ UsernameHostInputDialog prompt = new UsernameHostInputDialog(shell,"Information Required","Insert the host and the username to execute command in remote device");
prompt.open();
user = prompt.getUsername();
host = prompt.getHost();
@@ -129,4 +132,26 @@
}
}
+
+ /**
+ *
+ * @return
+ * @throws IOException
+ */
+ public InputStream getInputStream() throws IOException {
+ if (cExec.isConnected())
+ return cExec.getExtInputStream();
+ return null;
+ }
+
+ /**
+ *
+ * @return
+ * @throws IOException
+ */
+ public InputStream getErrInputStream() throws IOException {
+ if (cExec.isConnected())
+ return cExec.getErrStream();
+ return null;
+ }
}
\ No newline at end of file
Modified: trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/connection/Sftp.java
===================================================================
--- trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/connection/Sftp.java 2007-10-15 17:45:05 UTC (rev 131)
+++ trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/connection/Sftp.java 2007-10-15 17:48:15 UTC (rev 132)
@@ -88,7 +88,7 @@
*/
public boolean prompt() {
Shell shell = CoreActivator.getDefault().getWorkbench().getDisplay().getActiveShell();
- UsernameHostInputDialog prompt = new UsernameHostInputDialog(shell,"Information Required","Insert the host and the username to perform SFTP connection");
+ UsernameHostInputDialog prompt = new UsernameHostInputDialog(shell,"Information Required","Insert the host and the username to copy files to remote target");
prompt.open();
user = prompt.getUsername();
host = prompt.getHost();
More information about the Esbox-commits
mailing list