1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 15:45:25 +02:00

handle cancel connect when launching shell - Bug 158869

This commit is contained in:
David McKnight 2006-10-03 17:36:25 +00:00
parent 3e83efc143
commit 87a2136876
2 changed files with 13 additions and 4 deletions

View file

@ -489,10 +489,13 @@ public class SystemCommandAction extends SystemBaseAction
else
{
cmdSubSystem.connect();
SystemCommandsUI commandsUI = SystemCommandsUI.getInstance();
SystemCommandsViewPart cmdsPart = commandsUI.activateCommandsView();
IRemoteCommandShell cmd = cmdSubSystem.runShell( _selected);
cmdsPart.updateOutput(cmd);
if (cmdSubSystem.isConnected())
{
SystemCommandsUI commandsUI = SystemCommandsUI.getInstance();
SystemCommandsViewPart cmdsPart = commandsUI.activateCommandsView();
IRemoteCommandShell cmd = cmdSubSystem.runShell( _selected);
cmdsPart.updateOutput(cmd);
}
//showInView(cmd);
}
}

View file

@ -196,8 +196,14 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
{
connect(false);
}
catch (InterruptedException e)
{
return Status.CANCEL_STATUS;
}
catch (Exception e)
{
e.printStackTrace();
String excMsg = e.getMessage();
if ((excMsg == null) || (excMsg.length()==0))
excMsg = "Exception " + e.getClass().getName();