minor check added

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@134109 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-11-11 22:03:39 +00:00
parent ac8fed34bc
commit 7d029abb19
1 changed files with 5 additions and 5 deletions

View File

@ -448,16 +448,16 @@ public class TwinColumnSelectionMainPanel extends Composite{
*/
public List<ResourceElementBean> getResourcesToPublish(){
List<ResourceElementBean> current = dataProviderRight.getList();
List<ResourceElementBean> toReturn = new ArrayList<ResourceElementBean>();
for (ResourceElementBean resourceElementBean : current) {
resourceElementBean.setName(resourceElementBean.getFullPath());
ResourceElementBean beanWithoutChildren = new ResourceElementBean(resourceElementBean);
toReturn.add(beanWithoutChildren);
if(resourceElementBean.isToBeAdded()){ // be sure ...
resourceElementBean.setName(resourceElementBean.getFullPath());
ResourceElementBean beanWithoutChildren = new ResourceElementBean(resourceElementBean);
toReturn.add(beanWithoutChildren);
}
}
GWT.log("List " + toReturn);
return toReturn;
}