mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
init error parser prefs.
use shared pref key for error parsers
This commit is contained in:
parent
d6a9483ed2
commit
08eb89846c
3 changed files with 5 additions and 3 deletions
|
@ -122,6 +122,7 @@ public class MakeCorePlugin extends Plugin {
|
|||
info.setIncrementalBuildTarget("all"); //$NON-NLS-1$
|
||||
info.setFullBuildEnable(true);
|
||||
info.setFullBuildTarget("clean all"); //$NON-NLS-1$
|
||||
info.setErrorParsers(CCorePlugin.getDefault().getAllErrorParsersIDs());
|
||||
} catch (CoreException e) {
|
||||
}
|
||||
getPluginPreferences().setDefault(CCorePlugin.PREF_BINARY_PARSER, CCorePlugin.PLUGIN_ID + ".ELF"); //$NON-NLS-1$
|
||||
|
|
|
@ -117,6 +117,7 @@ public class MakeProjectNature implements IProjectNature {
|
|||
|
||||
projectInfo.setFullBuildEnable(info.isFullBuildEnabled());
|
||||
projectInfo.setFullBuildTarget(info.getFullBuildTarget());
|
||||
projectInfo.setErrorParsers(info.getErrorParsers());
|
||||
}
|
||||
|
||||
public void removeBuildSpec() throws CoreException {
|
||||
|
|
|
@ -15,6 +15,7 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import java.util.StringTokenizer;
|
||||
|
||||
import org.eclipse.cdt.core.ErrorParserManager;
|
||||
import org.eclipse.cdt.make.core.IMakeBuilderInfo;
|
||||
import org.eclipse.cdt.make.core.MakeCorePlugin;
|
||||
import org.eclipse.cdt.make.core.MakeProjectNature;
|
||||
|
@ -46,7 +47,6 @@ public class BuildInfoFactory {
|
|||
static final String BUILD_INCREMENTAL_ENABLED = PREFIX + ".enabledIncrementalBuild"; //$NON-NLS-1$
|
||||
static final String BUILD_AUTO_ENABLED = PREFIX + ".enableAutoBuild"; //$NON-NLS-1$
|
||||
static final String BUILD_ARGUMENTS = PREFIX + ".buildArguments"; //$NON-NLS-1$
|
||||
static final String ERROR_PARSERS = PREFIX + ".buildErrorParsers"; //$NON-NLS-1$
|
||||
|
||||
private abstract static class Store implements IMakeBuilderInfo {
|
||||
|
||||
|
@ -182,7 +182,7 @@ public class BuildInfoFactory {
|
|||
}
|
||||
|
||||
public String[] getErrorParsers() {
|
||||
String parsers = getString(ERROR_PARSERS);
|
||||
String parsers = getString(ErrorParserManager.PREF_ERROR_PARSER);
|
||||
if (parsers != null && parsers.length() > 0) {
|
||||
StringTokenizer tok = new StringTokenizer(parsers, ";");
|
||||
List list = new ArrayList(tok.countTokens());
|
||||
|
@ -199,7 +199,7 @@ public class BuildInfoFactory {
|
|||
for (int i = 0; i < parsers.length; i++) {
|
||||
buf.append(parsers[i]).append(';');
|
||||
}
|
||||
putValue(ERROR_PARSERS, buf.toString());
|
||||
putValue(ErrorParserManager.PREF_ERROR_PARSER, buf.toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue