Changed data catalogue icon

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@129822 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2016-07-04 08:42:03 +00:00
parent 6d4de95867
commit 7e168ce95c
4 changed files with 270 additions and 263 deletions

View File

@ -433,5 +433,8 @@ public interface Icons extends ClientBundle {
*/ */
@Source("icons/info.png") @Source("icons/info.png")
ImageResource information(); ImageResource information();
@Source("icons/datacataloguepublish.png")
ImageResource datacataloguepublish();
} }

View File

@ -78,6 +78,19 @@ public class Resources {
return AbstractImagePrototype.create(ICONS.tex()); return AbstractImagePrototype.create(ICONS.tex());
} }
/**
* Gets the data catalogue publish.
*
* @return the data catalogue publish
*/
public static AbstractImagePrototype getIconDataCataloguePublish(){
return AbstractImagePrototype.create(ICONS.datacataloguepublish());
}
/** /**
* Gets the icon postscript. * Gets the icon postscript.
* *

Binary file not shown.

After

Width:  |  Height:  |  Size: 644 B

View File

@ -104,7 +104,6 @@ public class ContextMenuTree {
contextMenu.add(previewImage); contextMenu.add(previewImage);
//Open Url //Open Url
MenuItem openUrl = new MenuItem(); MenuItem openUrl = new MenuItem();
openUrl.setId(WorkspaceOperation.LINK.getId()); openUrl.setId(WorkspaceOperation.LINK.getId());
@ -126,7 +125,6 @@ public class ContextMenuTree {
contextMenu.add(openUrl); contextMenu.add(openUrl);
//Open Report Template //Open Report Template
MenuItem openReportTemplate = new MenuItem(); MenuItem openReportTemplate = new MenuItem();
openReportTemplate.setId(WorkspaceOperation.OPEN_REPORT_TEMPLATE.getId()); openReportTemplate.setId(WorkspaceOperation.OPEN_REPORT_TEMPLATE.getId());
@ -146,7 +144,6 @@ public class ContextMenuTree {
contextMenu.add(openReportTemplate); contextMenu.add(openReportTemplate);
//Open Report Template //Open Report Template
MenuItem openReport = new MenuItem(); MenuItem openReport = new MenuItem();
openReport.setId(WorkspaceOperation.OPEN_REPORT.getId()); openReport.setId(WorkspaceOperation.OPEN_REPORT.getId());
@ -167,10 +164,8 @@ public class ContextMenuTree {
contextMenu.add(openReport); contextMenu.add(openReport);
contextMenu.add(new SeparatorMenuItem()); contextMenu.add(new SeparatorMenuItem());
//END SPECIFIC OPERATION //END SPECIFIC OPERATION
MenuItem mnGetInfo = new MenuItem(); MenuItem mnGetInfo = new MenuItem();
mnGetInfo.setId(WorkspaceOperation.GET_INFO.getId()); mnGetInfo.setId(WorkspaceOperation.GET_INFO.getId());
mnGetInfo.setText(ConstantsExplorer.MESSAGE_GET_INFO); mnGetInfo.setText(ConstantsExplorer.MESSAGE_GET_INFO);
@ -310,7 +305,7 @@ public class ContextMenuTree {
MenuItem publishOnDataCatalogue = new MenuItem(); MenuItem publishOnDataCatalogue = new MenuItem();
publishOnDataCatalogue.setId(WorkspaceOperation.PUBLISH_ON_DATA_CATALOGUE.getId()); publishOnDataCatalogue.setId(WorkspaceOperation.PUBLISH_ON_DATA_CATALOGUE.getId());
publishOnDataCatalogue.setText(ConstantsExplorer.MESSAGE_DATA_CATALOGUE_PUBLISH); publishOnDataCatalogue.setText(ConstantsExplorer.MESSAGE_DATA_CATALOGUE_PUBLISH);
publishOnDataCatalogue.setIcon(Resources.getIconPublicLink()); // TODO change icon publishOnDataCatalogue.setIcon(Resources.getIconDataCataloguePublish()); // TODO change icon
publishOnDataCatalogue.addSelectionListener(new SelectionListener<MenuEvent>() { publishOnDataCatalogue.addSelectionListener(new SelectionListener<MenuEvent>() {
public void componentSelected(MenuEvent ce) { public void componentSelected(MenuEvent ce) {
@ -345,7 +340,6 @@ public class ContextMenuTree {
contextMenu.add(editPermissions); contextMenu.add(editPermissions);
//Add Url //Add Url
MenuItem addUrl = new MenuItem(); MenuItem addUrl = new MenuItem();
addUrl.setId(WorkspaceOperation.ADD_URL.getId()); addUrl.setId(WorkspaceOperation.ADD_URL.getId());
@ -496,7 +490,6 @@ public class ContextMenuTree {
contextMenu.add(remove); contextMenu.add(remove);
contextMenu.add(new SeparatorMenuItem()); contextMenu.add(new SeparatorMenuItem());
MenuItem show = new MenuItem(); MenuItem show = new MenuItem();
show.setId(WorkspaceOperation.SHOW.getId()); show.setId(WorkspaceOperation.SHOW.getId());
show.setText(ConstantsExplorer.MESSAGE_SHOW); show.setText(ConstantsExplorer.MESSAGE_SHOW);
@ -515,8 +508,6 @@ public class ContextMenuTree {
contextMenu.add(show); contextMenu.add(show);
MenuItem viewWebDav = new MenuItem(); MenuItem viewWebDav = new MenuItem();
viewWebDav.setId(WorkspaceOperation.WEBDAV_URL.getId()); viewWebDav.setId(WorkspaceOperation.WEBDAV_URL.getId());
viewWebDav.setText(ConstantsExplorer.MESSAGE_WEBDAV_URL); viewWebDav.setText(ConstantsExplorer.MESSAGE_WEBDAV_URL);