forked from qt-creator/qt-creator
ExtensionManager: Introduce extensions service response parser and model
This adds a parser for the JSON response of the extension rest API. The data, combined with the PluginSpecs of local plugins, serve as data model for the extension mode view. A couple of "packs" are provided as test data. Change-Id: I5ce961a9de9bf54ca745e5e5a5e584b1698e6ac6 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -5,6 +5,9 @@
|
||||
|
||||
#include "extensionmanagerconstants.h"
|
||||
#include "extensionmanagerwidget.h"
|
||||
#ifdef WITH_TESTS
|
||||
#include "extensionmanager_test.h"
|
||||
#endif // WITH_TESTS
|
||||
|
||||
#include <coreplugin/actionmanager/actioncontainer.h>
|
||||
#include <coreplugin/actionmanager/actionmanager.h>
|
||||
@@ -15,7 +18,6 @@
|
||||
#include <coreplugin/imode.h>
|
||||
|
||||
#include <extensionsystem/iplugin.h>
|
||||
#include <extensionsystem/pluginspec.h>
|
||||
|
||||
#include <utils/icon.h>
|
||||
#include <utils/layoutbuilder.h>
|
||||
@@ -73,6 +75,10 @@ public:
|
||||
void initialize() final
|
||||
{
|
||||
m_mode = new ExtensionManagerMode;
|
||||
|
||||
#ifdef WITH_TESTS
|
||||
addTestCreator(createExtensionsModelTest);
|
||||
#endif // WITH_TESTS
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user