Move openEditorAt from BaseTextEditorWidget to EditorManager

More sensible place, gotoLine is a method in IEditor anyhow.

Change-Id: I420a6bf17060c16e6f1a4f45e0bef89379fb6bf8
Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
Eike Ziller
2013-05-30 17:26:51 +02:00
parent 97ce8e4098
commit 2125525e77
25 changed files with 84 additions and 98 deletions

View File

@@ -270,7 +270,7 @@ static Document::Ptr findDefinition(Function *functionDeclaration, int *line)
static inline ITextEditor *editableAt(const QString &fileName, int line, int column)
{
return qobject_cast<ITextEditor *>(TextEditor::BaseTextEditorWidget::openEditorAt(fileName, line, column));
return qobject_cast<ITextEditor *>(Core::EditorManager::openEditorAt(fileName, line, column));
}
static void addDeclaration(const Snapshot &snapshot,
@@ -626,7 +626,7 @@ bool QtCreatorIntegration::navigateToSlot(const QString &objectName,
}
// jump to function definition, position within code
TextEditor::BaseTextEditorWidget::openEditorAt(sourceDoc->fileName(), line + 2, indentation);
Core::EditorManager::openEditorAt(sourceDoc->fileName(), line + 2, indentation);
return true;
}