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:
@@ -60,7 +60,6 @@ class ProFileEditor : public TextEditor::BaseTextEditor
|
||||
public:
|
||||
ProFileEditor()
|
||||
{
|
||||
addContext(Constants::C_PROFILEEDITOR);
|
||||
setDuplicateSupported(true);
|
||||
setCompletionAssistProvider(ExtensionSystem::PluginManager::getObject<ProFileCompletionAssistProvider>());
|
||||
}
|
||||
@@ -229,8 +228,7 @@ ProFileEditorFactory::ProFileEditorFactory()
|
||||
setEditorCreator([]() { return new ProFileEditor; });
|
||||
|
||||
setCommentStyle(Utils::CommentDefinition::HashStyle);
|
||||
setEditorActionHandlers(Constants::C_PROFILEEDITOR,
|
||||
TextEditorActionHandler::UnCommentSelection
|
||||
setEditorActionHandlers(TextEditorActionHandler::UnCommentSelection
|
||||
| TextEditorActionHandler::JumpToFileUnderCursor);
|
||||
|
||||
Core::FileIconProvider::registerIconOverlayForSuffix(QtSupport::Constants::ICON_QT_PROJECT, "pro");
|
||||
|
||||
Reference in New Issue
Block a user