Read operation is disabled

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@80952 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2013-08-30 09:04:57 +00:00
parent 14c45ac920
commit 55b477c31c
2 changed files with 8 additions and 4 deletions

View File

@ -245,7 +245,8 @@ public class ContextMenuTree {
}
});
contextMenu.add(mnRead);
//COMMENTED AT 29/08/2013
// contextMenu.add(mnRead);
contextMenu.add(new SeparatorMenuItem());
@ -680,15 +681,18 @@ public class ContextMenuTree {
contextMenu.getItemByItemId(WorkspaceOperation.SHARE_LINK.getId()).setVisible(false); //SHARE
//COMMENTED AT 29/08/2013
/*
//ACCOUNTINGS
if(selectedItem.isMarkAsRead()){
contextMenu.getItemByItemId(WorkspaceOperation.ACCREAD.getId()).setVisible(true); //ACCAUNTING READ
contextMenu.getItemByItemId(WorkspaceOperation.ACCREAD.getId()).setVisible(true); //ACCOUNTING READ
mnRead.setIcon(Resources.getIconRead());
}
else{
contextMenu.getItemByItemId(WorkspaceOperation.ACCREAD.getId()).setVisible(false); //ACCAUNTING READ
contextMenu.getItemByItemId(WorkspaceOperation.ACCREAD.getId()).setVisible(false); //ACCOUNTING READ
mnRead.setIcon(Resources.getIconNotRead());
}
*/
if(selectedItem.isShared()){ //SHARE LINK ON SHARED ITEM

View File

@ -229,7 +229,7 @@ public class UriResolverReaderParameter {
String fileName = "Wikipedia_logo_silver.png";
String uriRequest = uriResolver.resolveAsUriRequest("smp://Wikipedia_logo_silver.png?5ezvFfBOLqaqBlwCEtAvz4ch5BUu1ag3yftpCvV+gayz9bAtSsnO1/sX6pemTKbDe0qbchLexXeWgGcJlskYE8td9QSDXSZj5VSl9kdN9SN0/LRYaWUZuP4Q1J7lEiwkU4GKPsiD6PDRVcT4QAqTEy5hSIbr6o4Y", fileName, "image/png", false);
String uriRequest = uriResolver.resolveAsUriRequest("smp://Wikipedia_logo_silver.png?5ezvFfBOLqaqBlwCEtAvz4ch5BUu1ag3yftpCvV+gayz9bAtSsnO1/sX6pemTKbDe0qbchLexXeWgGcJlskYE8td9QSDXSZj5VSl9kdN9SN0/LRYaWUZuP4Q1J7lEiwkU4GKPsiD6PDRVcT4QAqTEy5hSIbr6o4Y", fileName, "image/png", true);
System.out.println("uriRequest "+uriRequest);
//