use of net.sourceforge.pmd.eclipse.runtime.preferences.IPreferences in project pmd-eclipse-plugin by pmd.
the class PriorityDescriptorCache method hasChanges.
public boolean hasChanges() {
IPreferences preferences = preferencesManager().reloadPreferences();
for (RulePriority rp : UISettings.currentPriorities(true)) {
PriorityDescriptor newOne = uiDescriptorsByPriority.get(rp);
PriorityDescriptor currentOne = preferences.getPriorityDescriptor(rp);
if (newOne.equals(currentOne)) {
continue;
}
return true;
}
return false;
}
Aggregations