I have the following method and I now return the last entry but
how I can send list of annotation ?
I want to return all the annotation list from the loop
public EList<Annotation> getAnnotation()
{
EList<Annotation> annotations = null;
for (Sc currSc : sche)
{
for (EntityS entitys : ent)
{
// Get annotation
annotations = entitys.getAnnotations();
}
}
return annotations;
}
If you are trying to put all the
Annotations together, you need to create a brand newEListand then add them all, i.e.