Android: Use a BaseEditorFactory derived class for JavaEditor

Change-Id: Ifc923177744af5058b22fac7fff2f2345cc99135
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
hjk
2014-08-22 12:49:02 +02:00
parent 984e2e3cac
commit 2b5df11cb8
4 changed files with 56 additions and 52 deletions

View File

@@ -30,42 +30,17 @@
#ifndef JAVAEDITOR_H
#define JAVAEDITOR_H
#include <texteditor/basetextdocument.h>
#include <texteditor/basetexteditor.h>
#include <utils/uncommentselection.h>
#include <coreplugin/editormanager/ieditorfactory.h>
namespace Android {
namespace Internal {
class JavaEditor : public TextEditor::BaseTextEditor
{
Q_OBJECT
public:
JavaEditor();
TextEditor::CompletionAssistProvider *completionAssistProvider();
};
class JavaDocument : public TextEditor::BaseTextDocument
{
Q_OBJECT
public:
JavaDocument();
QString defaultPath() const;
QString suggestedFileName() const;
};
class JavaEditorFactory : public Core::IEditorFactory
class JavaEditorFactory : public TextEditor::BaseTextEditorFactory
{
Q_OBJECT
public:
JavaEditorFactory();
Core::IEditor *createEditor();
};
} // namespace Internal