Hi Miklos,

Your suggestion with the additional macro might work, but I am afraid that the devil lies in the details. The platform actually has some support for this (inherited from the original Eclipse design, e.g. filtering out UI contributions) but there are some bits and pieces still missing.

I think your current best option is to have your own workbench advisor and reuse MITK's workbench window advisor [1] which provides a function to set a list of views which are to be excluded in the UI.

Cheers,
Sascha

[1] http://docs.mitk.org/2015.05/classQmitkExtWorkbenchWindowAdvisor.html

On 11/19/2015 09:26 AM, Miklos Espak wrote:
Hi,

we would like to hide the image statistics view that comes with the org.mitk.gui.qt.measurementtoolbox plugin.

This plugin provides two views. The other one, org.mitk.views.measurement we need. However, we have our custom statistics view. Is it possible to disable / hide the statistics view while keeping the measurement one?

E.g. would it be possible to have a BERRY_UNREGISTER_EXTENSION_CLASS macro, similarly to BERRY_REGISTER_EXTENSION_CLASS? Then we could place this call to the activator of the plugin that provides our statistics view.

We can of course comment out the unwanted extension point in our MITK fork, I just thought it would be cleaner this way.

Cheers,
Miklos





------------------------------------------------------------------------------


_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to