From 9cbfce5440a6dd2ec1c6546c932d3abd25371a37 Mon Sep 17 00:00:00 2001 From: David McKnight Date: Mon, 24 Sep 2007 16:23:58 +0000 Subject: [PATCH] [203327] patch to return context as string instead of IRemoteFile --- .../shells/ui/view/SystemViewRemoteOutputAdapter.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/view/SystemViewRemoteOutputAdapter.java b/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/view/SystemViewRemoteOutputAdapter.java index f5b0a75ef1b..1fd2e7fc508 100644 --- a/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/view/SystemViewRemoteOutputAdapter.java +++ b/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/view/SystemViewRemoteOutputAdapter.java @@ -1241,16 +1241,7 @@ implements ISystemViewElementAdapter, ISystemRemoteElementAdapter } else if (name.equals(ISystemPropertyConstants.P_SHELL_CONTEXT)) { - Object context = cmdShell.getContext(); - if (context instanceof IRemoteFile) - { - IRemoteFile cwd = (IRemoteFile)context; - return cwd.getAbsolutePath(); - } - else - { - return context; - } + return cmdShell.getContextString(); } } return ""; //$NON-NLS-1$