1
0
Fork 0
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:
David McKnight 2007-09-24 16:23:58 +00:00
parent 9823d29023
commit 9cbfce5440

View file

@ -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$