X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.app.ui%2Fsrc%2Forg%2Fargeo%2Fapp%2Fui%2Flibrary%2FContentEntryArea.java;h=42c7e69867cf946e8c20f3d8de448bf5f51bdeef;hb=c6b561fc1d45dd5abcbf86f99ae546bdc3b42b8d;hp=88316413e664ba158a170f9275948884351a5f68;hpb=a7fa345a6f29787468392a0e739aa16d882e1443;p=gpl%2Fargeo-suite.git diff --git a/org.argeo.app.ui/src/org/argeo/app/ui/library/ContentEntryArea.java b/org.argeo.app.ui/src/org/argeo/app/ui/library/ContentEntryArea.java index 8831641..42c7e69 100644 --- a/org.argeo.app.ui/src/org/argeo/app/ui/library/ContentEntryArea.java +++ b/org.argeo.app.ui/src/org/argeo/app/ui/library/ContentEntryArea.java @@ -12,12 +12,12 @@ import javax.jcr.query.Query; import org.argeo.api.acr.Content; import org.argeo.api.cms.CmsConstants; -import org.argeo.api.cms.CmsTheme; import org.argeo.app.api.EntityType; import org.argeo.app.ui.SuiteEvent; import org.argeo.app.ui.SuiteIcon; import org.argeo.app.ui.widgets.TreeOrSearchArea; import org.argeo.cms.jcr.acr.JcrContentProvider; +import org.argeo.cms.swt.CmsSwtTheme; import org.argeo.cms.swt.CmsSwtUtils; import org.argeo.cms.ui.CmsUiProvider; import org.argeo.jcr.Jcr; @@ -41,7 +41,7 @@ public class ContentEntryArea implements CmsUiProvider { @Override public Control createUiPart(Composite parent, Content context) { - CmsTheme theme = CmsSwtUtils.getCmsTheme(parent); + CmsSwtTheme theme = CmsSwtUtils.getCmsTheme(parent); parent.setLayout(new GridLayout()); Ui ui = new Ui(parent, SWT.NONE); @@ -62,15 +62,15 @@ public class ContentEntryArea implements CmsUiProvider { Node node = (Node) element; Image icon; if (Jcr.isNodeType(node, NodeType.NT_FOLDER)) { - icon = SuiteIcon.folder.getSmallIcon(theme); + icon = theme.getSmallIcon(SuiteIcon.folder); } else if (Jcr.isNodeType(node, NodeType.NT_FILE)) { // TODO check recognized document types - icon = SuiteIcon.document.getSmallIcon(theme); + icon = theme.getSmallIcon(SuiteIcon.document); } else if (Jcr.isNodeType(node, EntityType.document.get())) { - icon = SuiteIcon.document.getSmallIcon(theme); + icon = theme.getSmallIcon(SuiteIcon.document); } else { if (!isLeaf(node)) - icon = SuiteIcon.folder.getSmallIcon(theme); + icon = theme.getSmallIcon(SuiteIcon.folder); else icon = null; }