mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
[244807] Delay connecting if resolving filters while restoring from cache
This commit is contained in:
parent
7b7d173c64
commit
e4d9d880b3
1 changed files with 7 additions and 10 deletions
|
@ -43,6 +43,7 @@
|
|||
* David McKnight (IBM) - [238609] Substitution value missing for disconnect failed message
|
||||
* David McKnight (IBM) - [237970] Subsystem.connect( ) fails for substituting host name when isOffline( ) is true
|
||||
* David McKnight (IBM) - [244270] Explicit check for isOffline and just returning block implementing a cache for Work Offline
|
||||
* Don Yantzi (IBM) - [244807] Delay connecting if resolving filters while restoring from cache
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.core.subsystems;
|
||||
|
@ -552,8 +553,9 @@ implements IAdaptable, ISubSystem, ISystemFilterPoolReferenceManagerProvider
|
|||
*/
|
||||
public void checkIsConnected(IProgressMonitor monitor) throws SystemMessageException
|
||||
{
|
||||
if (!isConnected() &&
|
||||
!isOffline()) // for 244270, don't connect when offline
|
||||
// for 244270, don't connect when offline
|
||||
// or when restoring from memento
|
||||
if (!isConnected() && !isOffline() && (!(getCacheManager() != null) && !getCacheManager().isRestoreFromMemento()))
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -2195,7 +2197,7 @@ implements IAdaptable, ISubSystem, ISystemFilterPoolReferenceManagerProvider
|
|||
// for bug 233435, implicit connect if the connection is not connected
|
||||
checkIsConnected(monitor);
|
||||
|
||||
if (isConnected())
|
||||
if (isConnected() || isOffline() || (getCacheManager() != null && getCacheManager().isRestoreFromMemento()))
|
||||
{
|
||||
if (!supportsConnecting && !_isInitialized) {
|
||||
// Lazy Loading: Load adapters (e.g. Local Subsystem)
|
||||
|
@ -2239,7 +2241,7 @@ implements IAdaptable, ISubSystem, ISystemFilterPoolReferenceManagerProvider
|
|||
SystemBasePlugin.logInfo("Filter strings are null"); //$NON-NLS-1$
|
||||
return null;
|
||||
}
|
||||
if (isConnected())
|
||||
if (isConnected() || isOffline() || (getCacheManager() != null && getCacheManager().isRestoreFromMemento()))
|
||||
{
|
||||
if (!supportsConnecting && !_isInitialized) {
|
||||
// Lazy Loading: Load adapters (e.g. Local Subsystem)
|
||||
|
@ -2298,7 +2300,7 @@ implements IAdaptable, ISubSystem, ISystemFilterPoolReferenceManagerProvider
|
|||
checkIsConnected(monitor);
|
||||
}
|
||||
|
||||
if (isConnected())
|
||||
if (isConnected() || isOffline() || (getCacheManager() != null && getCacheManager().isRestoreFromMemento()))
|
||||
{
|
||||
if (!supportsConnecting && !_isInitialized) {
|
||||
// Lazy Loading: Load adapters (e.g. Local Subsystem)
|
||||
|
@ -2530,11 +2532,6 @@ implements IAdaptable, ISubSystem, ISystemFilterPoolReferenceManagerProvider
|
|||
doConnection = true; // this gets handled later when it comes time to connect
|
||||
return true;
|
||||
}
|
||||
else if (supportsCaching() && getCacheManager().isRestoreFromMemento())
|
||||
{
|
||||
doConnection = true; // this gets handled later when it comes time to connect
|
||||
return true;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue