本文整理了Java中org.eclipse.jdt.internal.compiler.batch.Main.disableAll()
方法的一些代码示例,展示了Main.disableAll()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Main.disableAll()
方法的具体详情如下:
包路径:org.eclipse.jdt.internal.compiler.batch.Main
类名称:Main
方法名:disableAll
暂无
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
protected void disableAll(int severity) {
String checkedValue = null;
switch(severity) {
case ProblemSeverities.Error :
checkedValue = CompilerOptions.ERROR;
break;
case ProblemSeverities.Warning :
checkedValue = CompilerOptions.WARNING;
break;
case ProblemSeverities.Info :
checkedValue = CompilerOptions.INFO;
break;
}
Set<Entry<String, String>> entrySet = this.options.entrySet();
for (Entry<String, String> entry : entrySet) {
if (entry.getValue().equals(checkedValue)) {
this.options.put(entry.getKey(), CompilerOptions.IGNORE);
}
}
if (severity == ProblemSeverities.Warning) {
disableAll(ProblemSeverities.Info);
}
}
public String extractDestinationPathFromSourceFile(CompilationResult result) {
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
protected void disableAll(int severity) {
String checkedValue = null;
switch(severity) {
case ProblemSeverities.Error :
checkedValue = CompilerOptions.ERROR;
break;
case ProblemSeverities.Warning :
checkedValue = CompilerOptions.WARNING;
break;
case ProblemSeverities.Info :
checkedValue = CompilerOptions.INFO;
break;
}
Set<Entry<String, String>> entrySet = this.options.entrySet();
for (Entry<String, String> entry : entrySet) {
if (entry.getValue().equals(checkedValue)) {
this.options.put(entry.getKey(), CompilerOptions.IGNORE);
}
}
if (severity == ProblemSeverities.Warning) {
disableAll(ProblemSeverities.Info);
}
}
public String extractDestinationPathFromSourceFile(CompilationResult result) {
代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj
switch (currentArg.length()) {
case 7:
disableAll(ProblemSeverities.Warning);
break;
case 8:
int length = currentArg.length();
if (length == 10 && warningOption.equals("-warn:" + NONE)) { //$NON-NLS-1$
disableAll(ProblemSeverities.Warning);
continue;
break;
default:
disableAll(ProblemSeverities.Warning);
warnTokenStart = 6;
isEnabling = true;
break;
default:
disableAll(ProblemSeverities.Error);
errorTokenStart = 5;
isEnabling = true;
代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps
switch (currentArg.length()) {
case 7:
disableAll(ProblemSeverities.Warning);
break;
case 8:
int length = currentArg.length();
if (length == 10 && warningOption.equals("-warn:" + NONE)) { //$NON-NLS-1$
disableAll(ProblemSeverities.Warning);
continue;
break;
default:
disableAll(ProblemSeverities.Warning);
warnTokenStart = 6;
isEnabling = true;
break;
default:
disableAll(ProblemSeverities.Error);
errorTokenStart = 5;
isEnabling = true;
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
switch (currentArg.length()) {
case 7:
disableAll(ProblemSeverities.Warning);
break;
case 8:
int length = currentArg.length();
if (length == 10 && warningOption.equals("-warn:" + NONE)) { //$NON-NLS-1$
disableAll(ProblemSeverities.Warning);
continue;
break;
default:
disableAll(ProblemSeverities.Warning);
warnTokenStart = 6;
isEnabling = true;
break;
default:
disableAll(ProblemSeverities.Error);
errorTokenStart = 5;
isEnabling = true;
代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core
switch (currentArg.length()) {
case 7:
disableAll(ProblemSeverities.Warning);
break;
case 8:
int length = currentArg.length();
if (length == 10 && warningOption.equals("-warn:" + NONE)) { //$NON-NLS-1$
disableAll(ProblemSeverities.Warning);
continue;
break;
default:
disableAll(ProblemSeverities.Warning);
warnTokenStart = 6;
isEnabling = true;
break;
default:
disableAll(ProblemSeverities.Error);
errorTokenStart = 5;
isEnabling = true;
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
switch (currentArg.length()) {
case 7:
disableAll(ProblemSeverities.Warning);
break;
case 8:
int length = currentArg.length();
if (length == 10 && infoOption.equals("-info:" + NONE)) { //$NON-NLS-1$
disableAll(ProblemSeverities.Info);
continue;
break;
default:
disableAll(ProblemSeverities.Info);
infoTokenStart = 6;
isEnabling = true;
int length = currentArg.length();
if (length == 10 && warningOption.equals("-warn:" + NONE)) { //$NON-NLS-1$
disableAll(ProblemSeverities.Warning);
continue;
break;
default:
disableAll(ProblemSeverities.Warning);
warnTokenStart = 6;
isEnabling = true;
break;
代码示例来源:origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core
switch (currentArg.length()) {
case 7:
disableAll(ProblemSeverities.Warning);
break;
case 8:
int length = currentArg.length();
if (length == 10 && warningOption.equals("-warn:" + NONE)) { //$NON-NLS-1$
disableAll(ProblemSeverities.Warning);
continue;
break;
default:
disableAll(ProblemSeverities.Warning);
warnTokenStart = 6;
isEnabling = true;
break;
default:
disableAll(ProblemSeverities.Error);
errorTokenStart = 5;
isEnabling = true;
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
switch (currentArg.length()) {
case 7:
disableAll(ProblemSeverities.Warning);
break;
case 8:
int length = currentArg.length();
if (length == 10 && infoOption.equals("-info:" + NONE)) { //$NON-NLS-1$
disableAll(ProblemSeverities.Info);
continue;
break;
default:
disableAll(ProblemSeverities.Info);
infoTokenStart = 6;
isEnabling = true;
int length = currentArg.length();
if (length == 10 && warningOption.equals("-warn:" + NONE)) { //$NON-NLS-1$
disableAll(ProblemSeverities.Warning);
continue;
break;
default:
disableAll(ProblemSeverities.Warning);
warnTokenStart = 6;
isEnabling = true;
break;
代码示例来源:origin: org.eclipse.scout.sdk.deps/ecj
switch (currentArg.length()) {
case 7:
disableAll(ProblemSeverities.Warning);
break;
case 8:
int length = currentArg.length();
if (length == 10 && warningOption.equals("-warn:" + NONE)) { //$NON-NLS-1$
disableAll(ProblemSeverities.Warning);
continue;
break;
default:
disableAll(ProblemSeverities.Warning);
warnTokenStart = 6;
isEnabling = true;
break;
default:
disableAll(ProblemSeverities.Error);
errorTokenStart = 5;
isEnabling = true;
代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion
switch (currentArg.length()) {
case 7:
disableAll(ProblemSeverities.Warning);
break;
case 8:
int length = currentArg.length();
if (length == 10 && warningOption.equals("-warn:" + NONE)) { //$NON-NLS-1$
disableAll(ProblemSeverities.Warning);
continue;
break;
default:
disableAll(ProblemSeverities.Warning);
warnTokenStart = 6;
isEnabling = true;
break;
default:
disableAll(ProblemSeverities.Error);
errorTokenStart = 5;
isEnabling = true;
代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj
enableAll(severity);
} else {
disableAll(severity);
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
enableAll(severity);
} else {
disableAll(severity);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
enableAll(severity);
} else {
disableAll(severity);
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
enableAll(severity);
} else {
disableAll(severity);
代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core
enableAll(severity);
} else {
disableAll(severity);
代码示例来源:origin: org.eclipse.scout.sdk.deps/ecj
enableAll(severity);
} else {
disableAll(severity);
代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps
enableAll(severity);
} else {
disableAll(severity);
代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion
enableAll(severity);
} else {
disableAll(severity);
代码示例来源:origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core
enableAll(severity);
} else {
disableAll(severity);
内容来源于网络,如有侵权,请联系作者删除!