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

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

Introduction

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

Prototype

int ConstructorRelated

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

Click Source Link

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$
    }//from  www.  j a  va 2s  . c  om
    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  a va 2 s. c  om
    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();
}