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

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

Introduction

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

Prototype

int CAT_NAME_SHADOWING_CONFLICT

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

Click Source Link

Document

Category for optional problems related to naming conflicts

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;/*from   w ww  . ja  v a  2  s.com*/

    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.  ja v a 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();
}