| 96 | } |
| 97 | |
| 98 | void StandardOutputView::registerToolView(const QString& toolViewId, const QString& title, |
| 99 | KDevelop::IOutputView::ViewType type, const QIcon& icon, Options option, |
| 100 | const QList<QAction*>& actionList) |
| 101 | { |
| 102 | if (toolViewId.isEmpty()) { |
| 103 | qCWarning(PLUGIN_STANDARDOUTPUTVIEW).nospace() |
| 104 | << "registering a view with an empty ID, title " << title << " and type " << type |
| 105 | << "; an empty ID is not unique, so expect bugs!"; |
| 106 | } |
| 107 | |
| 108 | auto& toolView = m_toolViews[toolViewId]; |
| 109 | if (toolView) { |
| 110 | qCDebug(PLUGIN_STANDARDOUTPUTVIEW) |
| 111 | << "reusing view" << toolViewId << "for title" << title << "and type" << type; |
| 112 | return; |
| 113 | } |
| 114 | toolView = addToolView(toolViewId, title, type, icon, option, actionList); |
| 115 | } |
| 116 | |
| 117 | ToolViewData* StandardOutputView::addToolView(const QString& toolViewId, const QString& title, ViewType type, |
| 118 | const QIcon& icon, Options option, const QList<QAction*>& actionList) |