Vcs: Make VcsConfiguration page available to JSON wizards

Change-Id: I444d1d95b87fe5c1ede04e1ae9bbe4e1e2d89bd3
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-01-19 14:42:43 +01:00
parent 6b10466b10
commit a3984dd751
3 changed files with 82 additions and 3 deletions

View File

@@ -36,11 +36,13 @@
#include "nicknamedialog.h"
#include "vcsoutputwindow.h"
#include "corelistener.h"
#include "wizard/vcsconfigurationpage.h"
#include <coreplugin/iversioncontrol.h>
#include <coreplugin/mimedatabase.h>
#include <coreplugin/vcsmanager.h>
#include <projectexplorer/jsonwizard/jsonwizardfactory.h>
#include <projectexplorer/project.h>
#include <projectexplorer/projecttree.h>
@@ -89,6 +91,8 @@ bool VcsPlugin::initialize(const QStringList &arguments, QString *errorMessage)
this, SLOT(slotSettingsChanged()));
slotSettingsChanged();
JsonWizardFactory::registerPageFactory(new Internal::VcsConfigurationPageFactory);
Utils::MacroExpander *expander = Utils::globalMacroExpander();
expander->registerVariable(Constants::VAR_VCS_NAME,
tr("Name of the version control system in use by the current project."),