mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-10 12:03:16 +02:00
Terminal: Fix processing of terminal connector extension point
This commit is contained in:
parent
081c2341a2
commit
2565d3af28
3 changed files with 6 additions and 6 deletions
|
@ -23,7 +23,7 @@ import org.eclipse.tm.internal.terminal.provisional.api.provider.TerminalConnect
|
|||
* A contributed connection type to manage a single connection.
|
||||
*
|
||||
* Implementations of this class are contributed through the
|
||||
* <code>org.eclipse.tm.terminal.terminalConnectors</code> extension point. This
|
||||
* <code>org.eclipse.tm.terminal.control.connectors</code> extension point. This
|
||||
* class gives access to the static markup of a terminal connector extension as
|
||||
* well as providing the lifecycle management for the dynamically loaded
|
||||
* {@link TerminalConnectorImpl} instance, which performs the actual
|
||||
|
|
|
@ -59,14 +59,14 @@ public class TerminalConnectorExtension {
|
|||
* terminal connector is not yet instantiated to any real connection.
|
||||
*
|
||||
* @param id the id of the terminal connector in the
|
||||
* <code>org.eclipse.tm.terminal.terminalConnectors</code>
|
||||
* <code>org.eclipse.tm.terminal.control.connectors</code>
|
||||
* extension point
|
||||
* @return a new ITerminalConnector with id or <code>null</code> if there
|
||||
* is no extension with that id.
|
||||
* @since org.eclipse.tm.terminal 2.0
|
||||
*/
|
||||
public static ITerminalConnector makeTerminalConnector(String id) {
|
||||
IConfigurationElement[] config = RegistryFactory.getRegistry().getConfigurationElementsFor("org.eclipse.tm.terminal.terminalConnectors"); //$NON-NLS-1$
|
||||
IConfigurationElement[] config = RegistryFactory.getRegistry().getConfigurationElementsFor("org.eclipse.tm.terminal.control.connectors"); //$NON-NLS-1$
|
||||
for (int i = 0; i < config.length; i++) {
|
||||
if(id.equals(config[i].getAttribute("id"))) { //$NON-NLS-1$
|
||||
return makeConnector(config[i]);
|
||||
|
@ -82,12 +82,12 @@ public class TerminalConnectorExtension {
|
|||
* time.
|
||||
*
|
||||
* @return a new list of {@link ITerminalConnector} instances defined in the
|
||||
* <code>org.eclipse.tm.terminal.terminalConnectors</code>
|
||||
* <code>org.eclipse.tm.terminal.control.connectors</code>
|
||||
* extension point
|
||||
* @since org.eclipse.tm.terminal 2.0 return value is ITerminalConnector[]
|
||||
*/
|
||||
public static ITerminalConnector[] makeTerminalConnectors() {
|
||||
IConfigurationElement[] config = RegistryFactory.getRegistry().getConfigurationElementsFor("org.eclipse.tm.terminal.terminalConnectors"); //$NON-NLS-1$
|
||||
IConfigurationElement[] config = RegistryFactory.getRegistry().getConfigurationElementsFor("org.eclipse.tm.terminal.control.connectors"); //$NON-NLS-1$
|
||||
List result=new ArrayList();
|
||||
for (int i = 0; i < config.length; i++) {
|
||||
result.add(makeConnector(config[i]));
|
||||
|
|
|
@ -21,7 +21,7 @@ import org.eclipse.tm.internal.terminal.provisional.api.TerminalState;
|
|||
|
||||
/**
|
||||
* Abstract base class for all terminal connector implementations to be
|
||||
* registered via the <code>org.eclipse.tm.terminal.terminalConnectors</code>
|
||||
* registered via the <code>org.eclipse.tm.terminal.control.connectors</code>
|
||||
* extension point.
|
||||
*
|
||||
* @since org.eclipse.tm.terminal 2.0
|
||||
|
|
Loading…
Add table
Reference in a new issue