blob: a3981ed49b120c2a70a1619bc3472737e233085f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "diffeditorfactory.h"
#include "diffeditor.h"
#include "diffeditorconstants.h"
#include "diffeditordocument.h"
#include "diffeditortr.h"
#include <QCoreApplication>
using namespace Core;
using namespace TextEditor;
using namespace Utils;
namespace DiffEditor::Internal {
DiffEditorFactory::DiffEditorFactory()
{
setId(Constants::DIFF_EDITOR_ID);
setDisplayName(Tr::tr("Diff Editor"));
addMimeType(Constants::DIFF_EDITOR_MIMETYPE);
setEditorCreator([] { return new DiffEditor(new DiffEditorDocument); });
}
} // namespace DiffEditor::Internal
|