Skip to content

Commit d012998

Browse files
committed
Clear all extensions-dependant caches
1 parent 0a5b476 commit d012998

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ContentGeneratorDescriptor.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private void addDefinedGroups(Collection<MarkerGroup> groupss) {
8181
*/
8282
public void addExtensions(Collection<IConfigurationElement> extensions) {
8383
generatorExtensions = extensions;
84-
clearMarkerFieldCaches();
84+
clearCaches();
8585
}
8686

8787
/**
@@ -297,13 +297,15 @@ public void initializeFromConfigurationElement(
297297
*/
298298
public void removeExtension(IConfigurationElement element) {
299299
generatorExtensions.remove(element);
300-
clearMarkerFieldCaches();
300+
clearCaches();
301301
}
302302

303-
private void clearMarkerFieldCaches() {
303+
private void clearCaches() {
304304
allFieldsWithExtensions = null;
305305
initialVisibleWithExtensions = null;
306306
markerTypes = null;
307+
groups = null;
308+
allTypesTable = null;
307309
}
308310

309311
private Stream<ContentGeneratorDescriptor> getExtensionsDescriptorsStream() {

0 commit comments

Comments
 (0)