List<Card> lstCard = f.getLstCard();
List<File> lstFic = new ArrayList<File>(lstCard.size());
DlgImageViewer div = new DlgImageViewer(parent);
IPreferenceStore pref = Activator.getDefault().getPreferenceStore();
div.setPref(pref.getInt(PrefConst.P_IVR_MIN_ZOOM), pref.getInt(PrefConst.P_IVR_MAX_ZOOM), pref
.getInt(PrefConst.P_IVR_DEFAULT_WIDTH), pref.getInt(PrefConst.P_IVR_DEFAULT_HEIGHT));
for (Card crd : lstCard)
{
AttrImage imgAttr = (AttrImage) crd.getValue(attrIdx);
if (imgAttr != null)
{
File imgFile = new File(imgAttr.getAbsolutePath());
if (imgFile.exists())
{
lstFic.add(imgFile);
}
else
{
log.warning("File [" + imgAttr.getAbsolutePath() + "] not found");
}
}
}
div.open(lstFic);
}
}