Move shared code to a new QmlJSTools plugin.

Reviewed-by: Thomas Hartmann
This commit is contained in:
Christian Kamm
2010-11-11 10:05:05 +01:00
parent a4cbd970e5
commit f366754462
32 changed files with 381 additions and 51 deletions

View File

@@ -31,11 +31,11 @@
#define QMLJSQUICKFIX_H
#include "qmljseditor.h"
#include "qmljsrefactoringchanges.h"
#include <texteditor/quickfix.h>
#include <qmljs/parser/qmljsastfwd_p.h>
#include <qmljs/qmljsdocument.h>
#include <qmljstools/qmljsrefactoringchanges.h>
namespace ExtensionSystem {
class IPlugin;
@@ -73,7 +73,7 @@ public:
/// \returns the document of the editor
QmlJS::Document::Ptr document() const;
const QmlJSRefactoringFile currentFile() const;
const QmlJSTools::QmlJSRefactoringFile currentFile() const;
private:
SemanticInfo _semanticInfo;
@@ -105,7 +105,8 @@ public:
protected:
typedef Utils::ChangeSet::Range Range;
virtual void performChanges(QmlJSRefactoringFile *currentFile, QmlJSRefactoringChanges *refactoring) = 0;
virtual void performChanges(QmlJSTools::QmlJSRefactoringFile *currentFile,
QmlJSTools::QmlJSRefactoringChanges *refactoring) = 0;
/// \returns A const-reference to the state of the operation.
const QmlJSQuickFixState &state() const;