1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

[237970] don't enable connect all action when in offline mode

This commit is contained in:
David McKnight 2008-07-08 16:00:15 +00:00
parent 0212c31715
commit d5eb5d2241

View file

@ -15,6 +15,7 @@
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
* Martin Oberhuber (Wind River) - [187218] Fix error reporting for connect()
* Martin Oberhuber (Wind River) - [216266] Consider stateless subsystems (supportsSubSystemConnect==false)
* David McKnight (IBM) - [237970] Subsystem.connect( ) fails for substituting host name when isOffline( ) is true
*******************************************************************************/
package org.eclipse.rse.internal.ui.actions;
@ -130,6 +131,7 @@ public class SystemConnectAllSubSystemsAction extends SystemBaseAction
public boolean checkObjectType(Object obj)
{
if ((obj instanceof IHost) &&
!((IHost)obj).isOffline() &&
!sr.areAllSubSystemsConnected((IHost)obj))
{
return true;