View | Details | Raw Unified | Return to bug 35352
Collapse All | Expand All

(-)model/org/eclipse/jdt/internal/core/Buffer.java (-2 / +3 lines)
Lines 135-142 Link Here
135
 * @see IBuffer
135
 * @see IBuffer
136
 */
136
 */
137
public String getContents() {
137
public String getContents() {
138
	if (this.contents == null) return null;
138
	char[] chars = this.getCharacters();
139
	return new String(this.getCharacters());
139
	if (chars == null) return null;
140
	return new String(chars);
140
}
141
}
141
/**
142
/**
142
 * @see IBuffer
143
 * @see IBuffer
(-)model/org/eclipse/jdt/internal/core/PackageFragmentRoot.java (-7 / +3 lines)
Lines 182-196 Link Here
182
 * close it too.
182
 * close it too.
183
 *
183
 *
184
 * @see JavaElement
184
 * @see JavaElement
185
 */
185
 *
186
protected void closing(Object info) throws JavaModelException {
186
protected void closing(Object info) throws JavaModelException {
187
	SourceMapper mapper= getSourceMapper();
187
	((PackageFragmentRootInfo) info).sourceMapper = null;
188
	if (mapper != null) {
189
		mapper.close();
190
	}
191
	super.closing(info);
188
	super.closing(info);
192
}
189
}*/
193
194
/**
190
/**
195
 * Compute the package fragment children of this package fragment root.
191
 * Compute the package fragment children of this package fragment root.
196
 * 
192
 * 
(-)model/org/eclipse/jdt/internal/core/PackageFragmentRootInfo.java (-2 / +2 lines)
Lines 143-149 Link Here
143
 * Retuns the SourceMapper for this root, or <code>null</code>
143
 * Retuns the SourceMapper for this root, or <code>null</code>
144
 * if this root does not have attached source.
144
 * if this root does not have attached source.
145
 */
145
 */
146
protected SourceMapper getSourceMapper() {
146
protected synchronized SourceMapper getSourceMapper() {
147
	return this.sourceMapper;
147
	return this.sourceMapper;
148
}
148
}
149
private static boolean isClasspathEntry(IPath path, IClasspathEntry[] resolvedClasspath) {
149
private static boolean isClasspathEntry(IPath path, IClasspathEntry[] resolvedClasspath) {
Lines 170-176 Link Here
170
/**
170
/**
171
 * Sets the SourceMapper for this root.
171
 * Sets the SourceMapper for this root.
172
 */
172
 */
173
protected void setSourceMapper(SourceMapper mapper) {
173
protected synchronized void setSourceMapper(SourceMapper mapper) {
174
	this.sourceMapper= mapper;
174
	this.sourceMapper= mapper;
175
}
175
}
176
}
176
}

Return to bug 35352