forked from qt-creator/qt-creator
		
	Use new static ICore interface.
Change-Id: I9b690d9b150c8d162b15370f9f8986267c9128f1 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
		@@ -124,8 +124,7 @@ Core::Command *createSeparator(Core::ActionManager *am,
 | 
			
		||||
 | 
			
		||||
bool QmlJSEditorPlugin::initialize(const QStringList & /*arguments*/, QString *errorMessage)
 | 
			
		||||
{
 | 
			
		||||
    Core::ICore *core = Core::ICore::instance();
 | 
			
		||||
    if (!core->mimeDatabase()->addMimeTypes(QLatin1String(":/qmljseditor/QmlJSEditor.mimetypes.xml"), errorMessage))
 | 
			
		||||
    if (!Core::ICore::mimeDatabase()->addMimeTypes(QLatin1String(":/qmljseditor/QmlJSEditor.mimetypes.xml"), errorMessage))
 | 
			
		||||
        return false;
 | 
			
		||||
 | 
			
		||||
    m_modelManager = QmlJS::ModelManagerInterface::instance();
 | 
			
		||||
@@ -150,6 +149,7 @@ bool QmlJSEditorPlugin::initialize(const QStringList & /*arguments*/, QString *e
 | 
			
		||||
    m_editor = new QmlJSEditorFactory(this);
 | 
			
		||||
    addObject(m_editor);
 | 
			
		||||
 | 
			
		||||
    QObject *core = Core::ICore::instance();
 | 
			
		||||
    Core::BaseFileWizardParameters qmlWizardParameters(Core::IWizard::FileWizard);
 | 
			
		||||
    qmlWizardParameters.setCategory(QLatin1String(Constants::WIZARD_CATEGORY_QML));
 | 
			
		||||
    qmlWizardParameters.setDisplayCategory(QCoreApplication::translate("QmlJsEditor", Constants::WIZARD_TR_CATEGORY_QML));
 | 
			
		||||
@@ -172,7 +172,7 @@ bool QmlJSEditorPlugin::initialize(const QStringList & /*arguments*/, QString *e
 | 
			
		||||
        | TextEditor::TextEditorActionHandler::UnCollapseAll);
 | 
			
		||||
    m_actionHandler->initializeActions();
 | 
			
		||||
 | 
			
		||||
    Core::ActionManager *am =  core->actionManager();
 | 
			
		||||
    Core::ActionManager *am = Core::ICore::actionManager();
 | 
			
		||||
    Core::ActionContainer *contextMenu = am->createMenu(QmlJSEditor::Constants::M_CONTEXT);
 | 
			
		||||
    Core::ActionContainer *qmlToolsMenu = am->actionContainer(Core::Id(QmlJSTools::Constants::M_TOOLS_QMLJS));
 | 
			
		||||
 | 
			
		||||
@@ -255,7 +255,7 @@ bool QmlJSEditorPlugin::initialize(const QStringList & /*arguments*/, QString *e
 | 
			
		||||
    addAutoReleasedObject(new QuickToolBar);
 | 
			
		||||
    addAutoReleasedObject(new Internal::QuickToolBarSettingsPage);
 | 
			
		||||
 | 
			
		||||
    connect(core->editorManager(), SIGNAL(currentEditorChanged(Core::IEditor*)), SLOT(currentEditorChanged(Core::IEditor*)));
 | 
			
		||||
    connect(Core::ICore::editorManager(), SIGNAL(currentEditorChanged(Core::IEditor*)), SLOT(currentEditorChanged(Core::IEditor*)));
 | 
			
		||||
 | 
			
		||||
    return true;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user