Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 110671 Details for
Bug 244807
System view does not handle restore from cache
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Subsystem patch (with Contribution statement)
SubSystemPatch.txt (text/plain), 2.97 KB, created by
Don Yantzi
on 2008-08-22 08:52:07 EDT
(
hide
)
Description:
Subsystem patch (with Contribution statement)
Filename:
MIME Type:
Creator:
Don Yantzi
Created:
2008-08-22 08:52:07 EDT
Size:
2.97 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rse.ui >Index: subsystems/org/eclipse/rse/core/subsystems/SubSystem.java >=================================================================== >RCS file: /cvsroot/dsdp/org.eclipse.tm.rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/SubSystem.java,v >retrieving revision 1.118 >diff -u -r1.118 SubSystem.java >--- subsystems/org/eclipse/rse/core/subsystems/SubSystem.java 19 Aug 2008 15:48:37 -0000 1.118 >+++ subsystems/org/eclipse/rse/core/subsystems/SubSystem.java 22 Aug 2008 12:50:57 -0000 >@@ -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 @@ > */ > 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 @@ > // 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 @@ > 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 @@ > 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 @@ > 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 > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
dmcknigh
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 244807
:
110582
|
110669
| 110671 |
111107
|
111512