Github user andrea-patricelli commented on a diff in the pull request:
https://github.com/apache/syncope/pull/81#discussion_r210289727
--- Diff:
ide/netbeans/src/main/java/org/apache/syncope/ide/netbeans/view/ResourceExplorerTopComponent.java
---
@@ -429,11 +526,16 @@ public void actionPerformed(final ActionEvent e) {
int result = JOptionPane.showConfirmDialog(null, "Are you
sure to delete the item?");
if (result == JOptionPane.OK_OPTION) {
DefaultMutableTreeNode parent =
(DefaultMutableTreeNode) node.getParent();
- boolean deleted;
+ String nodeName = (String) node.getUserObject() ;
+ boolean deleted = false;
+ try {
if
(parent.getUserObject().equals(PluginConstants.MAIL_TEMPLATES)) {
- deleted =
mailTemplateManagerService.delete((String) node.getUserObject());
+ deleted =
mailTemplateManagerService.delete(nodeName);
+ } else if
(parent.getUserObject().equals(PluginConstants.REPORT_XSLTS)) {
--- End diff --
Invert equals
---