Community
Participate
Working Groups
Build Identifier: XML Security from context menu should be disabled when no leaf XML file is selected. Reproducible: Always Steps to Reproduce: 1. Right click of a project or a folder under a project that contains XML file. 2. Select XML Security->New Signature 3. Exception will occur with error: org.eclipse.core.internal.resources.Project(Folder) cannot be cast to org.eclipse/core.resources.IFile
I can provide a patch of plugin.xml soon.
Due to company policy, I cannot provide the patch directly. But I will provide idea on how to do this. Basic idea is to made XML Security context menu only show up when a file is selected. For popup menu contribution in plugin.xml, add an extra condition within <and>, With variable "selection", count value should equals = "1", and file must be of instance IFile: <iterate> <instanceof value="org.eclipse.core.resources.IFile"/></iterate> Dominik, please make this change.
Fixed. XML Security context menu is now only available if one xml file is selected in one of the views.