1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 14:55:41 +02:00

[200541] Update Javadocs

This commit is contained in:
Martin Oberhuber 2008-04-04 16:09:43 +00:00
parent 9cae2425af
commit c7784b2cfb
2 changed files with 31 additions and 16 deletions

View file

@ -15,7 +15,8 @@ import org.eclipse.tm.internal.terminal.provisional.api.TerminalState;
import org.eclipse.tm.internal.terminal.provisional.api.provider.TerminalConnectorImpl; import org.eclipse.tm.internal.terminal.provisional.api.provider.TerminalConnectorImpl;
/** /**
* A terminal connector instance, also known as terminal connection type. * An {@link ITerminalConnector} instance, also known as terminal connection
* type, for maintaining a single terminal connection.
* *
* It provides all terminal connector functions that can be provided by static * It provides all terminal connector functions that can be provided by static
* markup without loading the actual implementation class. The actual * markup without loading the actual implementation class. The actual
@ -51,7 +52,7 @@ public class TerminalConnector implements ITerminalConnector {
TerminalConnectorImpl makeConnector() throws Exception; TerminalConnectorImpl makeConnector() throws Exception;
} }
/** /**
* * The factory for creating impl instances.
*/ */
private final TerminalConnector.Factory fTerminalConnectorFactory; private final TerminalConnector.Factory fTerminalConnectorFactory;
/** /**
@ -77,9 +78,13 @@ public class TerminalConnector implements ITerminalConnector {
*/ */
private ISettingsStore fStore; private ISettingsStore fStore;
/** /**
* @param terminalConnectorFactory * Constructor for the terminal connector.
* @param id *
* @param name * @param terminalConnectorFactory Factory for lazily instantiating the
* TerminalConnectorImpl when needed.
* @param id terminal connector ID. The connector is publicly known under
* this ID.
* @param name translatable name to display the connector in the UI.
*/ */
public TerminalConnector(TerminalConnector.Factory terminalConnectorFactory, String id, String name) { public TerminalConnector(TerminalConnector.Factory terminalConnectorFactory, String id, String name) {
fTerminalConnectorFactory = terminalConnectorFactory; fTerminalConnectorFactory = terminalConnectorFactory;

View file

@ -24,12 +24,19 @@ import org.eclipse.tm.internal.terminal.provisional.api.ITerminalControl;
* @since org.eclipse.tm.terminal 2.0 * @since org.eclipse.tm.terminal 2.0
*/ */
public abstract class TerminalConnectorImpl { public abstract class TerminalConnectorImpl {
/** /**
* Called once after the constructor * Initialize this connector. This is called once after the constructor, in
* @throws Exception * order to perform any required initializations such as loading required
* native libraries. Any work that may lead to runtime exceptions should be
* done in this method rather than in the constructor.
*
* @throws Exception when the connector fails to initialize (due to missing
* required libraries, for instance).
*/ */
public void initialize() throws Exception { public void initialize() throws Exception {
} }
/** /**
* Connect using the current state of the settings. * Connect using the current state of the settings.
* @param control Used to inform the UI about state changes and messages from the connection. * @param control Used to inform the UI about state changes and messages from the connection.
@ -79,17 +86,20 @@ public abstract class TerminalConnectorImpl {
* store the state of the connection. * store the state of the connection.
*/ */
abstract public void load(ISettingsStore store); abstract public void load(ISettingsStore store);
/** /**
* When the view or dialog containing the terminal is closed, * When the view or dialog containing the terminal is closed, the state of
* the state of the connection is saved into the settings store <code>store</code> * the connection is saved into the settings store <code>store</code>
* @param store *
* @param store the store for persisting settings.
*/ */
abstract public void save(ISettingsStore store); abstract public void save(ISettingsStore store);
/** /**
* Notify the remote site that the size of the terminal has changed. * Notify the remote site that the size of the terminal has changed.
* @param newWidth *
* @param newHeight * @param newWidth the new width in characters.
* @param newHeight the new height in characters.
*/ */
public void setTerminalSize(int newWidth, int newHeight) { public void setTerminalSize(int newWidth, int newHeight) {
} }