diff options
Diffstat (limited to 'rse/plugins/org.eclipse.rse.subsystems.shells.telnet')
15 files changed, 0 insertions, 619 deletions
diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/.classpath b/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/.classpath deleted file mode 100644 index ce7393340..000000000 --- a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/.classpath +++ /dev/null @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<classpath> - <classpathentry kind="src" path="src"/> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/> - <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> - <classpathentry kind="output" path="bin"/> -</classpath> diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/.cvsignore b/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/.cvsignore deleted file mode 100644 index ba077a403..000000000 --- a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -bin diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/.project b/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/.project deleted file mode 100644 index 4ba47ae9c..000000000 --- a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/.project +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>org.eclipse.rse.subsystems.shells.telnet</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.ManifestBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.pde.SchemaBuilder</name> - <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> diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/.settings/org.eclipse.jdt.core.prefs b/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 381fc6eb0..000000000 --- a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,71 +0,0 @@ -#Fri Mar 28 14:14:24 CET 2008 -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2 -org.eclipse.jdt.core.compiler.compliance=1.4 -org.eclipse.jdt.core.compiler.doc.comment.support=enabled -org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.autoboxing=warning -org.eclipse.jdt.core.compiler.problem.deprecation=warning -org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=enabled -org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled -org.eclipse.jdt.core.compiler.problem.discouragedReference=warning -org.eclipse.jdt.core.compiler.problem.emptyStatement=warning -org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning -org.eclipse.jdt.core.compiler.problem.fallthroughCase=warning -org.eclipse.jdt.core.compiler.problem.fieldHiding=warning -org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning -org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning -org.eclipse.jdt.core.compiler.problem.forbiddenReference=error -org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning -org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning -org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning -org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning -org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning -org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled -org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled -org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled -org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=protected -org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore -org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=error -org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore -org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore -org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=enabled -org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public -org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=all_standard_tags -org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore -org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled -org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public -org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore -org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning -org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning -org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning -org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning -org.eclipse.jdt.core.compiler.problem.nullReference=warning -org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=error -org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore -org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning -org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning -org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled -org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning -org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled -org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore -org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning -org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning -org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore -org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning -org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore -org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning -org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore -org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled -org.eclipse.jdt.core.compiler.problem.unusedImport=warning -org.eclipse.jdt.core.compiler.problem.unusedLabel=warning -org.eclipse.jdt.core.compiler.problem.unusedLocal=warning -org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled -org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled -org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning -org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning -org.eclipse.jdt.core.compiler.source=1.3 diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/META-INF/MANIFEST.MF b/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/META-INF/MANIFEST.MF deleted file mode 100644 index b72a82eac..000000000 --- a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/META-INF/MANIFEST.MF +++ /dev/null @@ -1,23 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: %pluginName -Bundle-SymbolicName: org.eclipse.rse.subsystems.shells.telnet;singleton:=true -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.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="[2.0.0,2.1.0)", - org.eclipse.rse.subsystems.shells.core;bundle-version="[3.0.0,4.0.0)", - org.eclipse.rse.subsystems.files.core;bundle-version="[3.0.0,4.0.0)", - org.eclipse.rse.shells.ui;bundle-version="[3.0.0,4.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)" -Export-Package: org.eclipse.rse.internal.subsystems.shells.telnet;x-internal:=true, - org.eclipse.rse.subsystems.shells.telnet -Bundle-ActivationPolicy: lazy -Eclipse-LazyStart: true -Bundle-Vendor: %providerName -Bundle-RequiredExecutionEnvironment: J2SE-1.4 diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/about.html b/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/about.html deleted file mode 100644 index d4cc693f9..000000000 --- a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/about.html +++ /dev/null @@ -1,28 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml"> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> -<title>About</title> -</head> -<body lang="EN-US"> -<h2>About This Content</h2> - -<p>June 5, 2007</p> -<h3>License</h3> - -<p>The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available -at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>. -For purposes of the EPL, "Program" will mean the Content.</p> - -<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is -being redistributed by another party ("Redistributor") and different terms and conditions may -apply to your use of any object code in the Content. Check the Redistributor's license that was -provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise -indicated below, the terms and conditions of the EPL still apply to any source code in the Content -and such source code may be obtained at <a href="http://www.eclipse.org">http://www.eclipse.org</a>.</p> - -</body> -</html>
\ No newline at end of file diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/build.properties b/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/build.properties deleted file mode 100644 index b0b0052b0..000000000 --- a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/build.properties +++ /dev/null @@ -1,19 +0,0 @@ -############################################################################### -# Copyright (c) 2005, 2007 IBM Corporation 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: -# IBM Corporation - initial API and implementation -############################################################################### -bin.includes = .,\ - META-INF/,\ - about.html,\ - plugin.properties,\ - icons/,\ - plugin.xml -source.. = src/ -output.. = bin/ -src.includes = about.html diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/icons/full/obj16/systemcommands_obj.gif b/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/icons/full/obj16/systemcommands_obj.gif Binary files differdeleted file mode 100644 index 061b6e226..000000000 --- a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/icons/full/obj16/systemcommands_obj.gif +++ /dev/null diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/icons/full/obj16/systemcommandslive_obj.gif b/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/icons/full/obj16/systemcommandslive_obj.gif Binary files differdeleted file mode 100644 index 3faca4474..000000000 --- a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/icons/full/obj16/systemcommandslive_obj.gif +++ /dev/null diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/plugin.properties b/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/plugin.properties deleted file mode 100644 index 783a3f69f..000000000 --- a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/plugin.properties +++ /dev/null @@ -1,23 +0,0 @@ -################################################################################ -# Copyright (c) 2006, 2009 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 -# Sheldon D'souza (Celunite) - Changes to strings -################################################################################ - -# NLS_MESSAGEFORMAT_NONE -# NLS_ENCODING=UTF-8 - -pluginName=RSE Telnet Shells -providerName=Eclipse.org - DSDP - -TelnetSystemLabel=Telnet Only (Experimental) -TelnetSystemDescription=Connection for Telnet access to remote systems - -TelnetShellSubsystemName=Telnet Shells (Experimental) -TelnetShellSubsystemDescription=Work with shells and commands on remote systems using the Telnet protocol. diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/plugin.xml b/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/plugin.xml deleted file mode 100644 index 15738ac02..000000000 --- a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/plugin.xml +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -Copyright (c) 2006, 2007 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 - initial API and implementation -Martin Oberhuber (Wind River) - [186523] Move subsystemConfigurations from UI to core ---> -<?eclipse version="3.1"?> -<plugin> - <extension point="org.eclipse.rse.core.systemTypes"> - <systemType - description="%TelnetSystemDescription" - icon="icons/full/obj16/systemcommands_obj.gif" - iconLive="icons/full/obj16/systemcommandslive_obj.gif" - id="org.eclipse.rse.systemtype.telnet" - label="%TelnetSystemLabel" - name="Telnet Only"/> - </extension> - <extension - point="org.eclipse.rse.core.subsystemConfigurations"> - <configuration - category="shells" - class="org.eclipse.rse.subsystems.shells.telnet.TelnetShellSubSystemConfiguration" - description="%TelnetShellSubsystemDescription" - icon="icons/full/obj16/systemcommands_obj.gif" - iconlive="icons/full/obj16/systemcommandslive_obj.gif" - id="telnet.shells" - name="%TelnetShellSubsystemName" - priority="300" - serviceType="_telnet._tcp" - systemTypeIds="org.eclipse.rse.systemtype.telnet" - vendor="%providerName"> - </configuration> - </extension> - -</plugin> diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/src/org/eclipse/rse/internal/subsystems/shells/telnet/Activator.java b/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/src/org/eclipse/rse/internal/subsystems/shells/telnet/Activator.java deleted file mode 100644 index 8323ff28b..000000000 --- a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/src/org/eclipse/rse/internal/subsystems/shells/telnet/Activator.java +++ /dev/null @@ -1,60 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2007 Celunite, 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: - * Sheldon D'souza (Celunite) - *******************************************************************************/ -package org.eclipse.rse.internal.subsystems.shells.telnet; - -import org.eclipse.ui.plugin.AbstractUIPlugin; -import org.osgi.framework.BundleContext; - -/** - * The activator class controls the plug-in life cycle - */ -public class Activator extends AbstractUIPlugin { - - // The plug-in ID - public static final String PLUGIN_ID = "org.eclipse.rse.subsystems.shells.telnet"; //$NON-NLS-1$ - - // The shared instance - private static Activator plugin; - - /** - * The constructor - */ - public Activator() { - } - - /* - * (non-Javadoc) - * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) - */ - public void start(BundleContext context) throws Exception { - super.start(context); - plugin = this; - } - - /* - * (non-Javadoc) - * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) - */ - public void stop(BundleContext context) throws Exception { - plugin = null; - super.stop(context); - } - - /** - * Returns the shared instance - * - * @return the shared instance - */ - public static Activator getDefault() { - return plugin; - } - -} diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/src/org/eclipse/rse/internal/subsystems/shells/telnet/TelnetServiceCommandShell.java b/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/src/org/eclipse/rse/internal/subsystems/shells/telnet/TelnetServiceCommandShell.java deleted file mode 100644 index 30923aeb3..000000000 --- a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/src/org/eclipse/rse/internal/subsystems/shells/telnet/TelnetServiceCommandShell.java +++ /dev/null @@ -1,199 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2009 IBM Corporation 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 - * - * Initial Contributors: - * The following IBM employees contributed to the Remote System Explorer - * component that contains this file: David McKnight, Kushal Munir, - * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson, - * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley. - * - * Contributors: - * Martin Oberhuber (Wind River) - Adapted from LocalServiceCommandShell - * Sheldon D'souza (Celunite) - Adapted from SshServiceCommandShell - * Martin Oberhuber (Wind River) - [225510][api] Fix OutputRefreshJob API leakage - * Anna Dushistova (MontaVista) - [240523] [rseterminals] Provide a generic adapter factory that adapts any ITerminalService to an IShellService - * Anna Dushistova (MontaVista) - [261478] Remove SshShellService, SshHostShell (or deprecate and schedule for removal in 3.2) - * David McKnight (IBM) - [272032][ssh][telnet][local] shell output not setting line numbers when available - *******************************************************************************/ -package org.eclipse.rse.internal.subsystems.shells.telnet; - -import java.util.ArrayList; -import java.util.StringTokenizer; - -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.NullProgressMonitor; -import org.eclipse.core.runtime.Path; -import org.eclipse.rse.core.subsystems.ISubSystem; -import org.eclipse.rse.internal.services.shells.TerminalServiceHostShell; -import org.eclipse.rse.services.shells.IHostOutput; -import org.eclipse.rse.services.shells.IHostShell; -import org.eclipse.rse.services.shells.IHostShellChangeEvent; -import org.eclipse.rse.services.shells.ParsedOutput; -import org.eclipse.rse.services.shells.Patterns; -import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFileSubSystem; -import org.eclipse.rse.subsystems.shells.core.model.ISystemOutputRemoteTypes; -import org.eclipse.rse.subsystems.shells.core.model.RemoteError; -import org.eclipse.rse.subsystems.shells.core.model.RemoteOutput; -import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteCmdSubSystem; -import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteOutput; -import org.eclipse.rse.subsystems.shells.core.subsystems.servicesubsystem.ServiceCommandShell; - -public class TelnetServiceCommandShell extends ServiceCommandShell { - - private Patterns _patterns; - private String _curCommand; - private String _workingDir; - private IRemoteFileSubSystem _fs; - - public TelnetServiceCommandShell(IRemoteCmdSubSystem cmdSS, IHostShell hostShell) { - super(cmdSS, hostShell); - _patterns = new Patterns(); - _patterns.update("cmd"); //$NON-NLS-1$ - ISubSystem[] sses = cmdSS.getHost().getSubSystems(); - for (int i = 0; i < sses.length; i++) - { - if (sses[i] instanceof IRemoteFileSubSystem) - { - _fs = (IRemoteFileSubSystem)sses[i]; - } - } - } - - public Object getContext() - { - String workingDir = _workingDir; - if (workingDir != null && workingDir.length() > 0 && _fs != null) - { - try - { - return _fs.getRemoteFileObject(workingDir, new NullProgressMonitor()); - } - catch (Exception e) - { - } - } - return null; - - } - - public void shellOutputChanged(IHostShellChangeEvent event) - { - IHostOutput[] lines = event.getLines(); - boolean gotCommand = false; - ArrayList outputs = new ArrayList(lines.length); - for (int i = 0; i < lines.length; i++) - { - String line = lines[i].getString(); - if (line.endsWith(getPromptCommand())) { - continue; //ignore our synthetic prompt command - } - - ParsedOutput parsedMsg = null; - if (!gotCommand && line.equals(_curCommand)) { - gotCommand = true; - continue; //ignore remote command echo - } else { - try { - - // Bug 160202: Remote shell dies. - if ((_curCommand == null) || (!_curCommand.trim().equals("ls"))) { //$NON-NLS-1$ - parsedMsg = _patterns.matchLine(line); - - // Bug 160202: Remote shell dies. - if (_curCommand != null) { - String temp = _curCommand.trim(); - StringTokenizer tokenizer = new StringTokenizer(temp); - - if (tokenizer.countTokens() == 2) { - String token1 = tokenizer.nextToken(); - String token2 = tokenizer.nextToken(); - - if ((token1.equals("ls")) && (token2.indexOf('-') == 0) && (token2.indexOf('l') > 0)) { //$NON-NLS-1$ - if (line.startsWith("total")) { //$NON-NLS-1$ - parsedMsg = null; - } - } - } - } - } - } - catch (Throwable e) { - e.printStackTrace(); - } - } - - RemoteOutput output = null; - - String type = "stdout"; //$NON-NLS-1$ - - if (parsedMsg != null) { - type = parsedMsg.type; - } - - if (event.isError()) { - output = new RemoteError(this, type); - } - else { - output = new RemoteOutput(this, type); - } - - output.setText(line); - if (parsedMsg != null) - { - String file = parsedMsg.file; - if (type.equals(ISystemOutputRemoteTypes.TYPE_PROMPT)) - { - _workingDir = file; - output.setAbsolutePath(_workingDir); - } - else if(_workingDir!=null) - { - IPath p = new Path(_workingDir).append(file); - output.setAbsolutePath(p.toString()); - } - else - { - output.setAbsolutePath(file); - } - if (parsedMsg.line > 0){ - output.setLine(parsedMsg.line); - } - } - - addOutput(output); - outputs.add(output); - } - IRemoteOutput[] remoteOutputs = (IRemoteOutput[])outputs.toArray(new IRemoteOutput[outputs.size()]); - notifyOutputChanged(remoteOutputs, false); - } - - /** - * Return the prompt command, such that lines ending with the - * prompt command can be removed from output. - * Should be overridden in case the IHostShell used for this - * service is not an TelnetHostShell. - * @return String promptCommand - */ - protected String getPromptCommand() { - IHostShell shell = getHostShell(); - //assert shell instanceof TelnetHostShell; - if (shell instanceof TerminalServiceHostShell) { - return ((TerminalServiceHostShell)shell).getPromptCommand(); - } - //return something impossible such that nothing is ever matched - return "\uffff"; //$NON-NLS-1$ - } - - public void writeToShell(String cmd) - { - _curCommand = cmd; - _patterns.update(cmd); - super.writeToShell(cmd); - - } - -} diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/src/org/eclipse/rse/subsystems/shells/telnet/TelnetShellSubSystemConfiguration.java b/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/src/org/eclipse/rse/subsystems/shells/telnet/TelnetShellSubSystemConfiguration.java deleted file mode 100644 index 1d0889b8d..000000000 --- a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/src/org/eclipse/rse/subsystems/shells/telnet/TelnetShellSubSystemConfiguration.java +++ /dev/null @@ -1,85 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2008 IBM Corporation 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 - * - * Initial Contributors: - * The following IBM employees contributed to the Remote System Explorer - * component that contains this file: David McKnight, Kushal Munir, - * Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson, - * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley. - * - * Contributors: - * Martin Oberhuber (Wind River) - Adapted template for ssh service. - * Sheldon D'souza (Celunite) - Adapted template for telnet service - * Anna Dushistova (MontaVista) - [240523] [rseterminals] Provide a generic adapter factory that adapts any ITerminalService to an IShellService - *******************************************************************************/ -package org.eclipse.rse.subsystems.shells.telnet; - -import org.eclipse.rse.core.model.IHost; -import org.eclipse.rse.core.subsystems.IConnectorService; -import org.eclipse.rse.core.subsystems.ISubSystem; -import org.eclipse.rse.internal.connectorservice.telnet.TelnetConnectorService; -import org.eclipse.rse.internal.connectorservice.telnet.TelnetConnectorServiceManager; -import org.eclipse.rse.internal.services.telnet.ITelnetService; -import org.eclipse.rse.internal.services.telnet.terminal.TelnetTerminalService; -import org.eclipse.rse.internal.subsystems.shells.telnet.TelnetServiceCommandShell; -import org.eclipse.rse.services.shells.IHostShell; -import org.eclipse.rse.services.shells.IShellService; -import org.eclipse.rse.subsystems.shells.core.subsystems.IRemoteCmdSubSystem; -import org.eclipse.rse.subsystems.shells.core.subsystems.servicesubsystem.IServiceCommandShell; -import org.eclipse.rse.subsystems.shells.core.subsystems.servicesubsystem.ShellServiceSubSystem; -import org.eclipse.rse.subsystems.shells.core.subsystems.servicesubsystem.ShellServiceSubSystemConfiguration; - -public class TelnetShellSubSystemConfiguration extends - ShellServiceSubSystemConfiguration { - - public TelnetShellSubSystemConfiguration() { - super(); - } - - /* (non-Javadoc) - * @see org.eclipse.rse.core.subsystems.SubSystemConfiguration#isFactoryFor(java.lang.Class) - */ - public boolean isFactoryFor(Class subSystemType) { - boolean isFor = ShellServiceSubSystem.class.equals(subSystemType); - return isFor; - } - - /** - * Instantiate and return an instance of OUR subystem. - * Do not populate it yet though! - * @see org.eclipse.rse.core.subsystems.SubSystemConfiguration#createSubSystemInternal(IHost) - */ - public ISubSystem createSubSystemInternal(IHost host) - { - TelnetConnectorService connectorService = (TelnetConnectorService)getConnectorService(host); - ISubSystem subsys = new ShellServiceSubSystem(host, connectorService, createShellService(host)); - return subsys; - } - - public IShellService createShellService(IHost host) { - TelnetConnectorService cserv = (TelnetConnectorService)getConnectorService(host); - return (IShellService) (new TelnetTerminalService(cserv)).getAdapter(IShellService.class); - } - - public IConnectorService getConnectorService(IHost host) { - return TelnetConnectorServiceManager.getInstance().getConnectorService(host, ITelnetService.class); - } - - public void setConnectorService(IHost host, - IConnectorService connectorService) { - TelnetConnectorServiceManager.getInstance().setConnectorService(host, ITelnetService.class, connectorService); - } - - public Class getServiceImplType() { - return ITelnetService.class; - } - - public IServiceCommandShell createRemoteCommandShell(IRemoteCmdSubSystem cmdSS, IHostShell hostShell) { - return new TelnetServiceCommandShell(cmdSS, hostShell); - } - -} diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/src/org/eclipse/rse/subsystems/shells/telnet/package.html b/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/src/org/eclipse/rse/subsystems/shells/telnet/package.html deleted file mode 100644 index 9cebd3e54..000000000 --- a/rse/plugins/org.eclipse.rse.subsystems.shells.telnet/src/org/eclipse/rse/subsystems/shells/telnet/package.html +++ /dev/null @@ -1,28 +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)"> - <title>Package-level Javadoc</title> -</head> -<body> -Application programming interface for creating customized telnet shell subsystems. -<h2> -Package Specification</h2> -The package provides support classes for creating customized telnet shell -subsystems. -<p>The class <b>TelnetSubSystemConfiguration</b> is the main factory -for creating a telnet shell subsystem. By deriving from it, extenders -can create their customized telnet shell subsystem configuration which can -then be registered against their system types. A custom -<b>SubSystemConfigurationAdapter</b> can be registered for UI-specific -customizations. Possible customizations include: -<ul> -<li>Changing the isCaseSensitive() method for system types that - are not of UNIX style.</li> -<li>Wrapping the created ShellServiceSubSystem or IShellService - in a delegate for modifying operation of the Subsystem.</li> -</ul> -</p> -</body> -</html> |