Major refactoring of Argeo CMS UI
[lgpl/argeo-commons.git] / org.argeo.cms.ui / src / org / argeo / cms / ui / fs / FsContextMenu.java
index f45629b04278900acb7bdf1b6237bce83c85ee1c..03ec415d8fc201b355ef5a03c6a4b35f92b8fe20 100644 (file)
@@ -18,7 +18,7 @@ import org.apache.commons.io.IOUtils;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.argeo.cms.CmsException;
-import org.argeo.cms.ui.util.CmsUiUtils;
+import org.argeo.cms.swt.CmsSwtUtils;
 import org.argeo.eclipse.ui.EclipseUiUtils;
 import org.argeo.eclipse.ui.dialogs.SingleValue;
 import org.eclipse.jface.dialogs.MessageDialog;
@@ -70,7 +70,7 @@ public class FsContextMenu extends Shell {
 
                Composite boxCmp = new Composite(this, SWT.NO_FOCUS | SWT.BORDER);
                boxCmp.setLayout(EclipseUiUtils.noSpaceGridLayout());
-               CmsUiUtils.style(boxCmp, FsStyles.CONTEXT_MENU_BOX);
+               CmsSwtUtils.style(boxCmp, FsStyles.CONTEXT_MENU_BOX);
                createContextMenu(boxCmp);
 
                addShellListener(new ActionsShellListener());
@@ -82,8 +82,8 @@ public class FsContextMenu extends Shell {
                        Button btn = new Button(boxCmp, SWT.FLAT | SWT.PUSH | SWT.LEAD);
                        btn.setText(getLabel(actionId));
                        btn.setLayoutData(EclipseUiUtils.fillWidth());
-                       CmsUiUtils.markup(btn);
-                       CmsUiUtils.style(btn, actionId + FsStyles.BUTTON_SUFFIX);
+                       CmsSwtUtils.markup(btn);
+                       CmsSwtUtils.style(btn, actionId + FsStyles.BUTTON_SUFFIX);
                        btn.setData(KEY_ACTION_ID, actionId);
                        btn.addSelectionListener(asl);
                        actionButtons.put(actionId, btn);