Code cleanup.
diff --git a/com.google.eclipse.protobuf.cdt/src/com/google/eclipse/protobuf/cdt/actions/ProtobufElementUriFinder.java b/com.google.eclipse.protobuf.cdt/src/com/google/eclipse/protobuf/cdt/actions/ProtobufElementUriFinder.java
index e496412..8b46ce4 100644
--- a/com.google.eclipse.protobuf.cdt/src/com/google/eclipse/protobuf/cdt/actions/ProtobufElementUriFinder.java
+++ b/com.google.eclipse.protobuf.cdt/src/com/google/eclipse/protobuf/cdt/actions/ProtobufElementUriFinder.java
@@ -34,7 +34,7 @@
   @Inject private ProtoFilePaths paths;
 
   URI findProtobufElementUriFromSelectionOf(IEditorPart editor) {
-    IFile file = editors.fileOpenIn(editor);
+    IFile file = editors.fileDisplayedIn(editor);
     IPath protoFilePath = paths.protoFilePath(file);
     if (protoFilePath != null) {
       CppToProtobufMapping mapping = mapper.createMappingFromSelectionOf(editor);
diff --git a/com.google.eclipse.protobuf.cdt/src/com/google/eclipse/protobuf/cdt/editor/Editors.java b/com.google.eclipse.protobuf.cdt/src/com/google/eclipse/protobuf/cdt/editor/Editors.java
index 384317d..2c088b4 100644
--- a/com.google.eclipse.protobuf.cdt/src/com/google/eclipse/protobuf/cdt/editor/Editors.java
+++ b/com.google.eclipse.protobuf.cdt/src/com/google/eclipse/protobuf/cdt/editor/Editors.java
@@ -39,11 +39,11 @@
   }
 
   /**
-   * Returns the file open in the given editor.
+   * Returns the file displayed in the given editor.
    * @param editor the given editor.
-   * @return the file open in the given editor.
+   * @return the file displayed in the given editor.
    */
-  public IFile fileOpenIn(IEditorPart editor) {
+  public IFile fileDisplayedIn(IEditorPart editor) {
     return (IFile) editor.getEditorInput().getAdapter(IFile.class);
   }
 }