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 132028 Details for
Bug 51049
[Sync Info] Use of symlinks cause CVS directories disappears
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]
Make it so UnifiedTree to import symlink folders from the filesystem as Eclipse linked resources.
symlink.patch (text/plain), 1.55 KB, created by
Hien
on 2009-04-16 03:32:19 EDT
(
hide
)
Description:
Make it so UnifiedTree to import symlink folders from the filesystem as Eclipse linked resources.
Filename:
MIME Type:
Creator:
Hien
Created:
2009-04-16 03:32:19 EDT
Size:
1.55 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.core.resources >Index: src/org/eclipse/core/internal/localstore/UnifiedTree.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.core.resources/src/org/eclipse/core/internal/localstore/UnifiedTree.java,v >retrieving revision 1.45.2.1 >diff -u -r1.45.2.1 UnifiedTree.java >--- src/org/eclipse/core/internal/localstore/UnifiedTree.java 22 Aug 2008 07:28:35 -0000 1.45.2.1 >+++ src/org/eclipse/core/internal/localstore/UnifiedTree.java 16 Apr 2009 07:24:55 -0000 >@@ -12,6 +12,12 @@ > *******************************************************************************/ > package org.eclipse.core.internal.localstore; > >+import org.eclipse.core.filesystem.EFS; >+ >+import org.eclipse.core.runtime.CoreException; >+ >+import org.eclipse.core.resources.IFolder; >+ > import java.io.IOException; > import java.util.*; > import java.util.regex.Pattern; >@@ -265,6 +271,18 @@ > IPath childPath = parent.getResource().getFullPath().append(info.getName()); > int type = info.isDirectory() ? IResource.FOLDER : IResource.FILE; > IResource target = getWorkspace().newResource(childPath, type); >+ >+ if(target instanceof IFolder) { >+ IFolder folder = (IFolder)target; >+ if(info.getAttribute(EFS.ATTRIBUTE_SYMLINK)) { >+ try { >+ folder.createLink(folder.getLocation(), IResource.REPLACE | IResource.ALLOW_MISSING_LOCAL, new NullProgressMonitor()); >+ } catch (CoreException e) { >+ // Not sure how to report this >+ } >+ } >+ } >+ > return createNode(target, null, info, false); > } >
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 51049
: 132028