Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 243886 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/wst/jsdt/internal/compiler/problem/ProblemReporter.java (+5 lines)
Lines 15-20 Link Here
15
import java.io.StringWriter;
15
import java.io.StringWriter;
16
import java.text.MessageFormat;
16
import java.text.MessageFormat;
17
17
18
import org.eclipse.wst.jsdt.core.JavaScriptCore;
18
import org.eclipse.wst.jsdt.core.compiler.CategorizedProblem;
19
import org.eclipse.wst.jsdt.core.compiler.CategorizedProblem;
19
import org.eclipse.wst.jsdt.core.compiler.CharOperation;
20
import org.eclipse.wst.jsdt.core.compiler.CharOperation;
20
import org.eclipse.wst.jsdt.core.compiler.IProblem;
21
import org.eclipse.wst.jsdt.core.compiler.IProblem;
Lines 1115-1120 Link Here
1115
 * to indicate that this problem is configurable through options
1116
 * to indicate that this problem is configurable through options
1116
 */
1117
 */
1117
public int computeSeverity(int problemID){
1118
public int computeSeverity(int problemID){
1119
	
1120
	if (JavaScriptCore.getPlugin().getPluginPreferences().getBoolean("onlySyntaxErrors") && (problemID & IProblem.Syntax) == 0) {
1121
		return ProblemSeverities.Ignore;
1122
	}
1118
1123
1119
	switch (problemID) {
1124
	switch (problemID) {
1120
		case IProblem.Task :
1125
		case IProblem.Task :
(-)src/org/eclipse/wst/jsdt/internal/compiler/Compiler.java (+5 lines)
Lines 14-19 Link Here
14
import java.io.StringWriter;
14
import java.io.StringWriter;
15
15
16
import org.eclipse.wst.jsdt.core.IClassFile;
16
import org.eclipse.wst.jsdt.core.IClassFile;
17
import org.eclipse.wst.jsdt.core.JavaScriptCore;
17
import org.eclipse.wst.jsdt.core.compiler.CategorizedProblem;
18
import org.eclipse.wst.jsdt.core.compiler.CategorizedProblem;
18
import org.eclipse.wst.jsdt.core.compiler.IProblem;
19
import org.eclipse.wst.jsdt.core.compiler.IProblem;
19
import org.eclipse.wst.jsdt.internal.compiler.ast.ASTNode;
20
import org.eclipse.wst.jsdt.internal.compiler.ast.ASTNode;
Lines 396-401 Link Here
396
		Throwable internalException,
397
		Throwable internalException,
397
		CompilationUnitDeclaration unit,
398
		CompilationUnitDeclaration unit,
398
		CompilationResult result) {
399
		CompilationResult result) {
400
		
401
		if (JavaScriptCore.getPlugin().getPluginPreferences().getBoolean("onlySyntaxErrors")) {
402
			return;
403
		}
399
404
400
		if ((result == null) && (unit != null)) {
405
		if ((result == null) && (unit != null)) {
401
			result = unit.compilationResult; // current unit being processed ?
406
			result = unit.compilationResult; // current unit being processed ?

Return to bug 243886