+ */
+ int left = event.getNativeEvent().getClientX();
+ int top = event.getNativeEvent().getClientY();
+ //menu.setPopupPosition(left, top);
+ //menu.show();
+ }
+ }
+
+ public FileContextMenu onEvent(Event event) {
+ FileContextMenu menu=null;
+ if (GSS.get().getCurrentSelection() != null)
+ if (GSS.get().getCurrentSelection() instanceof FileResource) {
+ FileResource res = (FileResource) GSS.get().getCurrentSelection();
+
+ if (res.isDeleted())
+ menu = new FileContextMenu(images, true, false);
+ else
+ menu = new FileContextMenu(images, false, false);
+ int left = event.getClientX();
+ int top = event.getClientY();
+ menu.setPopupPosition(left, top);
+ menu.show();
+ } else if (GSS.get().getCurrentSelection() instanceof List) {
+ /*TODO: CELLTREE
+ if (GSS.get().getTreeView().isTrashItem(GSS.get().getTreeView().getSelection()))
+ menu = new FileContextMenu(images, true, false);
+ else {
+ menu = new FileContextMenu(images, false, false);
+ menu.onMultipleSelection();
+ }*/
+ menu = new FileContextMenu(images, false, false);
+ menu.onMultipleSelection();