diff options
author | Alex Ruiz | 2012-04-27 06:35:55 +0000 |
---|---|---|
committer | Sergey Prigogin | 2012-04-27 17:49:30 +0000 |
commit | 247c492036de5306c747d630774388aa2e073316 (patch) | |
tree | 78b7bdb9e5a452109ba2b20263d4450920b6afd0 /core/org.eclipse.cdt.core | |
parent | b6a384b943d12fbf7fccdb6142fcfed7de8d8a01 (diff) | |
download | org.eclipse.cdt-247c492036de5306c747d630774388aa2e073316.tar.gz org.eclipse.cdt-247c492036de5306c747d630774388aa2e073316.tar.xz org.eclipse.cdt-247c492036de5306c747d630774388aa2e073316.zip |
Removed Pair class. Replaced getErrorParserAvailableIds()
with getErrorParserAvailableIdsInContext(String) where appropriate.
IErrorParser3 extends IErrorParser directly.
Change-Id: Ie0ccd4835a797a4911275cb28410f2b26236976c
Reviewed-on: https://git.eclipse.org/r/5683
Reviewed-by: Andrew Gvozdev <angvoz.dev@gmail.com>
IP-Clean: Andrew Gvozdev <angvoz.dev@gmail.com>
Tested-by: Andrew Gvozdev <angvoz.dev@gmail.com>
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Diffstat (limited to 'core/org.eclipse.cdt.core')
3 files changed, 2 insertions, 37 deletions
diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CCorePlugin.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CCorePlugin.java index 2357f2e4473..0a0e0e3d19f 100644 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CCorePlugin.java +++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CCorePlugin.java @@ -1000,7 +1000,7 @@ public class CCorePlugin extends Plugin { @Deprecated public String[] getAllErrorParsersIDs() { ErrorParserExtensionManager.loadErrorParserExtensions(); - return ErrorParserExtensionManager.getErrorParserAvailableIds(); + return ErrorParserExtensionManager.getErrorParserAvailableIdsInContext(ErrorParserManager.BUILD_CONTEXT); } /** 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 92c2ac2b26b..9fcadeee62a 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 @@ -13,7 +13,7 @@ package org.eclipse.cdt.core; /** * @since 5.4 */ -public interface IErrorParser3 extends IErrorParser2 { +public interface IErrorParser3 extends IErrorParser { /** * 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. diff --git a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/internal/core/Pair.java b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/internal/core/Pair.java deleted file mode 100644 index 3be11ee6541..00000000000 --- a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/internal/core/Pair.java +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2012 Google, Inc and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Alex Ruiz (Google) - initial API and implementation - *******************************************************************************/ -package org.eclipse.cdt.internal.core; - -/** - * A pair of values. - */ -public class Pair<F, S> { - public final F first; - public final S second; - - public Pair(F first, S second) { - this.first = first; - this.second = second; - } - - @Override - public String toString() { - StringBuilder builder = new StringBuilder(); - builder.append("<"); //$NON-NLS-1$ - builder.append(first); - builder.append(">, <"); //$NON-NLS-1$ - builder.append(second); - builder.append(">"); //$NON-NLS-1$ - return builder.toString(); - } -} |