@NotNull
protected DefaultActionGroup createPopupActionGroup(JComponent button)
{
DefaultActionGroup actionGroup = new DefaultActionGroup();
XMappingSetRegistry mappingSetRegistry =
XStructurePlugin.getInstance().getXMappingSetRegistry();
XmlFile xmlFile = retrieveXmlFile();
if (xmlFile == null)
{
return actionGroup;
}
Set<IXMappingSet> xMappingSets = mappingSetRegistry.getAvailableXMappingSets(xmlFile);
IXMappingSet selectedXMappingSet = mappingSetRegistry.getSelectedXMappingSet(xmlFile);
// An item to select no mapping set
actionGroup.add(new XMappingSetChoiceAction(xmlFile, null,
(selectedXMappingSet == null)));