Introduce Makefile for Java build
[lgpl/argeo-commons.git] / org.argeo.cms.e4 / src / org / argeo / cms / e4 / maintenance / DataDeploymentUi.java
index a750e9541abf2b82179a5216df4947ad5f5da4be..ef95bde64aaa344edd702fc6ba73df39580fd22b 100644 (file)
@@ -9,8 +9,8 @@ import java.util.Collection;
 
 import org.apache.jackrabbit.core.RepositoryContext;
 import org.apache.jackrabbit.core.config.RepositoryConfig;
-import org.argeo.api.NodeConstants;
-import org.argeo.cms.ui.util.CmsUiUtils;
+import org.argeo.api.cms.CmsConstants;
+import org.argeo.cms.swt.CmsSwtUtils;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.layout.GridLayout;
@@ -82,12 +82,12 @@ class DataDeploymentUi extends AbstractOsgiComposite {
        private void initCurrentUi(Composite parent) {
                parent.setLayout(new GridLayout());
                Collection<ServiceReference<RepositoryContext>> contexts = getServiceReferences(RepositoryContext.class,
-                               "(" + NodeConstants.CN + "=*)");
+                               "(" + CmsConstants.CN + "=*)");
                StringBuffer text = new StringBuffer();
                text.append("<span style='font-variant: small-caps;'>Jackrabbit Repositories</span><br/>");
                for (ServiceReference<RepositoryContext> sr : contexts) {
                        RepositoryContext repositoryContext = bc.getService(sr);
-                       String alias = sr.getProperty(NodeConstants.CN).toString();
+                       String alias = sr.getProperty(CmsConstants.CN).toString();
                        String rootNodeId = repositoryContext.getRootNodeId().toString();
                        RepositoryConfig repositoryConfig = repositoryContext.getRepositoryConfig();
                        Path repoHomePath = new File(repositoryConfig.getHomeDir()).toPath().toAbsolutePath();
@@ -106,7 +106,7 @@ class DataDeploymentUi extends AbstractOsgiComposite {
                }
                Label label = new Label(parent, SWT.NONE);
                label.setData(new GridData(SWT.FILL, SWT.FILL, false, false));
-               CmsUiUtils.markup(label);
+               CmsSwtUtils.markup(label);
                label.setText("<span style=''>" + text.toString() + "</span>");
        }