List of usage examples for org.eclipse.jdt.core.compiler CategorizedProblem CAT_POTENTIAL_PROGRAMMING_PROBLEM
int CAT_POTENTIAL_PROGRAMMING_PROBLEM
To view the source code for org.eclipse.jdt.core.compiler CategorizedProblem CAT_POTENTIAL_PROGRAMMING_PROBLEM.
Click Source Link
From source file:astview.ProblemNode.java
License:Open Source License
private String getCategoryCode() { CategorizedProblem categorized = (CategorizedProblem) fProblem; int categoryID = categorized.getCategoryID(); StringBuffer buf = new StringBuffer(); switch (categoryID) { case CategorizedProblem.CAT_UNSPECIFIED: buf.append("Unspecified"); break;/*from w w w .ja v a 2 s.c o m*/ case CategorizedProblem.CAT_BUILDPATH: buf.append("Buildpath"); break; case CategorizedProblem.CAT_SYNTAX: buf.append("Syntax"); break; case CategorizedProblem.CAT_IMPORT: buf.append("Import"); break; case CategorizedProblem.CAT_TYPE: buf.append("Type"); break; case CategorizedProblem.CAT_MEMBER: buf.append("Member"); break; case CategorizedProblem.CAT_INTERNAL: buf.append("Internal"); break; case CategorizedProblem.CAT_JAVADOC: buf.append("Javadoc"); break; case CategorizedProblem.CAT_CODE_STYLE: buf.append("Code Style"); break; case CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM: buf.append("Potential Programming Problem"); break; case CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT: buf.append("Name Shadowing Conflict"); break; case CategorizedProblem.CAT_DEPRECATION: buf.append("Deprecation"); break; case CategorizedProblem.CAT_UNNECESSARY_CODE: buf.append("Unnecessary Code"); break; case CategorizedProblem.CAT_UNCHECKED_RAW: buf.append("Unchecked Raw"); break; case CategorizedProblem.CAT_NLS: buf.append("NLS"); break; case CategorizedProblem.CAT_RESTRICTION: buf.append("Restriction"); break; default: buf.append("<UNKNOWN CATEGORY>"); break; } buf.append(" = ").append(categoryID); return buf.toString(); }
From source file:fromastview.ProblemNode.java
License:Open Source License
private String getCategoryCode() { CategorizedProblem categorized = (CategorizedProblem) fProblem; int categoryID = categorized.getCategoryID(); StringBuffer buf = new StringBuffer(); switch (categoryID) { case CategorizedProblem.CAT_UNSPECIFIED: buf.append("Unspecified"); break;/*w w w . j a va 2s. c o m*/ case CategorizedProblem.CAT_BUILDPATH: buf.append("Buildpath"); break; case CategorizedProblem.CAT_SYNTAX: buf.append("Syntax"); break; case CategorizedProblem.CAT_IMPORT: buf.append("Import"); break; case CategorizedProblem.CAT_TYPE: buf.append("Type"); break; case CategorizedProblem.CAT_MEMBER: buf.append("Member"); break; case CategorizedProblem.CAT_INTERNAL: buf.append("Internal"); break; case CategorizedProblem.CAT_JAVADOC: buf.append("Javadoc"); break; case CategorizedProblem.CAT_CODE_STYLE: buf.append("Code Style"); break; case CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM: buf.append("Potential Programming Problem"); break; case CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT: buf.append("Name Shadowing Conflict"); break; case CategorizedProblem.CAT_DEPRECATION: buf.append("Deprecation"); break; case CategorizedProblem.CAT_UNNECESSARY_CODE: buf.append("Unnecessary Code"); break; case CategorizedProblem.CAT_UNCHECKED_RAW: buf.append("Unchecked Raw"); break; case CategorizedProblem.CAT_NLS: buf.append("NLS"); break; case CategorizedProblem.CAT_RESTRICTION: buf.append("Restriction"); break; default: buf.append("<UNKNOWN CATEGORY>"); break; } buf.append(" = ").append(categoryID); return buf.toString(); }
From source file:org.springframework.ide.eclipse.quickfix.jdt.MissingPathVariableWarning.java
License:Open Source License
@Override public int getCategoryID() { return CategorizedProblem.CAT_POTENTIAL_PROGRAMMING_PROBLEM; }