}
return getImageDescriptionFromKind(element.getKind());
}
public static ImageDescriptor getImageDescriptionFromKind(final ErlElementKind kind) {
ErlideImage result = ErlideImage.UNKNOWN;
switch (kind) {
case ATTRIBUTE:
result = ErlideImage.ATTRIBUTE;
break;
case CLAUSE:
result = ErlideImage.FUNCTION_CLAUSE;
break;
case EXPORT:
result = ErlideImage.EXPORT;
break;
case EXPORTFUNCTION:
result = ErlideImage.FUNCTION_EXPORTED;
break;
case FOLDER:
result = ErlideImage.SRC_FOLDER;
break;
case FUNCTION:
result = ErlideImage.FUNCTION_DEFAULT;
break;
case EXTERNAL_ROOT:
result = ErlideImage.EXTERNAL_ROOT;
break;
case EXTERNAL_APP:
result = ErlideImage.EXTERNAL_APP;
break;
case EXTERNAL_FOLDER:
result = ErlideImage.EXTERNAL_FOLDER;
break;
case IMPORT:
result = ErlideImage.IMPORT;
break;
case MACRO_DEF:
result = ErlideImage.MACRO_DEF;
break;
case MODULE:
result = ErlideImage.MODULE;
break;
case RECORD_DEF:
result = ErlideImage.RECORD_DEF;
break;
case TYPESPEC:
result = ErlideImage.TYPESPEC_DEF;
break;
case RECORD_FIELD:
result = ErlideImage.RECORD_FIELD;
break;
case COMMENT:
case PROBLEM:
case HEADERCOMMENT:
case MODEL:
case LIBRARY:
case PROJECT:
result = ErlideImage.UNKNOWN;
break;
}
return result.getDescriptor();
}