Refactor SWT directory structure.
[lgpl/argeo-commons.git] / eclipse / org.argeo.cms.swt / src / org / argeo / cms / swt / acr / ContentComposite.java
diff --git a/eclipse/org.argeo.cms.swt/src/org/argeo/cms/swt/acr/ContentComposite.java b/eclipse/org.argeo.cms.swt/src/org/argeo/cms/swt/acr/ContentComposite.java
deleted file mode 100644 (file)
index 951889e..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-package org.argeo.cms.swt.acr;
-
-import org.argeo.api.acr.Content;
-import org.argeo.api.acr.spi.ProvidedContent;
-import org.eclipse.swt.widgets.Composite;
-
-/** A composite which can (optionally) manage a content. */
-public class ContentComposite extends Composite {
-       private static final long serialVersionUID = -1447009015451153367L;
-
-       public ContentComposite(Composite parent, int style, Content item) {
-               super(parent, style);
-               setData(item);
-       }
-
-       public Content getContent() {
-               return (Content) getData();
-       }
-
-       @Deprecated
-       public Content getNode() {
-               return getContent();
-       }
-
-       protected ProvidedContent getProvidedContent() {
-               return (ProvidedContent) getContent();
-       }
-
-       public String getSessionLocalId() {
-               return getProvidedContent().getSessionLocalId();
-       }
-
-       protected void itemUpdated() {
-               layout();
-       }
-
-       public void setContent(Content content) {
-               setData(content);
-               itemUpdated();
-       }
-}