minor fixes
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@133976 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
e8fd2aebab
commit
7e492c87d1
|
@ -305,7 +305,6 @@ public class TwinColumnSelectionMainPanel extends Composite{
|
||||||
dataProviderRight.getList().add(resourceElementBean);
|
dataProviderRight.getList().add(resourceElementBean);
|
||||||
|
|
||||||
int indexLeft = dataProviderLeft.getList().indexOf(resourceElementBean);
|
int indexLeft = dataProviderLeft.getList().indexOf(resourceElementBean);
|
||||||
if(indexLeft >= 0)
|
|
||||||
dataProviderLeft.getList().set(indexLeft, resourceElementBean);
|
dataProviderLeft.getList().set(indexLeft, resourceElementBean);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -329,9 +328,9 @@ public class TwinColumnSelectionMainPanel extends Composite{
|
||||||
dataProviderLeft.getList().set(indexLeft, resourceElementBean); // replace
|
dataProviderLeft.getList().set(indexLeft, resourceElementBean); // replace
|
||||||
else
|
else
|
||||||
dataProviderLeft.getList().add(resourceElementBean);
|
dataProviderLeft.getList().add(resourceElementBean);
|
||||||
|
|
||||||
int indexRight = dataProviderRight.getList().indexOf(resourceElementBean);
|
int indexRight = dataProviderRight.getList().indexOf(resourceElementBean);
|
||||||
if(indexRight >= 0)
|
dataProviderLeft.getList().set(indexRight, resourceElementBean);
|
||||||
dataProviderLeft.getList().set(indexLeft, resourceElementBean);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue