]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.cms.ui/src/org/argeo/cms/ui/fs/FsContextMenu.java
Major refactoring of Argeo CMS UI
[lgpl/argeo-commons.git] / org.argeo.cms.ui / src / org / argeo / cms / ui / fs / FsContextMenu.java
index ffb5f0a830f2626cd791e244a781d093eacac032..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.util.CmsUtils;
+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());
-               CmsUtils.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());
-                       CmsUtils.markup(btn);
-                       CmsUtils.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);