{
public void loadFailed(final File file, Exception exception)
{
final String details = ((exception.getLocalizedMessage() == null)
? exception.toString() : exception.getLocalizedMessage());
final VirtualFile vFile = LocalFileSystem.getInstance().findFileByIoFile(file);
ActionListener action = new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
if (vFile != null)
{
FileEditorManager.getInstance(project).openFile(vFile, true);
}
}
};
addMessage(new StatusBarMessage(StatusBarMessage.Type.ERROR,
RevuBundle.message("friendlyError.externalizing.load.error.title.text"),
RevuBundle.message("friendlyError.externalizing.load.error.details.text", file, details),
((vFile != null) && (vFile.exists()))
? RevuBundle.message("friendlyError.externalizing.load.error.action.text") : null,
action), true);
}
public void saveFailed(Review review, Exception exception)