Added infrastructure to change multiple files at once.

This commit is contained in:
Erik Verbruggen
2010-06-14 14:52:43 +02:00
parent b57a161101
commit 297b281ced
20 changed files with 638 additions and 84 deletions

View File

@@ -31,6 +31,7 @@
#define QMLJSQUICKFIX_H
#include "qmljseditor.h"
#include <texteditor/quickfix.h>
#include <qmljs/parser/qmljsastfwd_p.h>
#include <qmljs/qmljsdocument.h>
@@ -40,6 +41,7 @@ namespace QmlJS {
}
namespace QmlJSEditor {
class QmlJSRefactoringChanges;
namespace Internal {
@@ -69,6 +71,10 @@ protected:
using TextEditor::QuickFixOperation::charAt;
using TextEditor::QuickFixOperation::position;
virtual void apply();
QmlJSRefactoringChanges *qmljsRefactoringChanges() const;
virtual TextEditor::RefactoringChanges *refactoringChanges() const;
unsigned position(const QmlJS::AST::SourceLocation &loc) const;
// token based operations
@@ -79,6 +85,7 @@ protected:
private:
SemanticInfo _semanticInfo;
QmlJSRefactoringChanges *_refactoringChanges;
};
class QmlJSQuickFixCollector: public TextEditor::QuickFixCollector