public static GLSLPresentation createFieldPresentation(GLSLDeclarator declarator) { String result = ""; GLSLQualifiedType type = declarator.getQualifiedType(); GLSLQualifier[] qualifiers = type.getQualifiers(); if (qualifiers.length > 0) { result += prettyPrint( stringify( qualifiers, new Stringifyer<GLSLQualifier>() { public String stringify(GLSLQualifier glslQualifier) { return glslQualifier == null ? "null" : glslQualifier.getText(); } })); result += " "; } result += declarator.getName(); result += " : "; result += type.getType().getTypename(); GLSLPresentation presentation = new GLSLPresentation(result); presentation.setIcon(FIELD); return presentation; }