Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 877 → Rev 655

/trunk/src/org/tela_botanica/del/client/vues/plateformedetermination/ligneProtocole/LigneProtocolePresenteur.java
4,7 → 4,6
import org.tela_botanica.del.client.cache.CacheClient;
import org.tela_botanica.del.client.composants.votes.moyennevotes.MoyenneVotePresenteur;
import org.tela_botanica.del.client.composants.votes.moyennevotes.MoyenneVoteVue;
import org.tela_botanica.del.client.modeles.Image;
import org.tela_botanica.del.client.modeles.Protocole;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.IsWidget;
24,13 → 23,8
this.vue = vue;
this.protocole = protocole;
setNom(protocole.getNom());
Image imageCourante = CacheClient.getInstance().getImageCourante();
if(imageCourante == null) {
// on suppose qu'il y a toujours au moins une image associée à l'observation en cours
imageCourante = CacheClient.getInstance().getObservationCourante().getImages().get(0);
}
MoyenneVotePresenteur votePresenteur = new MoyenneVotePresenteur(imageCourante, protocole, new MoyenneVoteVue());
 
MoyenneVotePresenteur votePresenteur = new MoyenneVotePresenteur(CacheClient.getInstance().getImageCourante(), protocole, new MoyenneVoteVue());
votePresenteur.go(vue.getZoneVote());
}