1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-30 20:35:38 +02:00

Bug 228236 - ConcurrentModificationException when opening source file - follow up

This commit is contained in:
Anton Leherbauer 2009-02-04 12:19:40 +00:00
parent f6b84f948e
commit 76f62916b8

View file

@ -150,21 +150,19 @@ public final class ScannerConfigProfileManager {
} }
/** /**
* @return * @return a list of available scanner config profile id's.
*/ */
public List<String> getProfileIds() { public List<String> getProfileIds() {
if (profileIds == null) { synchronized (fLock) {
synchronized (fLock) { if (profileIds == null) {
if (profileIds == null) { profileIds = new ArrayList<String>();
profileIds = new ArrayList<String>(); IExtensionPoint extension = Platform.getExtensionRegistry().
IExtensionPoint extension = Platform.getExtensionRegistry(). getExtensionPoint(MakeCorePlugin.PLUGIN_ID, ScannerConfigProfileManager.SI_PROFILE_SIMPLE_ID);
getExtensionPoint(MakeCorePlugin.PLUGIN_ID, ScannerConfigProfileManager.SI_PROFILE_SIMPLE_ID); if (extension != null) {
if (extension != null) { IExtension[] extensions = extension.getExtensions();
IExtension[] extensions = extension.getExtensions(); for (int i = 0; i < extensions.length; ++i) {
for (int i = 0; i < extensions.length; ++i) { String rProfileId = extensions[i].getUniqueIdentifier();
String rProfileId = extensions[i].getUniqueIdentifier(); profileIds.add(rProfileId);
profileIds.add(rProfileId);
}
} }
} }
} }