mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 23:25:26 +02:00
[258631][api] ITerminalService should be public API
This commit is contained in:
parent
24c87c49f8
commit
cfb4e71bca
4 changed files with 12 additions and 55 deletions
|
@ -1,12 +1,12 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006, 2008 Wind River Systems, Inc.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* Martin Oberhuber (Wind River) - initial API and implementation
|
||||
* Copyright (c) 2006, 2008 Wind River Systems, Inc. and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* Martin Oberhuber (Wind River) - initial API and implementation
|
||||
* Anna Dushistova (MontaVista) - adapted from SshShellWriterThread
|
||||
* Anna Dushistova (MontaVista) - [240523] [rseterminals] Provide a generic adapter factory that adapts any ITerminalService to an IShellService
|
||||
*******************************************************************************/
|
||||
|
@ -24,7 +24,7 @@ public class TerminalServiceShellWriterThread extends Thread {
|
|||
|
||||
/**
|
||||
* constructor for terminal service shell writer thread
|
||||
*
|
||||
*
|
||||
* @param outputWriter
|
||||
* PrintWriter to write to in separate Thread
|
||||
*/
|
||||
|
@ -47,7 +47,7 @@ public class TerminalServiceShellWriterThread extends Thread {
|
|||
/**
|
||||
* Write command to remote side. Wait until the thread takes the command (no
|
||||
* queuing).
|
||||
*
|
||||
*
|
||||
* @param command
|
||||
* to send
|
||||
* @return boolean true if command was sent ok
|
||||
|
|
|
@ -1,35 +0,0 @@
|
|||
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="Author" content="Martin Oberhuber (Wind River)">
|
||||
<meta name="Copyright" content="Copyright (c) 2008 Wind River Systems, Inc. and others.">
|
||||
<meta name="License" content="Made available under the terms of the Eclipse Public License v1.0.">
|
||||
<title>Package-level Javadoc</title>
|
||||
</head>
|
||||
<body>
|
||||
Application programming interface for the RSE Base Shell and Terminal Services.
|
||||
<h2>
|
||||
Package Specification</h2>
|
||||
<p>
|
||||
The RSE Terminal Services packages provides interfaces and basic utility classes
|
||||
for shell or terminal connections. The classes in this package are especially designed
|
||||
to be extendable by means of the <b>Decorator</b> pattern as well as the <b>Adapter</b>
|
||||
pattern:
|
||||
<ul>
|
||||
<li><code><a href="ProcessBaseShell.html">ProcessBaseShell</a></code>
|
||||
is a sample class implementing IBaseShell, that wraps an existing
|
||||
<code><a href="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Process.html">java.lang.Process</a></code>
|
||||
object in the IBaseShell interface for easier consumption.</li>
|
||||
</ul>
|
||||
The classes and interfaces in this package are designed to have only minimal
|
||||
dependency into Eclipse core APIs, such that Services can eventually be re-used in
|
||||
environments outside Eclipse. Especially
|
||||
<code><a href="IBaseShell.html">IBaseShell</a></code>, along with
|
||||
<code><a href="ProcessBaseShell.html">ProcessBaseShell</a></code> and
|
||||
<code><a href="BaseShellDecorator.html">BaseShellDecorator</a></code> are usable in
|
||||
any environment, provided that mock objects are provided for Eclipse
|
||||
IAdaptable and PlatformObject.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
|
@ -18,8 +18,6 @@ import java.io.OutputStream;
|
|||
import org.eclipse.core.runtime.IAdaptable;
|
||||
import org.eclipse.core.runtime.PlatformObject;
|
||||
|
||||
import org.eclipse.rse.internal.services.terminals.ProcessBaseShell;
|
||||
|
||||
/**
|
||||
* A basic shell, representing the connection to some process that may be
|
||||
* running local or remote. Clients may implement this interface.
|
||||
|
@ -28,17 +26,11 @@ import org.eclipse.rse.internal.services.terminals.ProcessBaseShell;
|
|||
* {@link PlatformObject} for providing the {@link #getAdapter(Class)}
|
||||
* functionality.
|
||||
*
|
||||
* A simple implementation of IBaseShell is the {@link ProcessBaseShell}, which
|
||||
* wraps a Java {@link java.lang.Process} object in the IBaseShell interface to
|
||||
* provide more convenient access to it through the {{@link #isActive()} and {{@link #waitFor(long)}
|
||||
* methods, as well as making it adaptable.
|
||||
*
|
||||
* The resulting IBaseShell can be decorated by clients with additional
|
||||
* functionality easily by instantiating their subclassed variant of
|
||||
* {@link BaseShellDecorator}.
|
||||
*
|
||||
* @see java.lang.Process
|
||||
* @see org.eclipse.rse.internal.services.terminals.ProcessBaseShell
|
||||
* @see BaseShellDecorator
|
||||
* @since org.eclipse.rse.services 3.1
|
||||
*/
|
||||
|
|
|
@ -2,12 +2,12 @@ Manifest-Version: 1.0
|
|||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: %pluginName
|
||||
Bundle-SymbolicName: org.eclipse.rse.subsystems.shells.telnet;singleton:=true
|
||||
Bundle-Version: 1.1.0.qualifier
|
||||
Bundle-Version: 1.2.0.qualifier
|
||||
Bundle-Activator: org.eclipse.rse.internal.subsystems.shells.telnet.Activator
|
||||
Bundle-Localization: plugin
|
||||
Require-Bundle: org.eclipse.ui,
|
||||
org.eclipse.core.runtime,
|
||||
org.eclipse.rse.services;bundle-version="[3.0.0,4.0.0)",
|
||||
org.eclipse.rse.services;bundle-version="[3.1.0,4.0.0)",
|
||||
org.eclipse.rse.connectorservice.telnet;bundle-version="[1.1.0,2.0.0)",
|
||||
org.eclipse.rse.services.telnet;bundle-version="[1.0.0,2.0.0)",
|
||||
org.eclipse.rse.subsystems.shells.core;bundle-version="[3.0.0,4.0.0)",
|
||||
|
|
Loading…
Add table
Reference in a new issue