| 195 | } |
| 196 | |
| 197 | void DebugInformation::doubleClickCallback(const MouseEvent &e, Component* componentToNotify) |
| 198 | { |
| 199 | auto obj = getObject(); |
| 200 | |
| 201 | if (auto pc = componentToNotify->findParentComponentOfClass<PanelWithProcessorConnection>()) |
| 202 | { |
| 203 | auto p = pc->getConnectedProcessor(); |
| 204 | DebugableObject::Helpers::gotoLocation(p, this); |
| 205 | return; |
| 206 | } |
| 207 | |
| 208 | |
| 209 | |
| 210 | if (auto cso = dynamic_cast<ScriptingObject*>(obj)) |
| 211 | { |
| 212 | auto jp = dynamic_cast<Processor*>(cso->getProcessor()); |
| 213 | |
| 214 | if (auto sc = dynamic_cast<ScriptingApi::Content::ScriptComponent*>(getObject())) |
| 215 | { |
| 216 | auto b = jp->getMainController()->getScriptComponentEditBroadcaster(); |
| 217 | b->setSelection(sc, sendNotification); |
| 218 | } |
| 219 | |
| 220 | DebugableObject::Helpers::gotoLocation(jp, this); |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | String DebugInformation::getTextForRow(Row r) |
| 225 | { |
no test coverage detected