mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
[208813] removing deprecated APIs
This commit is contained in:
parent
e5834735b3
commit
1ac9cbbb8e
4 changed files with 6 additions and 110 deletions
|
@ -12,26 +12,13 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* David McKnight (IBM) - [208813] removing deprecated APIs
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.rse.core.subsystems;
|
||||
|
||||
//
|
||||
|
||||
/**
|
||||
* @lastgen interface RemoteSystemEnvVar {}
|
||||
*/
|
||||
|
||||
public interface IRemoteSystemEnvVar {
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
String copyright = "(c) Copyright IBM Corporation 2002, 2004."; //$NON-NLS-1$
|
||||
|
||||
/**
|
||||
* @generated This field/method will be replaced during code generation
|
||||
* @return The value of the Name attribute
|
||||
|
@ -58,19 +45,4 @@ public interface IRemoteSystemEnvVar {
|
|||
*/
|
||||
void setValue(String value);
|
||||
|
||||
/**
|
||||
* @generated This field/method will be replaced during code generation
|
||||
* @return The value of the AdditionalAttributes attribute
|
||||
* Additional attributes that may need to be persisted per environment variable.
|
||||
* @deprecated
|
||||
*/
|
||||
String getAdditionalAttributes();
|
||||
|
||||
/**
|
||||
* @generated This field/method will be replaced during code generation
|
||||
* @param value The new value of the AdditionalAttributes attribute
|
||||
* @deprecated
|
||||
*/
|
||||
void setAdditionalAttributes(String value);
|
||||
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* David McKnight (IBM) - [208813] removing deprecated APIs
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.subsystems.shells.subsystems;
|
||||
|
@ -28,9 +28,6 @@ import org.eclipse.rse.core.subsystems.IRemoteSystemEnvVar;
|
|||
/**
|
||||
* Encapsulation of environment variable properties set uniquely per connection.
|
||||
*/
|
||||
/**
|
||||
* @lastgen class RemoteSystemEnvVarImpl Impl implements RemoteSystemEnvVar {}
|
||||
*/
|
||||
public class RemoteSystemEnvVar implements IRemoteSystemEnvVar
|
||||
{
|
||||
/**
|
||||
|
@ -70,14 +67,8 @@ public class RemoteSystemEnvVar implements IRemoteSystemEnvVar
|
|||
* @generated This field/method will be replaced during code generation.
|
||||
*/
|
||||
protected String value = VALUE_EDEFAULT;
|
||||
/**
|
||||
* The default value of the '{@link #getAdditionalAttributes() <em>Additional Attributes</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getAdditionalAttributes()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
|
||||
|
||||
protected static final String ADDITIONAL_ATTRIBUTES_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
|
@ -126,24 +117,6 @@ public class RemoteSystemEnvVar implements IRemoteSystemEnvVar
|
|||
value = newValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* @generated This field/method will be replaced during code generation
|
||||
* Additional attributes that may need to be persisted per environment variable.
|
||||
* @deprecated
|
||||
*/
|
||||
public String getAdditionalAttributes()
|
||||
{
|
||||
return additionalAttributes;
|
||||
}
|
||||
|
||||
/**
|
||||
* @generated This field/method will be replaced during code generation.
|
||||
* @deprecated
|
||||
*/
|
||||
public void setAdditionalAttributes(String newAdditionalAttributes)
|
||||
{
|
||||
additionalAttributes = newAdditionalAttributes;
|
||||
}
|
||||
|
||||
/**
|
||||
* @generated This field/method will be replaced during code generation.
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Martin Oberhuber (Wind River) - [186128] Move IProgressMonitor last in all API
|
||||
* David McKnight (IBM) - [208813] removing deprecated APIs
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.subsystems.shells.core.subsystems;
|
||||
|
@ -70,15 +71,6 @@ public interface IRemoteCmdSubSystem extends ISubSystem{
|
|||
*/
|
||||
public IRemoteCommandShell runShell(Object context, IProgressMonitor monitor) throws Exception;
|
||||
|
||||
/**
|
||||
* Send a command as input to a running command shell.
|
||||
* @param input the command to invoke in the shell.
|
||||
* @param commandObject the shell or command to send the invocation to.
|
||||
*
|
||||
* @deprecated use sendCommandToShell(IProgressMonitor, String input, Object commmandObject)
|
||||
*/
|
||||
public void sendCommandToShell(String input, Object commandObject) throws Exception;
|
||||
|
||||
/**
|
||||
* Send a command as input to a running command shell.
|
||||
* @param input the command to invoke in the shell.
|
||||
|
|
|
@ -852,48 +852,7 @@ public abstract class RemoteCmdSubSystem extends SubSystem implements IRemoteCmd
|
|||
return runCommand(command, context, true, monitor);
|
||||
}
|
||||
|
||||
/**
|
||||
* Send a command as input to a running command shell.
|
||||
*
|
||||
* @param input the command to invoke in the shell.
|
||||
* @param commandObject the shell or command to send the invocation to.
|
||||
*
|
||||
* @deprecated use {@link #sendCommandToShell(String, Object, IProgressMonitor)}
|
||||
*/
|
||||
public void sendCommandToShell(String input, Object commandObject) throws Exception
|
||||
{
|
||||
boolean ok = true;
|
||||
if (!isConnected())
|
||||
ok = promptForPassword();
|
||||
if (ok)
|
||||
{
|
||||
Display display = Display.getCurrent();
|
||||
if (display != null)
|
||||
{
|
||||
internalSendCommandToShell(input, commandObject, new NullProgressMonitor());
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
SendCommandToShellJob job = new SendCommandToShellJob(input, commandObject);
|
||||
|
||||
scheduleJob(job, null);
|
||||
}
|
||||
catch (InterruptedException exc)
|
||||
{
|
||||
if (shell == null)
|
||||
throw exc;
|
||||
else
|
||||
showOperationCancelledMessage(shell);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
SystemBasePlugin.logDebugMessage(this.getClass().getName(),
|
||||
"in SubSystemImpl.sendCommandToShell: isConnected() returning false!"); //$NON-NLS-1$
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Send a command as input to a running command shell.
|
||||
|
|
Loading…
Add table
Reference in a new issue