X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=swt%2Forg.argeo.cms.swt%2Fsrc%2Forg%2Fargeo%2Fcms%2Fswt%2Facr%2FAbstractPageViewer.java;fp=swt%2Forg.argeo.cms.swt%2Fsrc%2Forg%2Fargeo%2Fcms%2Fswt%2Facr%2FAbstractPageViewer.java;h=fab29fa3b1625c7e782ab7d3aaf8aa80df866e79;hb=40b08908d2519f46bce6d1bc3364224100c59c28;hp=cf05f6f6455d939f7dd4618ad62e3ec9de78677c;hpb=b0d3d207c73f84310ee19e6ad35dbb2ccf0d66ef;p=lgpl%2Fargeo-commons.git diff --git a/swt/org.argeo.cms.swt/src/org/argeo/cms/swt/acr/AbstractPageViewer.java b/swt/org.argeo.cms.swt/src/org/argeo/cms/swt/acr/AbstractPageViewer.java index cf05f6f64..fab29fa3b 100644 --- a/swt/org.argeo.cms.swt/src/org/argeo/cms/swt/acr/AbstractPageViewer.java +++ b/swt/org.argeo.cms.swt/src/org/argeo/cms/swt/acr/AbstractPageViewer.java @@ -4,9 +4,6 @@ import java.security.PrivilegedAction; import javax.security.auth.Subject; -import org.argeo.api.acr.Content; -import org.argeo.api.acr.ContentSession; -import org.argeo.api.acr.spi.ProvidedContent; import org.argeo.api.cms.CmsLog; import org.argeo.api.cms.ux.CmsEditable; import org.argeo.cms.CurrentUser; @@ -274,17 +271,17 @@ public abstract class AbstractPageViewer { throw new IllegalStateException("Edited should not be null or disposed at this stage"); } - /** Persist all changes. */ - protected void persistChanges(ContentSession session) { -// session.save(); -// session.refresh(false); - // TODO notify that changes have been persisted - } - - /** Convenience method using a Node in order to save the underlying session. */ - protected void persistChanges(Content anyNode) { - persistChanges(((ProvidedContent) anyNode).getSession()); - } +// /** Persist all changes. */ +// protected void persistChanges(ContentSession session) { +//// session.save(); +//// session.refresh(false); +// // TODO notify that changes have been persisted +// } +// +// /** Convenience method using a Node in order to save the underlying session. */ +// protected void persistChanges(Content anyNode) { +// persistChanges(((ProvidedContent) anyNode).getSession()); +// } /** Notify edition exception */ protected void notifyEditionException(Throwable e) {