MCPcopy Create free account
hub / github.com/bruderstein/nppPluginManager / getCurrentPlugin

Method getCurrentPlugin

pluginManager/src/PluginListView.cpp:303–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301
302
303Plugin* PluginListView::getCurrentPlugin()
304{
305 LVITEM item;
306 item.mask = LVIF_PARAM;
307 item.iItem = getCurrentSelectedIndex();
308
309 if (item.iItem == -1)
310 return NULL;
311
312 ::SendMessage(_hListView, LVM_GETITEM, 0, reinterpret_cast<LPARAM>(&item));
313 return reinterpret_cast<Plugin*>(item.lParam);
314}
315
316
317std::shared_ptr< list<Plugin*> > PluginListView::getSelectedPlugins()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected