mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 23:25:26 +02:00
[203327] patch to return context as string instead of IRemoteFile
This commit is contained in:
parent
9823d29023
commit
9cbfce5440
1 changed files with 1 additions and 10 deletions
|
@ -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$
|
||||
|
|
Loading…
Add table
Reference in a new issue