forked from qt-creator/qt-creator
TextEditor: Move comment definitions back to *Widget
Only used there, and avoids back-links to editors. Change-Id: I81206057ce89d42aef7febb840cf9e44b869df0e Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -880,7 +880,6 @@ QmlJSEditor::QmlJSEditor()
|
||||
addContext(Constants::C_QMLJSEDITOR_ID);
|
||||
addContext(ProjectExplorer::Constants::LANG_QMLJS);
|
||||
setDuplicateSupported(true);
|
||||
setCommentStyle(Utils::CommentDefinition::CppStyle);
|
||||
setCompletionAssistProvider(ExtensionSystem::PluginManager::getObject<Internal::QmlJSCompletionAssistProvider>());
|
||||
}
|
||||
|
||||
@@ -917,13 +916,13 @@ QmlJSEditorFactory::QmlJSEditorFactory()
|
||||
setEditorWidgetCreator([]() { return new QmlJSEditorWidget; });
|
||||
setEditorCreator([]() { return new QmlJSEditor; });
|
||||
setAutoCompleterCreator([]() { return new AutoCompleter; });
|
||||
setCommentStyle(Utils::CommentDefinition::CppStyle);
|
||||
|
||||
setEditorActionHandlers(Constants::C_QMLJSEDITOR_ID,
|
||||
TextEditorActionHandler::Format
|
||||
| TextEditorActionHandler::UnCommentSelection
|
||||
| TextEditorActionHandler::UnCollapseAll
|
||||
| TextEditorActionHandler::FollowSymbolUnderCursor);
|
||||
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user