mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-13 19:25:38 +02:00
use new AbstractErrorParserPage
This commit is contained in:
parent
4b8468a823
commit
42ebad496a
1 changed files with 22 additions and 3 deletions
|
@ -24,9 +24,11 @@ public class ErrorParserBlock extends AbstractErrorParserBlock {
|
|||
// make builder enabled
|
||||
IMakeBuilderInfo fBuildInfo;
|
||||
boolean useBuildInfo = false;
|
||||
Preferences fPrefs;
|
||||
|
||||
public ErrorParserBlock(Preferences prefs) {
|
||||
super(prefs);
|
||||
public ErrorParserBlock(Preferences preferences) {
|
||||
super();
|
||||
fPrefs = preferences;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -82,6 +84,23 @@ public class ErrorParserBlock extends AbstractErrorParserBlock {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.ui.dialogs.AbstractErrorParserBlock#saveErrorParsers(java.lang.String[])
|
||||
*/
|
||||
protected void saveErrorParsers(String[] parserIDs) throws CoreException {
|
||||
fBuildInfo = MakeCorePlugin.createBuildInfo(fPrefs, MakeBuilder.BUILDER_ID, false);
|
||||
fBuildInfo.setErrorParsers(parserIDs);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.ui.dialogs.AbstractErrorParserBlock#getErrorParserIDs(boolean)
|
||||
*/
|
||||
protected String[] getErrorParserIDs(boolean defaults) {
|
||||
fBuildInfo = MakeCorePlugin.createBuildInfo(fPrefs, MakeBuilder.BUILDER_ID, defaults);
|
||||
return fBuildInfo.getErrorParsers();
|
||||
}
|
||||
|
||||
public void setContainer(ICOptionContainer container) {
|
||||
super.setContainer(container);
|
||||
if (getContainer().getProject() != null) {
|
||||
|
|
Loading…
Add table
Reference in a new issue