Extract JCR in a separate bundle
[gpl/argeo-suite.git] / swt / org.argeo.app.ui / src / org / argeo / app / ui / docbook / DbkVideo.java
index c8aee51527b5db5ce26e65f90066983c3a04023f..a0944d5e77f464f51ecb2883e1763e0e33be2295 100644 (file)
@@ -9,9 +9,10 @@ import javax.jcr.Item;
 import javax.jcr.Node;
 import javax.jcr.RepositoryException;
 
+import org.argeo.api.acr.ldap.NamingUtils;
 import org.argeo.app.docbook.DbkAttr;
 import org.argeo.app.docbook.DbkType;
-import org.argeo.app.docbook.DbkUtils;
+import org.argeo.app.jcr.docbook.DbkJcrUtils;
 import org.argeo.cms.swt.CmsSwtUtils;
 import org.argeo.cms.swt.Selected;
 import org.argeo.cms.ui.viewers.NodePart;
@@ -20,7 +21,6 @@ import org.argeo.cms.ui.viewers.SectionPart;
 import org.argeo.cms.ui.widgets.StyledControl;
 import org.argeo.jcr.Jcr;
 import org.argeo.jcr.JcrException;
-import org.argeo.util.naming.NamingUtils;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.browser.Browser;
 import org.eclipse.swt.events.SelectionEvent;
@@ -70,7 +70,7 @@ public class DbkVideo extends StyledControl implements SectionPart, NodePart {
                        Composite editor = new Composite(wrapper, SWT.BORDER);
                        editor.setLayout(new GridLayout(3, false));
                        editor.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
-                       String fileref = DbkUtils.getMediaFileref(mediaobject);
+                       String fileref = DbkJcrUtils.getMediaFileref(mediaobject);
                        Text text = new Text(editor, SWT.SINGLE);
                        if (fileref != null)
                                text.setText(fileref);
@@ -171,7 +171,7 @@ public class DbkVideo extends StyledControl implements SectionPart, NodePart {
                        if (control instanceof Browser) {
                                Browser browser = (Browser) control;
                                getNode().getSession();
-                               String fileref = DbkUtils.getMediaFileref(getNode());
+                               String fileref = DbkJcrUtils.getMediaFileref(getNode());
                                if (fileref != null) {
                                        // TODO manage self-hosted videos
                                        // TODO for YouTube videos, check whether the URL starts with