projects
/
lgpl
/
argeo-commons.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce Makefile for Java build
[lgpl/argeo-commons.git]
/
org.argeo.cms.ui
/
src
/
org
/
argeo
/
cms
/
ui
/
fs
/
FsContextMenu.java
diff --git
a/org.argeo.cms.ui/src/org/argeo/cms/ui/fs/FsContextMenu.java
b/org.argeo.cms.ui/src/org/argeo/cms/ui/fs/FsContextMenu.java
index f45629b04278900acb7bdf1b6237bce83c85ee1c..c548e2aa0b0cfdd25bf7ffcce158d9334886ba3c 100644
(file)
--- a/
org.argeo.cms.ui/src/org/argeo/cms/ui/fs/FsContextMenu.java
+++ b/
org.argeo.cms.ui/src/org/argeo/cms/ui/fs/FsContextMenu.java
@@
-15,10
+15,9
@@
import java.util.List;
import java.util.Map;
import org.apache.commons.io.IOUtils;
import java.util.Map;
import org.apache.commons.io.IOUtils;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
+import org.argeo.api.cms.CmsLog;
import org.argeo.cms.CmsException;
import org.argeo.cms.CmsException;
-import org.argeo.cms.
ui.util.CmsUi
Utils;
+import org.argeo.cms.
swt.CmsSwt
Utils;
import org.argeo.eclipse.ui.EclipseUiUtils;
import org.argeo.eclipse.ui.dialogs.SingleValue;
import org.eclipse.jface.dialogs.MessageDialog;
import org.argeo.eclipse.ui.EclipseUiUtils;
import org.argeo.eclipse.ui.dialogs.SingleValue;
import org.eclipse.jface.dialogs.MessageDialog;
@@
-40,7
+39,7
@@
import org.eclipse.swt.widgets.Shell;
public class FsContextMenu extends Shell {
private static final long serialVersionUID = -9120261153509855795L;
public class FsContextMenu extends Shell {
private static final long serialVersionUID = -9120261153509855795L;
- private final static
Log log = LogFactory
.getLog(FsContextMenu.class);
+ private final static
CmsLog log = CmsLog
.getLog(FsContextMenu.class);
// Default known actions
public final static String ACTION_ID_CREATE_FOLDER = "createFolder";
// Default known actions
public final static String ACTION_ID_CREATE_FOLDER = "createFolder";
@@
-70,7
+69,7
@@
public class FsContextMenu extends Shell {
Composite boxCmp = new Composite(this, SWT.NO_FOCUS | SWT.BORDER);
boxCmp.setLayout(EclipseUiUtils.noSpaceGridLayout());
Composite boxCmp = new Composite(this, SWT.NO_FOCUS | SWT.BORDER);
boxCmp.setLayout(EclipseUiUtils.noSpaceGridLayout());
- Cms
Ui
Utils.style(boxCmp, FsStyles.CONTEXT_MENU_BOX);
+ Cms
Swt
Utils.style(boxCmp, FsStyles.CONTEXT_MENU_BOX);
createContextMenu(boxCmp);
addShellListener(new ActionsShellListener());
createContextMenu(boxCmp);
addShellListener(new ActionsShellListener());
@@
-82,8
+81,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());
Button btn = new Button(boxCmp, SWT.FLAT | SWT.PUSH | SWT.LEAD);
btn.setText(getLabel(actionId));
btn.setLayoutData(EclipseUiUtils.fillWidth());
- Cms
Ui
Utils.markup(btn);
- Cms
Ui
Utils.style(btn, actionId + FsStyles.BUTTON_SUFFIX);
+ Cms
Swt
Utils.markup(btn);
+ Cms
Swt
Utils.style(btn, actionId + FsStyles.BUTTON_SUFFIX);
btn.setData(KEY_ACTION_ID, actionId);
btn.addSelectionListener(asl);
actionButtons.put(actionId, btn);
btn.setData(KEY_ACTION_ID, actionId);
btn.addSelectionListener(asl);
actionButtons.put(actionId, btn);