Commit 98c3a1c3 authored by Robert Loehning's avatar Robert Loehning
Browse files

Squish: Update getEditorForFileSuffix()

Change-Id: Ib052d2dd655117492cbb26f03eaa63c8b61466bb
Reviewed-by: default avatarChristian Stenger <>
parent 74939b18
......@@ -275,17 +275,12 @@ def getEditorForFileSuffix(curFile, treeViewSyntax=False):
editor = waitForObject(":Qt Creator_CppEditor::Internal::CPPEditorWidget")
elif suffix in qmlEditorSuffixes:
editor = waitForObject(":Qt Creator_QmlJSEditor::QmlJSTextEditorWidget")
elif suffix in proEditorSuffixes:
elif suffix in proEditorSuffixes or suffix in glslEditorSuffixes or suffix in pytEditorSuffixes:
editor = waitForObject(":Qt Creator_TextEditor::BaseTextEditorWidget")
elif suffix in glslEditorSuffixes:
editor = waitForObject("{type='GLSLEditor::Internal::GLSLTextEditorWidget' unnamed='1' "
"visible='1' window=':Qt Creator_Core::Internal::MainWindow'}")
elif suffix in pytEditorSuffixes:
editor = waitForObject(":Qt Creator_PythonEditor::EditorWidget")
test.log("Trying PlainTextEditor (file suffix: %s)" % suffix)
test.log("Trying BaseTextEditorWidget (file suffix: %s)" % suffix)
editor = waitForObject(":Qt Creator_TextEditor::PlainTextEditorWidget", 3000)
editor = waitForObject(":Qt Creator_TextEditor::BaseTextEditorWidget", 3000)
test.fatal("Unsupported file suffix for file '%s'" % curFile)
editor = None
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment