From 003bd50af6b8c5fff3ac44853eb77529e55c8761 Mon Sep 17 00:00:00 2001 From: mka Date: Mon, 1 Apr 2013 15:03:05 +0000 Subject: [PATCH] Pop-up menu for knowledge is changed in accordance with specification --- .../org/splat/simer/ApplicationSettings.java | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Workspace/Siman/src/org/splat/simer/ApplicationSettings.java b/Workspace/Siman/src/org/splat/simer/ApplicationSettings.java index a30dd31..8b092a5 100644 --- a/Workspace/Siman/src/org/splat/simer/ApplicationSettings.java +++ b/Workspace/Siman/src/org/splat/simer/ApplicationSettings.java @@ -21,7 +21,6 @@ import org.splat.dal.bo.kernel.User; import org.splat.dal.bo.som.Document; import org.splat.dal.bo.som.DocumentType; import org.splat.dal.bo.som.KnowledgeElement; -import org.splat.dal.bo.som.ProgressState; import org.splat.dal.bo.som.SimulationContext; import org.splat.dal.bo.som.Visibility; import org.splat.manox.XDOM; @@ -983,13 +982,6 @@ public class ApplicationSettings { private FeedbexPopup() { super(); - addItem(MNU_PROMOTE, new PopupItem(MNU_NAME_PROMOTE).icon( - "image.review.png").action("promote-knowledge") - .confirmation("message.promote.knowledge")); - addItem(MNU_DEMOTE, new PopupItem(MNU_NAME_DEMOTE).icon( - "image.invalidate.png").action("demote-knowledge") - .confirmation("message.demote.knowledge")); - addSeparator(); addItem(MNU_RENAME, new PopupItem(MNU_NAME_RENAME) .action("edit-knowledge?action=renameKnowledge")); addItem(MNU_EDIT, new PopupItem(MNU_NAME_EDIT) @@ -1002,17 +994,7 @@ public class ApplicationSettings { @Override public boolean isEnabled(final String name) { - Item item = Item.valueOf(name); boolean res = true; - - if (item == Item.promote) { - if (_owner.getProgressState() != ProgressState.inDRAFT) { - res = false; - } - } else if ((item == Item.demote) - && (_owner.getProgressState() != ProgressState.inCHECK)) { - res = false; - } return res; } -- 2.39.2