// map is maintained using within a document provider (which
// we don't have). Adopting a similar approach is better
// but not feasible within the current time frame.
// @todo later evaluate/resolve this comment's issue.
if (filename.equals(editorReference.getName())) {
IFileEditorInput fileEditorInput = ((IFileEditorInput)
editorReference.getEditor(true).getEditorInput());
// If the full path matches, then this editor is exists
// and is open, so we cannot save over it.
if (fileEditorInput.getFile().getFullPath().
equals(filePath)) {
alreadyOpen = true;
}
}
}