Example usage for org.eclipse.jdt.core.compiler IProblem IgnoreCategoriesMask

List of usage examples for org.eclipse.jdt.core.compiler IProblem IgnoreCategoriesMask

Introduction

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

Prototype

int IgnoreCategoriesMask

To view the source code for org.eclipse.jdt.core.compiler IProblem IgnoreCategoriesMask.

Click Source Link

Document

Mask to use in order to filter out the category portion of the problem ID.

Usage

From source file:astview.ProblemNode.java

License:Open Source License

private String getErrorLabel() {
    int id = fProblem.getID();
    StringBuffer buf = new StringBuffer();

    if ((id & IProblem.TypeRelated) != 0) {
        buf.append("TypeRelated + "); //$NON-NLS-1$
    }/* w  w w.  j a v a2 s. com*/
    if ((id & IProblem.FieldRelated) != 0) {
        buf.append("FieldRelated + "); //$NON-NLS-1$
    }
    if ((id & IProblem.ConstructorRelated) != 0) {
        buf.append("ConstructorRelated + "); //$NON-NLS-1$
    }
    if ((id & IProblem.MethodRelated) != 0) {
        buf.append("MethodRelated + "); //$NON-NLS-1$
    }
    if ((id & IProblem.ImportRelated) != 0) {
        buf.append("ImportRelated + "); //$NON-NLS-1$
    }
    if ((id & IProblem.Internal) != 0) {
        buf.append("Internal + "); //$NON-NLS-1$
    }
    if ((id & IProblem.Syntax) != 0) {
        buf.append("Syntax + "); //$NON-NLS-1$
    }
    if ((id & IProblem.Javadoc) != 0) {
        buf.append("Javadoc + "); //$NON-NLS-1$
    }
    buf.append(id & IProblem.IgnoreCategoriesMask);

    buf.append(" = 0x").append(Integer.toHexString(id)).append(" = ").append(id);

    return buf.toString();
}

From source file:fromastview.ProblemNode.java

License:Open Source License

private String getErrorLabel() {
    int id = fProblem.getID();
    StringBuffer buf = new StringBuffer();

    if ((id & IProblem.TypeRelated) != 0) {
        buf.append("TypeRelated + ");
    }/*ww  w  . j av  a 2s .c  o m*/
    if ((id & IProblem.FieldRelated) != 0) {
        buf.append("FieldRelated + ");
    }
    if ((id & IProblem.ConstructorRelated) != 0) {
        buf.append("ConstructorRelated + ");
    }
    if ((id & IProblem.MethodRelated) != 0) {
        buf.append("MethodRelated + ");
    }
    if ((id & IProblem.ImportRelated) != 0) {
        buf.append("ImportRelated + ");
    }
    if ((id & IProblem.Internal) != 0) {
        buf.append("Internal + ");
    }
    if ((id & IProblem.Syntax) != 0) {
        buf.append("Syntax + ");
    }
    if ((id & IProblem.Javadoc) != 0) {
        buf.append("Javadoc + ");
    }
    buf.append(id & IProblem.IgnoreCategoriesMask);

    buf.append(" = 0x").append(Integer.toHexString(id)).append(" = ").append(id);

    return buf.toString();
}