RevuBundle.message("projectSettings.review.shareWithPrivateLink.text", extendedReview.getName()),
RevuBundle.message("projectSettings.confirmRemoveReview.title"),
Messages.getWarningIcon());
if (result == DialogWrapper.OK_EXIT_CODE)
{
Review tmpReview = extendedReview;
while (tmpReview != null)
{
tmpReview.setShared(true);
tmpReview = tmpReview.getExtendedReview();
}
}
}
}
});
bnImport.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
Review currentReview = new Review();
internalUpdateData(currentReview);
if (extendedReview == null)
{
CreateReviewDialog dialog = new CreateReviewDialog(project, false);
dialog.show(editedReviews, currentReview);
if (!dialog.isOK())
{
return;
}
switch (dialog.getImportType())
{
case COPY:
currentReview.getDataReferential().copyFrom(dialog.getImportedReview().getDataReferential());
break;
case LINK:
extendedReview = dialog.getImportedReview();
currentReview.setExtendedReview(extendedReview);
break;
}
updateUI(currentReview, currentReview, true);
}
else
{
extendedReview = null;
currentReview.setExtendedReview(null);
updateUI(currentReview, currentReview, true);
}
}
});