/**
* Rename menu item name.
*/
- private static final String MNU_NAME_RENAME = "menu.rename";
+ private static final String MNU_NAME_RENAME = "menu.rename";
+ /**
+ * Publish menu item name.
+ */
+ private static final String MNU_MARK_AS_REFERENCE = "menu.markasreference";
/**
* Not yet implemented action name.
*/
"select?menu=create&item=new-empty");
addItem("new-copy", new MenuItem("menu.new.copy")
.icon("image.copy.png"));
- addItem("new-instance", new MenuItem("menu.new.instance")
+ /*addItem("new-instance", new MenuItem("menu.new.instance")
.icon(IMG_HOLD));
addItem("new-import", new MenuItem("menu.new.import")
- .icon("icon.upload.png"));
+ .icon("icon.upload.png"));*/
this.selects("new-empty");
}
}
private EditableStudyPopup() {
super();
+ addItem(MNU_MARK_AS_REFERENCE, new PopupItem(MNU_MARK_AS_REFERENCE)
+ .action(ACT_NOT_YET_IMPLEMENTED)
+ .confirmation("message.markasreference.study"));
addItem(MNU_PUBLISH, new PopupItem(MNU_NAME_PUBLISH).icon(
"image.publish.png").action("edit-study?action=publish")
.confirmation("message.publish.study"));
- addItem(MNU_PROMOTE, new PopupItem("menu.archive"));
+ /*addItem(MNU_PROMOTE, new PopupItem("menu.archive"));*/
addSeparator();
addItem(MNU_EDIT, new PopupItem("menu.properties").icon(
"icon.ed.png").action("../select?menu=properties"));
addSeparator();
addItem(MNU_SCRIPT, new PopupItem(MNU_NAME_SCRIPT)
.action("add-scenario"));
- addItem(MNU_VERSION, new PopupItem(MNU_NAME_VERSION).icon(
- IMG_VERSION).action(ACT_NOT_YET_IMPLEMENTED));
+ /*addItem(MNU_VERSION, new PopupItem(MNU_NAME_VERSION).icon(
+ IMG_VERSION).action(ACT_NOT_YET_IMPLEMENTED));*/
addSeparator();
- addItem(MNU_PURGE, new PopupItem(MNU_NAME_PURGE)
+ /*addItem(MNU_PURGE, new PopupItem(MNU_NAME_PURGE)
.confirmation("message.purge.study"));
addItem("export", new PopupItem("menu.export")
.icon("image.export.png")); // For future needs
- addItem(MNU_REMOVE, new PopupItem(MNU_NAME_REMOVE).icon(IMG_DELETE)
+*/ addItem(MNU_REMOVE, new PopupItem(MNU_NAME_REMOVE).icon(IMG_DELETE)
.action(ACT_NOT_YET_IMPLEMENTED).confirmation(
"message.delete.study"));
}
*/
private static class ApprovedPopup extends PopupMenu {
private ApprovedPopup() {
- super();
+ super();
addItem(MNU_ATTACH, new PopupItem(MNU_NAME_ATTACH).icon(IMG_ATTACH)
.action(ACT_ATTACH));
addSeparator();
super();
addItem(MNU_RENAME, new PopupItem(MNU_NAME_RENAME)
.action("edit-document?action=renameDocument"));
+ addSeparator();
+ addItem(MNU_VERSION, new PopupItem(MNU_NAME_VERSION).icon(
+ IMG_VERSION).action(ACT_VERSION));
+ addSeparator();
addItem("replace", new PopupItem("menu.replace").icon(
"image.replace.png").action(
"select-file?nextAction=replace"));
case rename:
res = _user.canRename();
break;
+ case version:
+ res = _user.canVersion();
+ break;
case replace:
res = _user.canReplace();
break;
import java.util.List;
import java.util.ResourceBundle;
-import org.hibernate.HibernateException;
-import org.hibernate.Session;
-import org.hibernate.Transaction;
-import org.splat.dal.dao.som.Database;
import org.splat.dal.bo.som.Publication;
import org.splat.dal.bo.som.Scenario;
+import org.splat.dal.bo.som.Study;
import org.splat.service.ProjectElementService;
import org.splat.service.ScenarioService;
import org.splat.som.Step;
-import org.splat.dal.bo.som.Study;
import org.splat.wapp.Menu;
/**
* Set the _titleProperty.
- * @param _titleProperty the titleProperty to set
+ * @param titleProperty the titleProperty to set
*/
public void setTitleProperty(final String titleProperty) {
_titleProperty = titleProperty;
/**
* Set the _editDisabledProperty.
- * @param _editDisabledProperty the _editDisabledProperty to set
+ * @param editDisabledProperty the editDisabledProperty to set
*/
- public void setEditDisabledProperty(final String _editDisabledProperty) {
- this._editDisabledProperty = _editDisabledProperty;
+ public void setEditDisabledProperty(final String editDisabledProperty) {
+ _editDisabledProperty = editDisabledProperty;
}
/**