Introduced editors for .files and .includes files.

This commit is contained in:
Roberto Raggi
2009-03-16 11:08:07 +01:00
parent 8c83a8f7f2
commit 7c537a81ff
12 changed files with 366 additions and 11 deletions

View File

@@ -30,21 +30,30 @@
#include "genericprojectplugin.h"
#include "genericprojectmanager.h"
#include "genericprojectwizard.h"
#include "genericprojectconstants.h"
#include "genericprojectfileseditor.h"
#include "makestep.h"
#include <coreplugin/icore.h>
#include <coreplugin/mimedatabase.h>
#include <texteditor/texteditoractionhandler.h>
#include <QtCore/QtPlugin>
#include <QtCore/QDebug>
using namespace GenericProjectManager;
using namespace GenericProjectManager::Internal;
GenericProjectPlugin::GenericProjectPlugin()
: _projectFilesEditorFactory(0)
{ }
GenericProjectPlugin::~GenericProjectPlugin()
{ }
{
removeObject(_projectFilesEditorFactory);
delete _projectFilesEditorFactory;
}
bool GenericProjectPlugin::initialize(const QStringList &, QString *errorMessage)
{
@@ -58,7 +67,15 @@ bool GenericProjectPlugin::initialize(const QStringList &, QString *errorMessage
if (! mimeDB->addMimeTypes(mimetypesXml, errorMessage))
return false;
addAutoReleasedObject(new Manager);
Manager *manager = new Manager;
TextEditor::TextEditorActionHandler *actionHandler =
new TextEditor::TextEditorActionHandler(Constants::C_FILESEDITOR);
_projectFilesEditorFactory = new ProjectFilesFactory(manager, actionHandler);
addObject(_projectFilesEditorFactory);
addAutoReleasedObject(manager);
addAutoReleasedObject(new MakeBuildStepFactory);
addAutoReleasedObject(new GenericProjectWizard);