Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: src/plugin/PluginTabBase.cpp

Issue 10897028: Create a shared dictionary class for plugin and engine (Closed)
Patch Set: Created June 7, 2013, 12:42 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 #include "PluginStdAfx.h" 1 #include "PluginStdAfx.h"
2 2
3 #include "PluginClient.h" 3 #include "PluginClient.h"
4 #include "PluginSettings.h" 4 #include "PluginSettings.h"
5 #include "PluginDictionary.h"
6 #ifdef SUPPORT_CONFIG 5 #ifdef SUPPORT_CONFIG
7 #include "PluginConfig.h" 6 #include "PluginConfig.h"
8 #endif 7 #endif
9 #include "PluginTab.h" 8 #include "PluginTab.h"
10 #include "PluginDomTraverser.h" 9 #include "PluginDomTraverser.h"
11 #include "PluginClass.h" 10 #include "PluginClass.h"
12 11
13 #include "PluginTabBase.h" 12 #include "PluginTabBase.h"
14 #include "PluginUtil.h" 13 #include "PluginUtil.h"
15 #include <dispex.h> 14 #include <dispex.h>
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 threadInfo.Format(L"%d.%d", ::GetCurrentProcessId(), ::GetCurrentThreadId()); 339 threadInfo.Format(L"%d.%d", ::GetCurrentProcessId(), ::GetCurrentThreadId());
341 340
342 CString debugText; 341 CString debugText;
343 342
344 debugText += L"=============================================================== ================="; 343 debugText += L"=============================================================== =================";
345 debugText += L"\nTAB THREAD " + threadInfo; 344 debugText += L"\nTAB THREAD " + threadInfo;
346 debugText += L"\n============================================================= ==================="; 345 debugText += L"\n============================================================= ===================";
347 346
348 DEBUG_GENERAL(debugText) 347 DEBUG_GENERAL(debugText)
349 348
350 CPluginClient* client = CPluginClient::GetInstance(); 349 CPluginClient* client = CPluginClient::GetInstance();
351
352 // Force loading/creation of dictionary
353 CPluginDictionary::GetInstance();
354 350
355 client->SetLocalization(); 351 client->SetLocalization();
356 352
357 // Force loading/creation of config 353 // Force loading/creation of config
358 #ifdef SUPPORT_CONFIG 354 #ifdef SUPPORT_CONFIG
359 CPluginConfig* config = CPluginConfig::GetInstance(); 355 CPluginConfig* config = CPluginConfig::GetInstance();
360 356
361 357
362 #endif // SUPPORT_CONFIG 358 #endif // SUPPORT_CONFIG
363 359
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 436
441 // Non-hanging sleep 437 // Non-hanging sleep
442 Sleep(50); 438 Sleep(50);
443 } 439 }
444 440
445 tabLoopIteration++; 441 tabLoopIteration++;
446 } 442 }
447 443
448 return 0; 444 return 0;
449 } 445 }
OLDNEW

Powered by Google App Engine
This is Rietveld