Example usage for org.eclipse.jdt.core.compiler CategorizedProblem CAT_UNSPECIFIED

List of usage examples for org.eclipse.jdt.core.compiler CategorizedProblem CAT_UNSPECIFIED

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.compiler CategorizedProblem CAT_UNSPECIFIED.

Prototype

int CAT_UNSPECIFIED

To view the source code for org.eclipse.jdt.core.compiler CategorizedProblem CAT_UNSPECIFIED.

Click Source Link

Document

List of standard category IDs used by Java problems, more categories will be added in the future.

Usage

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;//w  ww  .  j a v a2  s .co 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;//ww w  .jav  a 2 s .co 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.eiichiro.gig.eclipse.core.compiler.GigJavaProblem.java

License:Open Source License

@Override
public int getCategoryID() {
    return CategorizedProblem.CAT_UNSPECIFIED;
}