forked from qt-creator/qt-creator
Define the run type of the processor by its implementation instead of a enum value of the provider. The execution of a processor inside the assist now follows a unified procedure. Change-Id: Ibe9fab324c6072e77702c2663946d7a9f562a085 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
27 lines
646 B
C++
27 lines
646 B
C++
// Copyright (C) 2018 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
|
|
|
#pragma once
|
|
|
|
#include "completionassistprovider.h"
|
|
|
|
#include "texteditor/texteditorconstants.h"
|
|
|
|
namespace TextEditor {
|
|
|
|
class TEXTEDITOR_EXPORT DocumentContentCompletionProvider : public CompletionAssistProvider
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
DocumentContentCompletionProvider(
|
|
const QString &snippetGroup = QString(Constants::TEXT_SNIPPET_GROUP_ID));
|
|
|
|
IAssistProcessor *createProcessor(const AssistInterface *) const override;
|
|
|
|
private:
|
|
QString m_snippetGroup;
|
|
};
|
|
|
|
} // TextEditor
|