View | Details | Raw Unified | Return to bug 368152 | Differences between
and this patch

Collapse All | Expand All

(-)a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ExternalFoldersManager.java (-8 / +10 lines)
Lines 122-128 Link Here
122
		} while (result.exists());
122
		} while (result.exists());
123
		if (scheduleForCreation) {
123
		if (scheduleForCreation) {
124
			if (this.pendingFolders == null)
124
			if (this.pendingFolders == null)
125
				this.pendingFolders = new HashSet();
125
				this.pendingFolders = Collections.synchronizedSet(new HashSet());
126
			this.pendingFolders.add(externalFolderPath);
126
			this.pendingFolders.add(externalFolderPath);
127
		}
127
		}
128
		knownFolders.put(externalFolderPath, result);
128
		knownFolders.put(externalFolderPath, result);
Lines 166-178 Link Here
166
		catch(CoreException e) {
166
		catch(CoreException e) {
167
			throw new JavaModelException(e);
167
			throw new JavaModelException(e);
168
		}
168
		}
169
		Iterator iterator = this.pendingFolders.iterator();
169
		synchronized (this.pendingFolders) {
170
		while (iterator.hasNext()) {
170
			Iterator iterator = this.pendingFolders.iterator();
171
			Object folderPath = iterator.next();
171
			while (iterator.hasNext()) {
172
			try {
172
				Object folderPath = iterator.next();
173
				createLinkFolder((IPath) folderPath, false, externalFoldersProject, monitor);
173
				try {
174
			} catch (CoreException e) {
174
					createLinkFolder((IPath) folderPath, false, externalFoldersProject, monitor);
175
				Util.log(e, "Error while creating a link for external folder :" + folderPath); //$NON-NLS-1$
175
				} catch (CoreException e) {
176
					Util.log(e, "Error while creating a link for external folder :" + folderPath); //$NON-NLS-1$
177
				}
176
			}
178
			}
177
		}
179
		}
178
		this.pendingFolders.clear();
180
		this.pendingFolders.clear();

Return to bug 368152