To reproduce:
- Create a plugin using the plugin generator
- copy it to the MITK source tree and cmake/build it
- Start ExtApp and open plugin
- Load image
- Click "Do Something" button
Expected results:
Output of "Performing image processing for image '<NAME>'."
Actual results:
Nothing happens
Reason:
In function DoImageProcessing() after
QList<mitk::DataNode::Pointer> nodes = this->GetDataManagerSelection();
nodes is empty even though nodes are selected.
I assume the GetDataManagerSelection() does not work as it should and the plugin generator itself is not at fault, thus the rather high priority and severity. Even if the generated code is just wrong this bug is still fairly important considering most people creating a new plugin will use it to generate one.