Hi Matthieu, I just reviewed the whole thing. The UnknownDataNodeDescriptor is a plain member of the DescriptorManager by intent. However, I see no reason why one should not have access to it, so i filed a new bug (http://bugs.mitk.org/show_bug.cgi?id=14293) and pushed a fix for it in the MITK master. The change is trivial: If "Unknown" is passed to QmitkNodeDescriptorManager::GetDescriptor() the method now really returns the UnknownDataNodeDescriptor. As a result, your scenario should work now. Please test it yourself and give us feedback.
Best, Michael ________________________________________ Von: matthieu dumont [[email protected]] Gesendet: Donnerstag, 6. Dezember 2012 15:53 An: [email protected] Betreff: [mitk-users] Add IContextMenuAction to Unknown descriptor via org.mitk.gui.qt.datamanager.contextMenuActions extension point. Hi, Im trying to add a context menu action to the datamanager context menu via the org.mitk.gui.qt.datamanager.contextMenuActions extension point. It works perfectly well if I add it to any of the Image, ImageMask, PointSet, Surface, NoneBinaryImage descriptor but if i try to add it to the Unknown data descriptor with the key Unknown in my plugin.xml I get a warning that the descriptor Unknown does not exist. Im trying to add it to Unknown to make my action visible when multiple nodes are selected in the datamanager. I looked up the QmitkNodeDescriptorManager code and found out the the unknown descriptor was created in the constructor but that it was NOT added to the descriptor list (m_NodeDescriptors) like all other descriptors created in this class. Could it be the problem? Is it made on purpose? Is there another way for me to add my contextmenuaction in the multiselection menu without using the Unknown descriptor? Thank you! -- Matthieu Dumont Plateforme d'Analyse et de Visualisation d'Images 819.346.1110 poste 16634 pavi.dinf.usherbrooke.ca ------------------------------------------------------------------------------ Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
