Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 110584 Details for
Bug 243886
Provide a way to disable JS semantic analyzer/validator
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
disable all but syntax errors patch
bug243886.diff (text/plain), 2.42 KB, created by
Michael Spector
on 2008-08-21 11:54:24 EDT
(
hide
)
Description:
disable all but syntax errors patch
Filename:
MIME Type:
Creator:
Michael Spector
Created:
2008-08-21 11:54:24 EDT
Size:
2.42 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.wst.jsdt.core >Index: src/org/eclipse/wst/jsdt/internal/compiler/problem/ProblemReporter.java >=================================================================== >RCS file: /cvsroot/webtools/sourceediting/plugins/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/compiler/problem/ProblemReporter.java,v >retrieving revision 1.26.6.1 >diff -u -r1.26.6.1 ProblemReporter.java >--- src/org/eclipse/wst/jsdt/internal/compiler/problem/ProblemReporter.java 19 Jun 2008 20:05:56 -0000 1.26.6.1 >+++ src/org/eclipse/wst/jsdt/internal/compiler/problem/ProblemReporter.java 21 Aug 2008 15:50:26 -0000 >@@ -15,6 +15,7 @@ > import java.io.StringWriter; > import java.text.MessageFormat; > >+import org.eclipse.wst.jsdt.core.JavaScriptCore; > import org.eclipse.wst.jsdt.core.compiler.CategorizedProblem; > import org.eclipse.wst.jsdt.core.compiler.CharOperation; > import org.eclipse.wst.jsdt.core.compiler.IProblem; >@@ -1115,6 +1116,10 @@ > * to indicate that this problem is configurable through options > */ > public int computeSeverity(int problemID){ >+ >+ if (JavaScriptCore.getPlugin().getPluginPreferences().getBoolean("onlySyntaxErrors") && (problemID & IProblem.Syntax) == 0) { >+ return ProblemSeverities.Ignore; >+ } > > switch (problemID) { > case IProblem.Task : >Index: src/org/eclipse/wst/jsdt/internal/compiler/Compiler.java >=================================================================== >RCS file: /cvsroot/webtools/sourceediting/plugins/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/compiler/Compiler.java,v >retrieving revision 1.16 >diff -u -r1.16 Compiler.java >--- src/org/eclipse/wst/jsdt/internal/compiler/Compiler.java 13 May 2008 22:02:31 -0000 1.16 >+++ src/org/eclipse/wst/jsdt/internal/compiler/Compiler.java 21 Aug 2008 15:50:26 -0000 >@@ -14,6 +14,7 @@ > import java.io.StringWriter; > > import org.eclipse.wst.jsdt.core.IClassFile; >+import org.eclipse.wst.jsdt.core.JavaScriptCore; > import org.eclipse.wst.jsdt.core.compiler.CategorizedProblem; > import org.eclipse.wst.jsdt.core.compiler.IProblem; > import org.eclipse.wst.jsdt.internal.compiler.ast.ASTNode; >@@ -396,6 +397,10 @@ > Throwable internalException, > CompilationUnitDeclaration unit, > CompilationResult result) { >+ >+ if (JavaScriptCore.getPlugin().getPluginPreferences().getBoolean("onlySyntaxErrors")) { >+ return; >+ } > > if ((result == null) && (unit != null)) { > result = unit.compilationResult; // current unit being processed ?
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 243886
:
110584
|
110626
|
110751