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:
parent
ac8fed34bc
commit
7d029abb19
|
@ -448,16 +448,16 @@ public class TwinColumnSelectionMainPanel extends Composite{
|
||||||
*/
|
*/
|
||||||
public List<ResourceElementBean> getResourcesToPublish(){
|
public List<ResourceElementBean> getResourcesToPublish(){
|
||||||
List<ResourceElementBean> current = dataProviderRight.getList();
|
List<ResourceElementBean> current = dataProviderRight.getList();
|
||||||
|
|
||||||
List<ResourceElementBean> toReturn = new ArrayList<ResourceElementBean>();
|
List<ResourceElementBean> toReturn = new ArrayList<ResourceElementBean>();
|
||||||
|
|
||||||
for (ResourceElementBean resourceElementBean : current) {
|
for (ResourceElementBean resourceElementBean : current) {
|
||||||
|
if(resourceElementBean.isToBeAdded()){ // be sure ...
|
||||||
resourceElementBean.setName(resourceElementBean.getFullPath());
|
resourceElementBean.setName(resourceElementBean.getFullPath());
|
||||||
ResourceElementBean beanWithoutChildren = new ResourceElementBean(resourceElementBean);
|
ResourceElementBean beanWithoutChildren = new ResourceElementBean(resourceElementBean);
|
||||||
toReturn.add(beanWithoutChildren);
|
toReturn.add(beanWithoutChildren);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
GWT.log("List " + toReturn);
|
|
||||||
return toReturn;
|
return toReturn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue