Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorDavid Inglis2004-09-28 14:59:36 -0400
committerDavid Inglis2004-09-28 14:59:36 -0400
commit42ebad496ab5e3416c8984e3729c8145623f825e (patch)
tree1d6c7e561cb5a6a796e75e5fedaa64072f478d90 /build
parent4b8468a823c7ba12ed8d2c25a6d4ebb8698c948e (diff)
downloadorg.eclipse.cdt-42ebad496ab5e3416c8984e3729c8145623f825e.tar.gz
org.eclipse.cdt-42ebad496ab5e3416c8984e3729c8145623f825e.tar.xz
org.eclipse.cdt-42ebad496ab5e3416c8984e3729c8145623f825e.zip
use new AbstractErrorParserPage
Diffstat (limited to 'build')
-rw-r--r--build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/ErrorParserBlock.java25
1 files changed, 22 insertions, 3 deletions
diff --git a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/ErrorParserBlock.java b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/ErrorParserBlock.java
index fc45a7477cb..8dad1b18ac4 100644
--- a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/ErrorParserBlock.java
+++ b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/ErrorParserBlock.java
@@ -24,9 +24,11 @@ public class ErrorParserBlock extends AbstractErrorParserBlock {
// make builder enabled
IMakeBuilderInfo fBuildInfo;
boolean useBuildInfo = false;
-
- public ErrorParserBlock(Preferences prefs) {
- super(prefs);
+ Preferences fPrefs;
+
+ 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) {

Back to the top