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:
parent
f408d0f68c
commit
051ba6c466
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue