1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-19 14:15:50 +02:00

[186363] remove deprecated calls in checkIsConnected

This commit is contained in:
David McKnight 2007-10-24 13:54:50 +00:00
parent 7f3cb80580
commit 786ad2e228

View file

@ -24,6 +24,7 @@
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry * Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
* Martin Oberhuber (Wind River) - [187218] Fix error reporting for connect() * Martin Oberhuber (Wind River) - [187218] Fix error reporting for connect()
* Xuan Chen (IBM) - [187342] Open in New Window expand failed error when not connected * Xuan Chen (IBM) - [187342] Open in New Window expand failed error when not connected
* David McKnight (IBM) - [186363] remove deprecated calls in checkIsConnected
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.core.subsystems; package org.eclipse.rse.core.subsystems;
@ -484,21 +485,12 @@ public abstract class SubSystem extends RSEModelObject
Display display = Display.getCurrent(); Display display = Display.getCurrent();
if (display != null) if (display != null)
{ {
// deduce active shell from display connect(false, null);
Shell shell = display.getActiveShell();
if (shell != null && !shell.isDisposed())
{
connect();
}
else
{
connect();
}
} }
else else
{ {
// Not on UI-thread // Not on UI-thread
connect(); connect(new NullProgressMonitor(), false);
} }
} }
catch (Exception e) catch (Exception e)