Examples of IScriptValue


Examples of org.eclipse.dltk.debug.core.model.IScriptValue

  }

  @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);
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.