1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-14 12:35:22 +02:00

[230285] [shells] Remote shells should be restored on quit and re-start of RSE

This commit is contained in:
David McKnight 2008-05-20 16:15:27 +00:00
parent 96541e116e
commit 4f6ac96a13

View file

@ -546,23 +546,21 @@ public abstract class RemoteCmdSubSystem extends SubSystem implements IRemoteCmd
} }
} }
if (gotShell){ IPropertySet set = getPropertySet("Remote"); //$NON-NLS-1$
IPropertySet set = getPropertySet("Remote"); //$NON-NLS-1$ if (set == null){
if (set == null){ set = createPropertySet("Remote"); //$NON-NLS-1$
set = createPropertySet("Remote"); //$NON-NLS-1$
}
if (set != null)
{
IProperty property = set.getProperty(COMMAND_SHELLS_MEMENTO);
if (property == null){
property = set.addProperty(COMMAND_SHELLS_MEMENTO, shellBuffer.toString());
}
else {
property.setValue(shellBuffer.toString());
}
}
commit();
} }
if (set != null)
{
IProperty property = set.getProperty(COMMAND_SHELLS_MEMENTO);
if (property == null){
property = set.addProperty(COMMAND_SHELLS_MEMENTO, shellBuffer.toString());
}
else {
property.setValue(shellBuffer.toString());
}
}
commit();
} }
protected void internalRemoveShell(Object command) throws InvocationTargetException, protected void internalRemoveShell(Object command) throws InvocationTargetException,