1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

[259363][api][rseterminals] Move RSE-Terminals out of incubation

This commit is contained in:
Martin Oberhuber 2008-12-19 14:26:08 +00:00
parent f304881272
commit 24c87c49f8
28 changed files with 172 additions and 30 deletions

View file

@ -435,10 +435,10 @@
<feature url="features/org.eclipse.rse.remotecdt_2.1.100.qualifier.jar" id="org.eclipse.rse.remotecdt" version="2.1.100.qualifier">
<category name="TM and RSE 3.1"/>
</feature>
<feature url="features/org.eclipse.rse.terminals_0.1.100.qualifier.jar" id="org.eclipse.rse.terminals" version="0.1.100.qualifier">
<feature url="features/org.eclipse.rse.terminals_1.0.0.qualifier.jar" id="org.eclipse.rse.terminals" version="1.0.0.qualifier">
<category name="TM and RSE 3.1"/>
</feature>
<feature url="features/org.eclipse.rse.tests_3.0.100.qualifier.jar" id="org.eclipse.rse.tests" version="3.0.100.qualifier">
<feature url="features/org.eclipse.rse.tests_3.1.0.qualifier.jar" id="org.eclipse.rse.tests" version="3.1.0.qualifier">
<category name="TM and RSE 3.1"/>
</feature>
<feature url="features/org.eclipse.rse.useractions_1.1.100.qualifier.jar" id="org.eclipse.rse.useractions" version="1.1.100.qualifier">

View file

@ -25,6 +25,8 @@
;../org.eclipse.rse.subsystems.shells.local/src
;../org.eclipse.rse.subsystems.shells.ssh/src
;../org.eclipse.rse.subsystems.shells.telnet/src
;../org.eclipse.rse.subsystems.terminals.core/src
;../org.eclipse.rse.subsystems.terminals.ssh/src
;../org.eclipse.rse.ui/model
;../org.eclipse.rse.ui/UI
;../org.eclipse.rse.ui/subsystems"
@ -72,7 +74,6 @@ org.eclipse.rse.files.ui.dialogs
org.eclipse.rse.files.ui.resources
org.eclipse.rse.files.ui.widgets
org.eclipse.rse.filters
org.eclipse.rse.internal.services.terminals
org.eclipse.rse.logging
org.eclipse.rse.model
org.eclipse.rse.persistence
@ -92,6 +93,7 @@ org.eclipse.rse.services.files
org.eclipse.rse.services.processes
org.eclipse.rse.services.search
org.eclipse.rse.services.shells
org.eclipse.rse.services.terminals
org.eclipse.rse.shells.ui
org.eclipse.rse.shells.ui.view
org.eclipse.rse.subsystems.files.core
@ -117,6 +119,9 @@ org.eclipse.rse.subsystems.shells.dstore
org.eclipse.rse.subsystems.shells.local
org.eclipse.rse.subsystems.shells.ssh
org.eclipse.rse.subsystems.shells.telnet
org.eclipse.rse.subsystems.terminals.core
org.eclipse.rse.subsystems.terminals.core.elements
org.eclipse.rse.subsystems.terminals.ssh
org.eclipse.rse.ui
org.eclipse.rse.ui.actions
org.eclipse.rse.ui.dialogs

View file

@ -61,7 +61,7 @@
<topic label="org.eclipse.rse.services.processes" href="reference/api/org/eclipse/rse/services/processes/package-summary.html"/>
<topic label="org.eclipse.rse.services.search" href="reference/api/org/eclipse/rse/services/search/package-summary.html"/>
<topic label="org.eclipse.rse.services.shells" href="reference/api/org/eclipse/rse/services/shells/package-summary.html"/>
<topic label="org.eclipse.rse.internal.services.terminals" href="reference/api/org/eclipse/rse/internal/services/terminals/package-summary.html"/>
<topic label="org.eclipse.rse.services.terminals" href="reference/api/org/eclipse/rse/services/terminals/package-summary.html"/>
</topic>
<topic label="Services Implementations" href="provisional_api.html">
<topic label="org.eclipse.rse.services.dstore" href="reference/api/org/eclipse/rse/services/dstore/package-summary.html"/>
@ -103,6 +103,11 @@
<topic label="org.eclipse.rse.subsystems.shells.ssh" href="reference/api/org/eclipse/rse/subsystems/shells/ssh/package-summary.html"/>
<topic label="org.eclipse.rse.subsystems.shells.telnet" href="reference/api/org/eclipse/rse/subsystems/shells/telnet/package-summary.html"/>
</topic>
<topic label="Terminal Subsystem" href="provisional_api.html">
<topic label="org.eclipse.rse.subsystems.terminals.core" href="reference/api/org/eclipse/rse/subsystems/terminals/core/package-summary.html"/>
<topic label="org.eclipse.rse.subsystems.terminals.core.elements" href="reference/api/org/eclipse/rse/subsystems/terminals/core/elements/package-summary.html"/>
<topic label="org.eclipse.rse.subsystems.terminals.ssh" href="reference/api/org/eclipse/rse/subsystems/terminals/ssh/package-summary.html"/>
</topic>
<topic label="User Interface" href="provisional_api.html">
<topic label="org.eclipse.rse.ui" href="reference/api/org/eclipse/rse/ui/package-summary.html"/>
<topic label="org.eclipse.rse.ui.actions" href="reference/api/org/eclipse/rse/ui/actions/package-summary.html"/>

View file

@ -13,7 +13,7 @@
# NLS_ENCODING=UTF-8
# "featureName" property - name of the feature
featureName=RSE Terminals UI (Incubation)
featureName=RSE Terminals UI
# "providerName" property - name of the company that provides the feature
providerName=Eclipse.org

View file

@ -2,7 +2,7 @@
<feature
id="org.eclipse.rse.terminals"
label="%featureName"
version="0.1.100.qualifier"
version="1.0.0.qualifier"
provider-name="%providerName"
plugin="org.eclipse.rse.terminals.ui"
image="eclipse_update_120.jpg">

View file

@ -19,7 +19,7 @@
# This file should be translated.
# "featureName" property - name of the feature
featureName=RSE Terminals UI Source (Incubation)
featureName=RSE Terminals UI Source
# "providerName" property - name of the company that provides the feature
providerName=Eclipse.org

View file

@ -20,7 +20,7 @@
#
# Do not translate any values surrounded by {}
blurb=RSE Terminals UI Source (Incubation)\n\
blurb=RSE Terminals UI Source\n\
\n\
Version: {featureVersion}\n\
Build id: {0}\n\

View file

@ -12,5 +12,5 @@
# NLS_MESSAGEFORMAT_NONE
# NLS_ENCODING=UTF-8
pluginName=RSE Terminals UI Source (Incubation)
pluginName=RSE Terminals UI Source
providerName=Eclipse.org

View file

@ -20,9 +20,15 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
</natures>
</projectDescription>

View file

@ -2,11 +2,11 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.rse.subsystems.terminals.core;singleton:=true
Bundle-Version: 0.1.1.qualifier
Bundle-Version: 1.0.0.qualifier
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.ui;bundle-version="[3.0.0,4.0.0)",
org.eclipse.rse.core;bundle-version="[3.0.0,4.0.0)"
Eclipse-LazyStart: true

View file

@ -12,7 +12,7 @@
# NLS_MESSAGEFORMAT_NONE
# NLS_ENCODING=UTF-8
pluginName = RSE Terminals Core (Incubation)
pluginName = RSE Terminals Core
providerName = Eclipse.org
TerminalSubsystemName = Terminals

View file

@ -1,13 +1,13 @@
/********************************************************************************
* Copyright (c) 2008 IBM Corporation. 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
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
*
*
* Initial Contributors:
* The following IBM employees contributed to the Remote System Explorer
* component that contains this file: David McKnight.
*
*
* Contributors:
* {Name} (company) - description of contribution.
********************************************************************************/
@ -21,6 +21,20 @@ import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
import org.eclipse.rse.services.terminals.ITerminalService;
import org.eclipse.rse.services.terminals.ITerminalShell;
/**
* Base class that can be used for decorating an existing terminal service with
* additional functionality. By default, all method calls are passed through to
* the original service.
*
* <p>
* <strong>EXPERIMENTAL</strong>. This class or interface has been added as part
* of a work in progress. There is no guarantee that this API will work or that
* it will remain the same. Please do not use this API without consulting with
* the <a href="http://www.eclipse.org/dsdp/tm/">Target Management</a> team.
* </p>
*
* @since org.eclipse.rse.subsystems.terminals.core 1.0
*/
public class DelegatingTerminalService implements ITerminalService {
private IHost _host;

View file

@ -14,6 +14,16 @@ package org.eclipse.rse.subsystems.terminals.core;
import org.eclipse.rse.core.subsystems.ISubSystem;
import org.eclipse.rse.subsystems.terminals.core.elements.TerminalElement;
/**
* Specialized interface for remote terminal subsystems.
*
* <p>
* <strong>EXPERIMENTAL</strong>. This class or interface has been added as part
* of a work in progress. There is no guarantee that this API will work or that
* it will remain the same. Please do not use this API without consulting with
* the <a href="http://www.eclipse.org/dsdp/tm/">Target Management</a> team.
* </p>
*/
public interface ITerminalServiceSubSystem extends ISubSystem {
public void addChild(TerminalElement element);
@ -26,6 +36,7 @@ public interface ITerminalServiceSubSystem extends ISubSystem {
/**
* @return parent subsystem factory, cast to a
* ITerminalServiceSubSystemConfiguration
* @since 1.0
*/
public ITerminalServiceSubSystemConfiguration getParentRemoteTerminalSubSystemConfiguration();

View file

@ -14,10 +14,35 @@ import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.core.subsystems.ISubSystemConfiguration;
import org.eclipse.rse.services.terminals.ITerminalService;
/**
* An interface representing factories for creating TerminalServiceSubSystem
* objects.
*
* <p>
* <strong>EXPERIMENTAL</strong>. This class or interface has been added as part
* of a work in progress. There is no guarantee that this API will work or that
* it will remain the same. Please do not use this API without consulting with
* the <a href="http://www.eclipse.org/dsdp/tm/">Target Management</a> team.
* </p>
*/
public interface ITerminalServiceSubSystemConfiguration extends
ISubSystemConfiguration {
/**
* Return the terminal service.
*
* @param host connection
* @return the internal terminal service interface.
* @since 1.0
*/
public ITerminalService getTerminalService(IHost host);
/**
* Create the terminal service.
*
* @param host connection
* @return the new terminal service interface.
* @since 1.0
*/
public ITerminalService createTerminalService(IHost host);
}

View file

@ -36,6 +36,13 @@ import org.eclipse.swt.widgets.Display;
/**
* A Subsystem that has terminal instances as children.
*
* <p>
* <strong>EXPERIMENTAL</strong>. This class or interface has been added as part
* of a work in progress. There is no guarantee that this API will work or that
* it will remain the same. Please do not use this API without consulting with
* the <a href="http://www.eclipse.org/dsdp/tm/">Target Management</a> team.
* </p>
*/
public class TerminalServiceSubSystem extends SubSystem implements
ITerminalServiceSubSystem, ICommunicationsListener {
@ -46,6 +53,8 @@ public class TerminalServiceSubSystem extends SubSystem implements
/**
* Constructor.
*
* @since 1.0
*/
public TerminalServiceSubSystem(IHost host,
IConnectorService connectorService, ITerminalService hostService) {
@ -66,6 +75,8 @@ public class TerminalServiceSubSystem extends SubSystem implements
/**
* Return the Terminal Service associated with this subsystem.
*
* @since 1.0
*/
public ITerminalService getTerminalService() {
return _hostService;
@ -122,6 +133,8 @@ public class TerminalServiceSubSystem extends SubSystem implements
/**
* Set the terminal service associated with this subsystem.
*
* @since 1.0
*/
public void setTerminalService(ITerminalService service) {
_hostService = service;
@ -196,6 +209,10 @@ public class TerminalServiceSubSystem extends SubSystem implements
return (configuration instanceof ITerminalServiceSubSystemConfiguration);
}
/**
* @inheritDoc
* @since 1.0
*/
public ITerminalServiceSubSystemConfiguration getParentRemoteTerminalSubSystemConfiguration() {
return (ITerminalServiceSubSystemConfiguration) super
.getSubSystemConfiguration();

View file

@ -19,6 +19,18 @@ import org.eclipse.rse.core.subsystems.SubSystemConfiguration;
import org.eclipse.rse.services.IService;
import org.eclipse.rse.services.terminals.ITerminalService;
/**
* The implementation of the ITerminalServiceSubSystemConfiguration interface
* contains information about what features the subsystem supports, and creates
* TerminalServiceSubSystem instances.
*
* <p>
* <strong>EXPERIMENTAL</strong>. This class or interface has been added as part
* of a work in progress. There is no guarantee that this API will work or that
* it will remain the same. Please do not use this API without consulting with
* the <a href="http://www.eclipse.org/dsdp/tm/">Target Management</a> team.
* </p>
*/
public abstract class TerminalServiceSubSystemConfiguration extends
SubSystemConfiguration implements
ITerminalServiceSubSystemConfiguration {
@ -34,6 +46,10 @@ public abstract class TerminalServiceSubSystemConfiguration extends
return false;
}
/**
* @inheritDoc
* @since 1.0
*/
public final ITerminalService getTerminalService(IHost host) {
ITerminalService service = (ITerminalService) _services.get(host);
if (service == null) {

View file

@ -19,6 +19,13 @@ import org.eclipse.rse.subsystems.terminals.core.ITerminalServiceSubSystem;
/**
* An element in the RSE Tree that resembles a Terminal connection.
*
* <p>
* <strong>EXPERIMENTAL</strong>. This class or interface has been added as part
* of a work in progress. There is no guarantee that this API will work or that
* it will remain the same. Please do not use this API without consulting with
* the <a href="http://www.eclipse.org/dsdp/tm/">Target Management</a> team.
* </p>
*/
public class TerminalElement extends AbstractResource {
private String name;
@ -63,15 +70,19 @@ public class TerminalElement extends AbstractResource {
return name.hashCode() ;
}
/**
/**
* Return the back-end connection of this terminal instance.
*
* @since 1.0
*/
public ITerminalShell getTerminalShell() {
return terminalShell;
}
/**
/**
* Set the back-end connection of this terminal instance.
*
* @since 1.0
*/
public void setTerminalShell(ITerminalShell terminalShell) {
this.terminalShell = terminalShell;

View file

@ -20,9 +20,15 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
</natures>
</projectDescription>

View file

@ -2,13 +2,13 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.rse.subsystems.terminals.ssh;singleton:=true
Bundle-Version: 0.1.0.qualifier
Bundle-Version: 1.0.0.qualifier
Bundle-Localization: plugin
Require-Bundle: 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.ssh;bundle-version="[2.1.0,3.0.0)",
org.eclipse.rse.services.ssh;bundle-version="[2.1.0,2.2.0)",
org.eclipse.rse.subsystems.terminals.core;bundle-version="[0.1.0,0.2.0)",
org.eclipse.rse.subsystems.terminals.core;bundle-version="[1.0.0,2.0.0)",
org.eclipse.rse.core;bundle-version="[3.0.0,4.0.0)",
org.eclipse.rse.ui;bundle-version="[3.0.0,4.0.0)"
Eclipse-LazyStart: true

View file

@ -12,7 +12,7 @@
# NLS_MESSAGEFORMAT_NONE
# NLS_ENCODING=UTF-8
pluginName = RSE SSH Terminals (Incubation)
pluginName = RSE SSH Terminals
providerName = Eclipse.org
SshTerminalSubsystemName=Ssh Terminals

View file

@ -22,6 +22,16 @@ import org.eclipse.rse.services.terminals.ITerminalService;
import org.eclipse.rse.subsystems.terminals.core.TerminalServiceSubSystem;
import org.eclipse.rse.subsystems.terminals.core.TerminalServiceSubSystemConfiguration;
/**
* An SSH Terminal Subsystem Factory.
*
* <p>
* <strong>EXPERIMENTAL</strong>. This class or interface has been added as part
* of a work in progress. There is no guarantee that this API will work or that
* it will remain the same. Please do not use this API without consulting with
* the <a href="http://www.eclipse.org/dsdp/tm/">Target Management</a> team.
* </p>
*/
public class SshTerminalSubSystemConfiguration extends
TerminalServiceSubSystemConfiguration {
@ -47,6 +57,10 @@ public class SshTerminalSubSystemConfiguration extends
return subsys;
}
/**
* @inheritDoc
* @since 1.0
*/
public ITerminalService createTerminalService(IHost host) {
SshConnectorService cserv = (SshConnectorService) getConnectorService(host);
return new SshTerminalService(cserv);

View file

@ -20,9 +20,15 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
</natures>
</projectDescription>

View file

@ -2,16 +2,16 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.rse.terminals.ui;singleton:=true
Bundle-Version: 0.1.100.qualifier
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: org.eclipse.rse.internal.terminals.ui.Activator
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.core.expressions,
org.eclipse.ui,
org.eclipse.ui.views,
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.core;bundle-version="[3.0.0,4.0.0)",
org.eclipse.rse.ui;bundle-version="[3.1.0,4.0.0)",
org.eclipse.rse.subsystems.terminals.core;bundle-version="[0.1.0,0.2.0)",
org.eclipse.rse.subsystems.terminals.core;bundle-version="[1.0.0,2.0.0)",
org.eclipse.tm.terminal;bundle-version="[2.0.0,2.1.0)"
Bundle-ActivationPolicy: lazy
Eclipse-LazyStart: true

View file

@ -20,7 +20,7 @@
#
# Do not translate any values surrounded by {}
blurb=RSE Terminals UI (Incubation)\n\
blurb=RSE Terminals UI\n\
\n\
Version: {featureVersion}\n\
Build id: {0}\n\

View file

@ -14,7 +14,7 @@
# NLS_MESSAGEFORMAT_NONE
# NLS_ENCODING=UTF-8
pluginName = RSE Terminals UI (Incubation)
pluginName = RSE Terminals UI
providerName = Eclipse.org
terminalsView.name = Terminals

View file

@ -2,7 +2,7 @@
<feature
id="org.eclipse.rse.tests"
label="%featureName"
version="3.0.100.qualifier"
version="3.1.0.qualifier"
provider-name="%providerName">
<description>

View file

@ -20,9 +20,15 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
</natures>
</projectDescription>

View file

@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.rse.tests;singleton:=true
Bundle-Version: 3.0.100.qualifier
Bundle-Version: 3.1.0.qualifier
Bundle-Activator: org.eclipse.rse.tests.RSETestsPlugin
Bundle-Vendor: %providerName
Bundle-Localization: plugin
@ -18,7 +18,7 @@ Require-Bundle: org.junit,
org.eclipse.rse.subsystems.files.local;bundle-version="[2.1.0,3.0.0)",
org.eclipse.rse.subsystems.processes.core;bundle-version="[3.0.0,4.0.0)",
org.eclipse.rse.subsystems.shells.core;bundle-version="[3.0.0,4.0.0)",
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.services.files.ftp;bundle-version="[3.0.0,4.0.0)",
org.eclipse.rse.services.ssh;bundle-version="[2.1.0,3.0.0)",
org.eclipse.rse.subsystems.files.ftp;bundle-version="[2.1.0,3.0.0)",
@ -26,7 +26,7 @@ Require-Bundle: org.junit,
org.eclipse.rse.efs,
org.eclipse.rse.tests.framework;bundle-version="[2.0.0,3.0.0)",
org.apache.commons.net;bundle-version="[1.4.1,2.0.0)",
org.eclipse.rse.subsystems.terminals.core;bundle-version="0.1.1"
org.eclipse.rse.subsystems.terminals.core;bundle-version="[1.0.0,2.0.0)"
Bundle-ActivationPolicy: lazy
Eclipse-LazyStart: true
Bundle-RequiredExecutionEnvironment: J2SE-1.4