From a8bcd6964652dbb5ff8c35f99878ee7d07a3f008 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Thu, 19 Apr 2012 13:44:58 -0700 Subject: [PATCH] Renamed IErrorParser3.streamFinished method to endOfStream and adjusted Javadoc comments. --- .../src/org/eclipse/cdt/core/ErrorParserManager.java | 2 +- .../src/org/eclipse/cdt/core/IConsoleParser.java | 6 +++--- .../src/org/eclipse/cdt/core/IErrorParser3.java | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ErrorParserManager.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ErrorParserManager.java index 9f39ff8e319..8e86c3e7921 100644 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ErrorParserManager.java +++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ErrorParserManager.java @@ -918,7 +918,7 @@ outer: for (IErrorParser[] parsers : fErrorParsers.values()) { for (IErrorParser parser : parsers) { if (parser instanceof IErrorParser3) { - ((IErrorParser3) parser).streamFinished(); + ((IErrorParser3) parser).endOfStream(); } } } diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IConsoleParser.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IConsoleParser.java index ca41651e021..898b27e64a9 100644 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IConsoleParser.java +++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IConsoleParser.java @@ -6,7 +6,7 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * IBM - Initial API and implementation + * IBM - Initial API and implementation *******************************************************************************/ package org.eclipse.cdt.core; @@ -24,8 +24,8 @@ public interface IConsoleParser { public boolean processLine(String line); /** - * Finalization of a console parser when the stream is closed. + * Called to let the parser know that the end of the error stream has been reached. + * Can be used by the parser to flush its internal buffers. */ public void shutdown(); - } diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IErrorParser3.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IErrorParser3.java index 61bfda836ba..c63cd97440a 100644 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IErrorParser3.java +++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/IErrorParser3.java @@ -15,7 +15,8 @@ package org.eclipse.cdt.core; */ public interface IErrorParser3 extends IErrorParser2 { /** - * Notification that the stream of data to parse has ended. + * Called to let the parser know that the end of the error stream has been reached. + * Can be used by the parser to flush its internal buffers. */ - void streamFinished(); + void endOfStream(); }