| 112 | } |
| 113 | |
| 114 | KTextEditor::View *toKteView(Sublime::View *view) |
| 115 | { |
| 116 | if (auto textView = qobject_cast<KDevelop::TextView*>(view)) { |
| 117 | return textView->textView(); |
| 118 | } else { |
| 119 | return nullptr; |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | /** |
| 124 | * @return an IDocument that wraps a given KTextEditor::Document or @c nullptr if no matching IDocument |
no test coverage detected