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

[fix] System type is not disabled if no subsystems are registered for the specific system type

This commit is contained in:
Uwe Stieber 2007-03-11 15:20:32 +00:00
parent f408d0f68c
commit 051ba6c466

View file

@ -190,6 +190,11 @@ public class RSESystemTypeAdapter extends RSEAdapter implements IRSESystemTypeCo
IRSESystemType systemType = getSystemType(object);
if ( systemType != null) {
result = RSEPreferencesManager.getIsSystemTypeEnabled(systemType);
// if enabled, check if the system type has any registered subsystems. If
// not, this will auto-disable the system type.
if (result && RSEUIPlugin.getDefault().getSystemRegistry().getSubSystemConfigurationsBySystemType(systemType, true).length == 0) {
result = false;
}
}
return result;
}