public link, icon changed

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@78976 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2013-07-11 13:37:35 +00:00
parent c99c9ea7ac
commit 07d7627438
4 changed files with 9 additions and 9 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 913 B

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -112,7 +112,7 @@ public class ContextMenuTree {
MenuItem openReportTemplate = new MenuItem(); MenuItem openReportTemplate = new MenuItem();
openReportTemplate.setId(WorkspaceOperation.OPEN_REPORT_TEMPLATE.getId()); openReportTemplate.setId(WorkspaceOperation.OPEN_REPORT_TEMPLATE.getId());
openReportTemplate.setText(ConstantsExplorer.MESSAGE_OPEN_REPORT_TEMPLATE); openReportTemplate.setText(ConstantsExplorer.MESSAGE_OPEN_REPORT_TEMPLATE);
openReportTemplate.setIcon(Resources.getIconOpenUrl()); openReportTemplate.setIcon(Resources.getIconShow());
openReportTemplate.addSelectionListener(new SelectionListener<MenuEvent>() { openReportTemplate.addSelectionListener(new SelectionListener<MenuEvent>() {
public void componentSelected(MenuEvent ce) { public void componentSelected(MenuEvent ce) {
@ -132,7 +132,7 @@ public class ContextMenuTree {
MenuItem openReport = new MenuItem(); MenuItem openReport = new MenuItem();
openReport.setId(WorkspaceOperation.OPEN_REPORT.getId()); openReport.setId(WorkspaceOperation.OPEN_REPORT.getId());
openReport.setText(ConstantsExplorer.MESSAGE_OPEN_REPORT); openReport.setText(ConstantsExplorer.MESSAGE_OPEN_REPORT);
openReport.setIcon(Resources.getIconOpenUrl()); openReport.setIcon(Resources.getIconShow());
openReport.addSelectionListener(new SelectionListener<MenuEvent>() { openReport.addSelectionListener(new SelectionListener<MenuEvent>() {
public void componentSelected(MenuEvent ce) { public void componentSelected(MenuEvent ce) {

View File

@ -28,7 +28,7 @@ public class DialogPublicLink extends Dialog {
public DialogPublicLink(String headingTxt, final String itemId) { public DialogPublicLink(String headingTxt, final String itemId) {
setButtonAlign(HorizontalAlignment.CENTER); setButtonAlign(HorizontalAlignment.CENTER);
setIcon(Resources.getIconShareLink()); setIcon(Resources.getIconPublicLink());
vp.setHorizontalAlign(HorizontalAlignment.CENTER); vp.setHorizontalAlign(HorizontalAlignment.CENTER);
vp.setVerticalAlign(VerticalAlignment.MIDDLE); vp.setVerticalAlign(VerticalAlignment.MIDDLE);
vp.getElement().getStyle().setPadding(1, Unit.PX); vp.getElement().getStyle().setPadding(1, Unit.PX);

View File

@ -1724,9 +1724,9 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
workspaceLogger.trace("shareFolder "+ folder.getIdentifier() workspaceLogger.trace("shareFolder "+ folder.getIdentifier()
+ " name: "+ folder.getName() + " name: "+ folder.getName()
+ " parent name: " + folder.getParentFileModel().getName() // + " parent name: " + folder.getParentFileModel().getName()
+ " listContacts size: " + listContacts.size()); + " listContacts size: " + listContacts.size());
// //DEBUG // //DEBUG
//System.out.println("shareFolder "+ folder.getIdentifier() + " name: "+ folder.getName() + " parent name: " + folder.getParentFileModel().getName() + " listContacts size: " + listContacts.size()); //System.out.println("shareFolder "+ folder.getIdentifier() + " name: "+ folder.getName() + " parent name: " + folder.getParentFileModel().getName() + " listContacts size: " + listContacts.size());
@ -2275,11 +2275,11 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
else else
throw new Exception("Sorry, The Uri resolver service is temporarily unavailable. Please try again later"); throw new Exception("Sorry, The Uri resolver service is temporarily unavailable. Please try again later");
}else{
workspaceLogger.warn("ItemId: "+ itemId +" is not a folder item, sent exception Public Link unavailable");
throw new Exception("Sorry, The Public Link for selected file is unavailable");
} }
workspaceLogger.warn("ItemId: "+ itemId +" is not a folder item, return empty public link");
return "";
}catch (Exception e) { }catch (Exception e) {
workspaceLogger.error("Error getPublicLinkForFolderItemId for item: "+itemId); workspaceLogger.error("Error getPublicLinkForFolderItemId for item: "+itemId);
throw new Exception(e.getMessage()); throw new Exception(e.getMessage());