| 67 | LabelSuggestionHelper::~LabelSuggestionHelper() {} |
| 68 | |
| 69 | void LabelSuggestionHelper::LoadStandardSuggestions() |
| 70 | { |
| 71 | auto suggestionPref = mitk::LabelSuggestionHelper::GetSuggestionPreferences(); |
| 72 | |
| 73 | auto json = GetStandardSuggesitions(); |
| 74 | |
| 75 | if (json.has_value()) |
| 76 | { |
| 77 | this->ParseSuggestions(json.value()); |
| 78 | } |
| 79 | else |
| 80 | { //no standard is defined. Suggestions should be empty |
| 81 | m_Suggestions.clear(); |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | bool LabelSuggestionHelper::ParseSuggestions(const std::string& filePath, bool replaceExisting) |
| 86 | { |
no test coverage detected