/**
* Purge menu item name.
*/
- private static final String MNU_NAME_PURGE = "menu.purge";
+ //private static final String MNU_NAME_PURGE = "menu.purge";
/**
* Remove menu item name.
*/
case remove:
res = _user.canRemove();
break;
- case purge:
+ /*case purge:
res = _user.canPurge();
- break;
+ break;*/
case markasreference:
if (_user.getOperand().getMarkreference() == 0) {
res = _user.canMarkStudyAsReference();
*/
private EditableDocumentPopup() {
super();
- addItem("accept", new PopupItem("menu.accept").icon(
+ /*addItem("accept", new PopupItem("menu.accept").icon(
"image.accept.png").action("setDocument?action=accept")
- .confirmation("message.accept.document"));
+ .confirmation("message.accept.document"));*/
addItem(MNU_PROMOTE, new PopupItem(MNU_NAME_PROMOTE).icon(
"image.publish.png").action("setDocument?action=promote")
.confirmation("message.promote.document"));
"image.replace.png").action(
"select-file?nextAction=replace"));
addSeparator();
- addItem(MNU_PURGE, new PopupItem(MNU_NAME_PURGE).action(
+ /*addItem(MNU_PURGE, new PopupItem(MNU_NAME_PURGE).action(
ACT_NOT_YET_IMPLEMENTED).confirmation(
- "message.purge.document"));
+ "message.purge.document"));*/
addItem(MNU_REMOVE, new PopupItem(MNU_NAME_REMOVE_VERSION).icon(
IMG_DELETE).action("remove-document").confirmation(
"message.delete.document"));
if (res) {
Item item = Item.valueOf(name);
switch (item) {
- case accept:
+ /*case accept:
res = _user.canAccept();
- break;
+ break;*/
case promote:
res = _user.canPromote();
break;
case replace:
res = _user.canReplace();
break;
- case purge:
+ /*case purge:
res = _user.canPurge();
- break;
+ break;*/
case remove:
res = _user.canRemove();
break;
addItem(MNU_VERSION, new PopupItem(MNU_NAME_VERSION).icon(
IMG_VERSION).action(ACT_VERSION));
addSeparator();
- addItem(MNU_PURGE, new PopupItem(MNU_NAME_PURGE).action(
+ /*addItem(MNU_PURGE, new PopupItem(MNU_NAME_PURGE).action(
ACT_NOT_YET_IMPLEMENTED).confirmation(
- "message.purge.document"));
+ "message.purge.document"));*/
}
@Override
case version:
res = _user.canVersion();
break;
- case purge:
+ /*case purge:
res = _user.canPurge();
- break;
+ break;*/
default:
res = false;
}
addItem(MNU_VERSION, new PopupItem(MNU_NAME_VERSION).icon(
IMG_VERSION).action(ACT_VERSION));
addSeparator();
- addItem(MNU_PURGE, new PopupItem(MNU_NAME_PURGE).action(
+ /*addItem(MNU_PURGE, new PopupItem(MNU_NAME_PURGE).action(
ACT_NOT_YET_IMPLEMENTED).confirmation(
- "message.purge.document"));
+ "message.purge.document"));*/
addItem(MNU_REMOVE, new PopupItem(MNU_NAME_REMOVE_VERSION).icon(
IMG_DELETE).action("remove-document").confirmation(
"message.delete.document"));