View | Details | Raw Unified | Return to bug 170910 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/rse/services/shells/AbstractHostShell.java (+21 lines)
Lines 16-21 Link Here
16
16
17
package org.eclipse.rse.services.shells;
17
package org.eclipse.rse.services.shells;
18
18
19
import java.io.IOException;
20
import java.io.InputStream;
21
import java.io.OutputStream;
22
19
23
20
public abstract class AbstractHostShell implements IHostShell
24
public abstract class AbstractHostShell implements IHostShell
21
{
25
{
Lines 34-37 Link Here
34
		}
38
		}
35
	}
39
	}
36
40
41
	public InputStream getInputStream() throws IOException  {
42
		return null;
43
	}
44
45
	public OutputStream getOutputStream() throws IOException {
46
		return null;
47
	}
48
49
	public boolean isLocalEcho() {
50
		return false;
51
	}
52
53
	public void setTerminalSize(int newWidth, int newHeight) {
54
		// TODO Auto-generated method stub
55
		
56
	}
57
37
}
58
}
(-)src/org/eclipse/rse/services/shells/IHostShell.java (+29 lines)
Lines 16-27 Link Here
16
16
17
package org.eclipse.rse.services.shells;
17
package org.eclipse.rse.services.shells;
18
18
19
import java.io.IOException;
20
import java.io.InputStream;
21
import java.io.OutputStream;
22
19
23
20
public interface IHostShell 
24
public interface IHostShell 
21
{
25
{
22
	public boolean isActive();
26
	public boolean isActive();
23
	public void writeToShell(String command);
27
	public void writeToShell(String command);
24
	
28
	
29
	/**
30
	 * 
31
	 * @return input stream for the current shell 
32
	 * @throws IOException 
33
	 */
34
	public InputStream getInputStream() throws IOException;
35
	
36
	/**
37
	 * 
38
	 * @return output stream for the current shell 
39
	 */
40
	public OutputStream getOutputStream() throws IOException;
41
	
25
	public void addOutputListener(IHostShellOutputListener listener);
42
	public void addOutputListener(IHostShellOutputListener listener);
26
43
27
	public IHostShellOutputReader getStandardOutputReader();
44
	public IHostShellOutputReader getStandardOutputReader();
Lines 29-32 Link Here
29
	
46
	
30
	public void exit();
47
	public void exit();
31
	
48
	
49
	/**
50
	 * @return true if a local echo is needed.
51
	 * TODO:Michael Scharf: this should be handed within the connection....
52
	 */
53
	boolean isLocalEcho();
54
55
    /**
56
     * Notify the remote site that the size of the terminal has changed.
57
     * @param newWidth
58
     * @param newHeight
59
     */
60
    void setTerminalSize(int newWidth, int newHeight);
32
}
61
}

Return to bug 170910