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 2499 Details for
Bug 11510
[resources] Non-local folders do not become local when directory is created.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch to RefreshLocalVisitor.java
RefreshLocalVisitor.java.diff (text/plain), 1.25 KB, created by
Rafael Chaves
on 2002-11-22 18:36:13 EST
(
hide
)
Description:
patch to RefreshLocalVisitor.java
Filename:
MIME Type:
Creator:
Rafael Chaves
Created:
2002-11-22 18:36:13 EST
Size:
1.25 KB
patch
obsolete
>Index: RefreshLocalVisitor.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.core.resources/src/org/eclipse/core/internal/localstore/RefreshLocalVisitor.java,v >retrieving revision 1.14 >diff -u -r1.14 RefreshLocalVisitor.java >--- RefreshLocalVisitor.java 20 Nov 2002 21:49:50 -0000 1.14 >+++ RefreshLocalVisitor.java 22 Nov 2002 23:21:25 -0000 >@@ -211,9 +211,17 @@ > if (targetType == IResource.PROJECT) > return true; > if (node.existsInWorkspace() && node.existsInFileSystem()) { >- /* we don't care about folder last modified */ >- if (node.isFolder() && targetType == IResource.FOLDER) >+ /* for folders we only care about updating local status */ >+ if (node.isFolder() && targetType == IResource.FOLDER) { >+ // if not local, mark as local >+ if (!target.isLocal(IResource.DEPTH_ZERO)) { >+ ResourceInfo info = target.getResourceInfo(false, true); >+ if (info == null) >+ return true; >+ target.getLocalManager().updateLocalSync(info, node.getLastModified()); >+ } > return true; >+ } > /* compare file last modified */ > long lastModifed = target.getResourceInfo(false, false).getLocalSyncInfo(); > if (lastModifed == node.getLastModified())
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
Actions:
View
|
Diff
Attachments on
bug 11510
: 2499