commit | 4969e0cfa3014d33a2f7c72a4d72099967af5ea8 | [log] [tgz] |
---|---|---|
author | Alex Ruiz <alruiz@google.com> | Sun Feb 05 01:05:12 2012 -0800 |
committer | Alex Ruiz <alruiz@google.com> | Sun Feb 05 01:05:12 2012 -0800 |
tree | 3690994c4ecda96a67ad0d3771041ace38bc2b7f | |
parent | fce96d74b7532a8481e805b8531e8fc22ceb2af3 [diff] |
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); } }