+ Collection<Resource> selection;
+ ElementSelector selectedItem = view.getSelectedItem();
+ if (selectedItem.getGenerator() instanceof ExplicitGenerator) {
+ selection = ((ExplicitGenerator)selectedItem.getGenerator()).elements;
+ }
+ else {
+ selection = AdaptionUtils.adaptToCollection(currentSelection, Resource.class);
+ }
+