X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=swt%2Forg.argeo.cms.swt%2Fsrc%2Forg%2Fargeo%2Fcms%2Fswt%2Facr%2FAbstractPageViewer.java;h=fab29fa3b1625c7e782ab7d3aaf8aa80df866e79;hb=9fd6762a7ac6bb5102dcd2c5a3bc876aa5c942c4;hp=2427c7610bb141e37d5cd7935519ad1bff5744fc;hpb=7282c1638941227f4e3fc8c0506ab0caf96ad1ea;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 2427c7610..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,12 +4,9 @@ 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.auth.CurrentUser; +import org.argeo.cms.CurrentUser; import org.argeo.cms.swt.SwtEditablePart; import org.argeo.cms.swt.widgets.ScrolledPage; import org.eclipse.swt.SWT; @@ -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) {