forked from qt-creator/qt-creator
Editors: Automatically add editor/document id to context and use that
instead of manually adding a context everywhere. Change-Id: I4336015a6d19349171a255e949da89b0013d6700 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -50,7 +50,6 @@ class ProjectFilesEditor : public BaseTextEditor
|
||||
public:
|
||||
ProjectFilesEditor()
|
||||
{
|
||||
addContext(Constants::C_FILESEDITOR);
|
||||
setDuplicateSupported(true);
|
||||
}
|
||||
};
|
||||
@@ -69,7 +68,7 @@ ProjectFilesFactory::ProjectFilesFactory()
|
||||
|
||||
setEditorCreator([]() { return new ProjectFilesEditor; });
|
||||
setDocumentCreator([]() { return new BaseTextDocument(Constants::FILES_EDITOR_ID); });
|
||||
setEditorActionHandlers(Constants::C_FILESEDITOR, TextEditorActionHandler::None);
|
||||
setEditorActionHandlers(TextEditorActionHandler::None);
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user