model.addElement(o);
}
}
public PipelinePluginManifest[] getSelection() {
IndexedSelection selection = list.getSelection();
if (selection.isEmpty()) {
return new PipelinePluginManifest[0];
}
List<PipelinePluginManifest> plugins = new ArrayList<PipelinePluginManifest>();
for (Object o : selection.items()) {
if (o instanceof PipelinePluginListItem) {
plugins.add(((PipelinePluginListItem) o).getPlugin());
}
}
return plugins.toArray(new PipelinePluginManifest[plugins.size()]);