X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=plugins%2Forg.argeo.slc.client.ui.dist%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2Fdist%2Fcommands%2FMarkAsRelevantCategory.java;fp=plugins%2Forg.argeo.slc.client.ui.dist%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2Fdist%2Fcommands%2FMarkAsRelevantCategory.java;h=f4f8bcbc3db57b8e4761342519894f953b2c0075;hb=5f40d8d483bdd509881bf09fa9eedf259146be65;hp=ae617087f6e998955568bd40091f88dad194c448;hpb=cccc27ac3b1d94116b457b2ffd3d71e7af0db193;p=gpl%2Fargeo-slc.git diff --git a/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/commands/MarkAsRelevantCategory.java b/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/commands/MarkAsRelevantCategory.java index ae617087f..f4f8bcbc3 100644 --- a/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/commands/MarkAsRelevantCategory.java +++ b/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/commands/MarkAsRelevantCategory.java @@ -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(); } }