Replace .qmlproject default editor with the .qml one

Extend logic for mimetype matching in QmlJsEditor: Also
handle sub-mimetypes like x-application-qmlproject, which
extends x-application-qml.
This commit is contained in:
Kai Koehne
2010-01-20 16:43:50 +01:00
parent 10dc30fa13
commit 5c16f706c6
9 changed files with 30 additions and 336 deletions

View File

@@ -32,7 +32,6 @@
#include "qmlprojectwizard.h"
#include "qmlnewprojectwizard.h"
#include "qmlprojectconstants.h"
#include "qmlprojectfileseditor.h"
#include "qmlproject.h"
#include "qmltaskmanager.h"
@@ -52,14 +51,11 @@ using namespace QmlProjectManager;
using namespace QmlProjectManager::Internal;
QmlProjectPlugin::QmlProjectPlugin() :
m_projectFilesEditorFactory(0),
m_qmlTaskManager(0)
{ }
QmlProjectPlugin::~QmlProjectPlugin()
{
removeObject(m_projectFilesEditorFactory);
delete m_projectFilesEditorFactory;
}
bool QmlProjectPlugin::initialize(const QStringList &, QString *errorMessage)
@@ -76,12 +72,6 @@ bool QmlProjectPlugin::initialize(const QStringList &, QString *errorMessage)
Manager *manager = new Manager;
TextEditor::TextEditorActionHandler *actionHandler =
new TextEditor::TextEditorActionHandler(Constants::C_FILESEDITOR);
m_projectFilesEditorFactory = new ProjectFilesFactory(manager, actionHandler);
addObject(m_projectFilesEditorFactory);
m_qmlTaskManager = new QmlTaskManager(this);
addAutoReleasedObject(manager);