Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 51049
Collapse All | Expand All

(-)src/org/eclipse/core/internal/localstore/UnifiedTree.java (+18 lines)
Lines 12-17 Link Here
12
 *******************************************************************************/
12
 *******************************************************************************/
13
package org.eclipse.core.internal.localstore;
13
package org.eclipse.core.internal.localstore;
14
14
15
import org.eclipse.core.filesystem.EFS;
16
17
import org.eclipse.core.runtime.CoreException;
18
19
import org.eclipse.core.resources.IFolder;
20
15
import java.io.IOException;
21
import java.io.IOException;
16
import java.util.*;
22
import java.util.*;
17
import java.util.regex.Pattern;
23
import java.util.regex.Pattern;
Lines 265-270 Link Here
265
		IPath childPath = parent.getResource().getFullPath().append(info.getName());
271
		IPath childPath = parent.getResource().getFullPath().append(info.getName());
266
		int type = info.isDirectory() ? IResource.FOLDER : IResource.FILE;
272
		int type = info.isDirectory() ? IResource.FOLDER : IResource.FILE;
267
		IResource target = getWorkspace().newResource(childPath, type);
273
		IResource target = getWorkspace().newResource(childPath, type);
274
		
275
		if(target instanceof IFolder) {
276
			IFolder folder = (IFolder)target;
277
			if(info.getAttribute(EFS.ATTRIBUTE_SYMLINK)) {
278
				try {
279
					folder.createLink(folder.getLocation(), IResource.REPLACE | IResource.ALLOW_MISSING_LOCAL, new NullProgressMonitor());
280
				} catch (CoreException e) {
281
					// Not sure how to report this
282
				}
283
			}
284
		}
285
		
268
		return createNode(target, null, info, false);
286
		return createNode(target, null, info, false);
269
	}
287
	}
270
288

Return to bug 51049