Code cleanup.
diff --git a/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/documentation/ProtobufDocumentationProvider.java b/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/documentation/ProtobufDocumentationProvider.java index b4e270e..97fbe20 100644 --- a/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/documentation/ProtobufDocumentationProvider.java +++ b/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/documentation/ProtobufDocumentationProvider.java
@@ -10,8 +10,7 @@ import static org.eclipse.xtext.util.Strings.isEmpty; -import java.util.ArrayList; -import java.util.List; +import java.util.*; import org.eclipse.emf.ecore.EObject; import org.eclipse.xtext.documentation.IEObjectDocumentationProvider; @@ -22,14 +21,14 @@ /** * Provides single-line and multi-line comments as documentation of a protobuf element. * - * @author Alex Ruiz + * @author alruiz@google.com (Alex Ruiz) */ public class ProtobufDocumentationProvider implements IEObjectDocumentationProvider { private final List<IEObjectDocumentationProvider> delegates = new ArrayList<IEObjectDocumentationProvider>(); @Inject - public ProtobufDocumentationProvider(SingleLineDocumentationProvider p1, MultiLineCommentDocumentationProvider p2) { + public ProtobufDocumentationProvider(SingleLineCommentDocumentationProvider p1, MultiLineCommentDocumentationProvider p2) { delegates.add(p1); delegates.add(p2); }
diff --git a/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/documentation/SingleLineDocumentationProvider.java b/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/documentation/SingleLineCommentDocumentationProvider.java similarity index 95% rename from com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/documentation/SingleLineDocumentationProvider.java rename to com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/documentation/SingleLineCommentDocumentationProvider.java index 6cef273..0efb3ed 100644 --- a/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/documentation/SingleLineDocumentationProvider.java +++ b/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/documentation/SingleLineCommentDocumentationProvider.java
@@ -22,9 +22,9 @@ /** * Provides single line comments of a protobuf element as its documentation when hovered. * - * @author Alex Ruiz + * @author alruiz@google.com (Alex Ruiz) */ -public class SingleLineDocumentationProvider implements IEObjectDocumentationProvider { +public class SingleLineCommentDocumentationProvider implements IEObjectDocumentationProvider { private static final String COMMENT_START = "//\\s*"; // "//" plus any whitespace private static final String WINDOWS_NEW_LINE = "\\r\\n";