}
@Override
protected Image getVariableImage(IScriptVariable variable) {
IScriptVariable v = variable;
IScriptValue scriptValue;
try {
scriptValue = (IScriptValue) v.getValue();
} catch (DebugException e) {
return ScriptDebugImages.get(ScriptDebugImages.IMG_OBJS_LOCAL_VARIABLE);
}
String typeString = (scriptValue).getType().getName();
if (typeString.equals("function"))
return DLTKPluginImages.get(DLTKPluginImages.IMG_METHOD_PRIVATE);
if (typeString.equals("javaclass"))
return DLTKPluginImages.get(DLTKPluginImages.IMG_OBJS_CLASS);
if (typeString.equals("javaobject"))
return DLTKPluginImages.get(DLTKPluginImages.IMG_METHOD_PROTECTED);
if (typeString.equals("javaarray"))
return DLTKPluginImages.get(DLTKPluginImages.IMG_METHOD_DEFAULT);
String fullName = scriptValue.getEvalName();
if (fullName != null) {
if (fullName.indexOf('.') >= 0 || (fullName.equals("this"))) {
return DLTKPluginImages.get(DLTKPluginImages.IMG_METHOD_PUBLIC);
}
}