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:
@@ -877,7 +877,6 @@ QString QmlJSEditorWidget::foldReplacementText(const QTextBlock &block) const
|
||||
|
||||
QmlJSEditor::QmlJSEditor()
|
||||
{
|
||||
addContext(Constants::C_QMLJSEDITOR_ID);
|
||||
addContext(ProjectExplorer::Constants::LANG_QMLJS);
|
||||
setDuplicateSupported(true);
|
||||
setCompletionAssistProvider(ExtensionSystem::PluginManager::getObject<Internal::QmlJSCompletionAssistProvider>());
|
||||
@@ -913,8 +912,7 @@ QmlJSEditorFactory::QmlJSEditorFactory()
|
||||
setAutoCompleterCreator([]() { return new AutoCompleter; });
|
||||
setCommentStyle(Utils::CommentDefinition::CppStyle);
|
||||
|
||||
setEditorActionHandlers(Constants::C_QMLJSEDITOR_ID,
|
||||
TextEditorActionHandler::Format
|
||||
setEditorActionHandlers(TextEditorActionHandler::Format
|
||||
| TextEditorActionHandler::UnCommentSelection
|
||||
| TextEditorActionHandler::UnCollapseAll
|
||||
| TextEditorActionHandler::FollowSymbolUnderCursor);
|
||||
|
||||
Reference in New Issue
Block a user