git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@71814 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f981f0905a
commit
79d79230b2
|
@ -23,11 +23,11 @@ public class ConstantsExplorer {
|
|||
//MESSAGE DIALOG BOX constants
|
||||
public static final String MESSAGE_CONFIRM_DELETE_ITEM = "Are you sure you want to delete item";
|
||||
public static final String MESSAGE_CONFIRM_DELETE_SMART_FOLDER = "Are you sure you want to delete smart folder";
|
||||
public static final String MESSAGE_ADD_SMART_FOLDER = "Add Smart Folder";
|
||||
public static final String MESSAGE_ADD_FOLDER = "Add Folder";
|
||||
public static final String MESSAGE_ADD_SHARED_FOLDER = "Add Shared Folder";
|
||||
public static final String MESSAGE_ADD_SMART_FOLDER = "New Smart Folder";
|
||||
public static final String MESSAGE_ADD_FOLDER = "New Folder";
|
||||
public static final String MESSAGE_ADD_SHARED_FOLDER = "New Shared Folder";
|
||||
public static final String MESSAGE_ADD = "Add";
|
||||
public static final String MESSAGE_ADD_FOLDER_IN = "Add Folder in: ";
|
||||
public static final String MESSAGE_ADD_FOLDER_IN = "Create a new folder in: ";
|
||||
public static final String MESSAGE_ITEM_NAME = "Item Name";
|
||||
public static final String MESSAGE_RENAME = "Rename";
|
||||
public static final String MESSAGE_DELETE_ITEM = "Delete Item";
|
||||
|
@ -43,8 +43,8 @@ public class ConstantsExplorer {
|
|||
public static final String MESSAGE_PREVIEW = "Preview";
|
||||
public static final String MESSAGE_SHOW = "Show";
|
||||
public static final String MESSAGE_OPEN_URL = "Open Url";
|
||||
public static final String MESSAGE_ADD_URL = "Add Url";
|
||||
public static final String MESSAGE_ADD_URL_IN = "Add Url in:";
|
||||
public static final String MESSAGE_ADD_URL = "New Url";
|
||||
public static final String MESSAGE_ADD_URL_IN = "Create a new url in:";
|
||||
public static final String MESSAGE_OPEN_REPORT_TEMPLATE = "Open R. Template";
|
||||
public static final String MESSAGE_OPEN_REPORT = "Open Report";
|
||||
public static final String MESSAGE_SEND_TO = "Send to";
|
||||
|
|
|
@ -143,6 +143,24 @@ public class ContextMenuTree {
|
|||
|
||||
//END SPECIFIC OPERATION
|
||||
|
||||
|
||||
MenuItem mnGetInfo = new MenuItem();
|
||||
mnGetInfo.setId(WorkspaceOperation.GET_INFO.getId());
|
||||
mnGetInfo.setText(ConstantsExplorer.MESSAGE_GET_INFO);
|
||||
mnGetInfo.setIcon(Resources.getIconInfo());
|
||||
|
||||
mnGetInfo.addSelectionListener(new SelectionListener<MenuEvent>() {
|
||||
public void componentSelected(MenuEvent ce) {
|
||||
|
||||
for (FileModel sel : listSelectedItems) {
|
||||
eventBus.fireEvent(new GetInfoEvent(sel));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
contextMenu.add(mnGetInfo);
|
||||
|
||||
contextMenu.add(new SeparatorMenuItem());
|
||||
|
||||
MenuItem insertFolder = new MenuItem();
|
||||
insertFolder.setId(WorkspaceOperation.INSERT_FOLDER.getId());
|
||||
|
@ -448,23 +466,6 @@ public class ContextMenuTree {
|
|||
contextMenu.add(downloadArchive);
|
||||
contextMenu.add(new SeparatorMenuItem());
|
||||
|
||||
|
||||
MenuItem mnGetInfo = new MenuItem();
|
||||
mnGetInfo.setId(WorkspaceOperation.GET_INFO.getId());
|
||||
mnGetInfo.setText(ConstantsExplorer.MESSAGE_GET_INFO);
|
||||
mnGetInfo.setIcon(Resources.getIconInfo());
|
||||
|
||||
mnGetInfo.addSelectionListener(new SelectionListener<MenuEvent>() {
|
||||
public void componentSelected(MenuEvent ce) {
|
||||
|
||||
for (FileModel sel : listSelectedItems) {
|
||||
eventBus.fireEvent(new GetInfoEvent(sel));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
contextMenu.add(mnGetInfo);
|
||||
|
||||
MenuItem refreshItem = new MenuItem();
|
||||
refreshItem.setId(WorkspaceOperation.REFRESH_FOLDER.getId());
|
||||
refreshItem.setText(ConstantsExplorer.MESSAGE_REFRESH_FOLDER);
|
||||
|
|
Loading…
Reference in New Issue