����ExtLexerManager��tag������ֵ
| 158 | |
| 159 | //����ExtLexerManager��tag������ֵ |
| 160 | void LangExtSet::updataExtLexerManager(QString tag, int lexId, QStringList & oldExtList, QStringList & newExtList) |
| 161 | { |
| 162 | //�Ѿɵ�ֱ��ɾ�� |
| 163 | for (int i = 0; i < oldExtList.size(); ++i) |
| 164 | { |
| 165 | ExtLexerManager::getInstance()->remove(oldExtList.at(i)); |
| 166 | } |
| 167 | //���µ����¼���һ�� |
| 168 | for (int i = 0; i < newExtList.size(); ++i) |
| 169 | { |
| 170 | FileExtLexer v; |
| 171 | v.ext = newExtList.at(i); |
| 172 | v.id = (LangType)lexId; |
| 173 | |
| 174 | ExtLexerManager::getInstance()->addNewExtType(v.ext, v.id, tag); |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | //�����ļ��Ĺ���������� |
| 179 | void LangExtSet::loadExtRelevanceToMagr() |
nothing calls this directly
no test coverage detected