mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 01:35:39 +02:00
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>
This commit is contained in:
parent
b6a384b943
commit
247c492036
5 changed files with 4 additions and 39 deletions
|
@ -1427,7 +1427,7 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
set.toArray(result);
|
set.toArray(result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
return ErrorParserManager.getErrorParserAvailableIds();
|
return ErrorParserManager.getErrorParserAvailableIdsInContext(ErrorParserManager.BUILD_CONTEXT);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Set<String> contributeErrorParsers(Set<String> set, boolean includeChildren) {
|
public Set<String> contributeErrorParsers(Set<String> set, boolean includeChildren) {
|
||||||
|
|
|
@ -483,7 +483,7 @@ public class Target extends BuildObject implements ITarget {
|
||||||
} else {
|
} else {
|
||||||
// If no error parsers are specified by the target, the default is
|
// If no error parsers are specified by the target, the default is
|
||||||
// all error parsers
|
// all error parsers
|
||||||
errorParsers = ErrorParserManager.getErrorParserAvailableIds();
|
errorParsers = ErrorParserManager.getErrorParserAvailableIdsInContext(ErrorParserManager.BUILD_CONTEXT);
|
||||||
}
|
}
|
||||||
return errorParsers;
|
return errorParsers;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1000,7 +1000,7 @@ public class CCorePlugin extends Plugin {
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public String[] getAllErrorParsersIDs() {
|
public String[] getAllErrorParsersIDs() {
|
||||||
ErrorParserExtensionManager.loadErrorParserExtensions();
|
ErrorParserExtensionManager.loadErrorParserExtensions();
|
||||||
return ErrorParserExtensionManager.getErrorParserAvailableIds();
|
return ErrorParserExtensionManager.getErrorParserAvailableIdsInContext(ErrorParserManager.BUILD_CONTEXT);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -13,7 +13,7 @@ package org.eclipse.cdt.core;
|
||||||
/**
|
/**
|
||||||
* @since 5.4
|
* @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.
|
* 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.
|
* Can be used by the parser to flush its internal buffers.
|
||||||
|
|
|
@ -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();
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue