]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/commands/MarkAsRelevantCategory.java
Work on index policies.
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui.dist / src / main / java / org / argeo / slc / client / ui / dist / commands / MarkAsRelevantCategory.java
index ae617087f6e998955568bd40091f88dad194c448..f4f8bcbc3db57b8e4761342519894f953b2c0075 100644 (file)
@@ -61,13 +61,13 @@ public class MarkAsRelevantCategory extends AbstractHandler {
                                                        .iterator();
 
                                        Node node = (Node) it.next();
-                                       if (node.isNodeType(SlcTypes.SLC_RELEVANT_CATEGORY)) {
+                                       if (node.isNodeType(SlcTypes.SLC_CATEGORY)) {
                                                String msg = "Your are about to unlist this category from the relevant category list for current workspace"
                                                                + ".\n" + "Are you sure you want to proceed?";
                                                if (MessageDialog.openConfirm(DistPlugin.getDefault()
                                                                .getWorkbench().getDisplay().getActiveShell(),
                                                                "Confirm", msg)) {
-                                                       node.removeMixin(SlcTypes.SLC_RELEVANT_CATEGORY);
+                                                       node.removeMixin(SlcTypes.SLC_CATEGORY);
                                                        node.getSession().save();
                                                }
                                        } else {
@@ -77,7 +77,7 @@ public class MarkAsRelevantCategory extends AbstractHandler {
                                                if (MessageDialog.openConfirm(DistPlugin.getDefault()
                                                                .getWorkbench().getDisplay().getActiveShell(),
                                                                "Confirm", msg)) {
-                                                       node.addMixin(SlcTypes.SLC_RELEVANT_CATEGORY);
+                                                       node.addMixin(SlcTypes.SLC_CATEGORY);
                                                        node.getSession().save();
                                                }
                                        }