mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-18 22:45:23 +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))
|
else if (name.equals(ISystemPropertyConstants.P_SHELL_CONTEXT))
|
||||||
{
|
{
|
||||||
Object context = cmdShell.getContext();
|
return cmdShell.getContextString();
|
||||||
if (context instanceof IRemoteFile)
|
|
||||||
{
|
|
||||||
IRemoteFile cwd = (IRemoteFile)context;
|
|
||||||
return cwd.getAbsolutePath();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return context;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ""; //$NON-NLS-1$
|
return ""; //$NON-NLS-1$
|
||||||
|
|
Loading…
Add table
Reference in a new issue