Package org.eclipse.debug.core.model

Examples of org.eclipse.debug.core.model.IValue


                    && "org.drools.reteoo.ReteooStatefulSession".equals(
                        ((IJavaObject) obj).getReferenceTypeName())) {
                instances = getProcessInstances((IJavaObject) obj);
            } else if (obj instanceof IVariable) {
                if (view.isShowLogicalStructure()) {
                    IValue value = getLogicalValue(((IVariable) obj).getValue(), new ArrayList<IVariable>());
                    instances = value.getVariables();
                }
                if (instances == null) {
                    instances = ((IVariable) obj).getValue().getVariables();
                }
            }
View Full Code Here


            return new Object[0];
        }
    }
   
    private IVariable[] getProcessInstances(IJavaObject stackObj) throws DebugException {
        IValue objects = DebugUtil.getValueByExpression("return getProcessInstances().toArray();", stackObj);
        if (objects instanceof IJavaArray) {
            IJavaArray array = (IJavaArray) objects;
            List<IVariable> result = new ArrayList<IVariable>();
            IJavaValue[] javaVals = array.getValues();
            for ( int i = 0; i < javaVals.length; i++ ) {
View Full Code Here

        // if a working memory has been explicitly selected as variable, use this
        if (context instanceof IVariable) {
            IVariable variable = (IVariable) context;
            try {
                IValue value = ((IVariable) context).getValue();
                if (value != null && value instanceof IJavaObject) {
                    if ("org.drools.reteoo.ReteooStatefulSession".equals(variable.getValue().getReferenceTypeName())) {
                        input = value;
                    } else if ("org.drools.impl.StatefulKnowledgeSessionImpl".equals(variable.getValue().getReferenceTypeName())) {
                        IJavaFieldVariable sessionVar = ((IJavaObject) value).getField("session", false);
View Full Code Here

  public EOAttributeSuffixProvider(String keyPathToEOEntity) {
    super(keyPathToEOEntity);
  }

  public String getSuffix(String key, NSKeyValueCodingLogicalStructureType keyValueCodingLogicalStructureType) {
    IValue resolvedValue = null;
    IJavaClassType classType;
    try {
      classType = keyValueCodingLogicalStructureType.getIJavaClassType(keyValueCodingLogicalStructureType.getParentValue());
      JavaLogicalStructure entityJavaLogicalStructure = new JavaLogicalStructure(classType.getName(), true, "return valueForKeyPath(\"" + this.getSuffix() + "\");", "bla", new String[0][0]);
      resolvedValue = entityJavaLogicalStructure.getLogicalStructure(keyValueCodingLogicalStructureType.getParentValue());
View Full Code Here

  }

  public IValue getLogicalStructure(IValue value) throws CoreException {
    // only useful for wo < 5.3 (since 5.3 NSArray is a collection)
    // never called under 5.3
    IValue attributeKeysResolvedValue = value;
    IJavaClassType classType;
    try {
      classType = this.getIJavaClassType(value);
      JavaLogicalStructure attributeKeysJavaLogicalStructure = new JavaLogicalStructure(classType.getName(), true, "return objects();", "bla", new String[0][0]);
      attributeKeysResolvedValue = attributeKeysJavaLogicalStructure.getLogicalStructure(value);
View Full Code Here

    offset = offset + attributeKeys.length;
    this.appendKeyPathsToVariablesAndMethodsArray(offset, toOneRelationshipKeys, new SuffixProvider(" (to one)"), variablesAndMethods);
    offset = offset + toOneRelationshipKeys.length;
    this.appendKeyPathsToVariablesAndMethodsArray(offset, toManyRelationshipKeys, new SuffixProvider(" (to many)"), variablesAndMethods);
    JavaLogicalStructure javaLogicalStructure = new JavaLogicalStructure(classType.getName(), true, null, "bla", variablesAndMethods);
    IValue resolvedValue = javaLogicalStructure.getLogicalStructure(value);
    return resolvedValue;
  }
View Full Code Here

    String resolvedString = null;
    IJavaClassType classType;
    try {
      classType = this.getIJavaClassType(value);
      JavaLogicalStructure countJavaLogicalStructure = new JavaLogicalStructure(classType.getName(), true, method, "bla", new String[0][0]);
      IValue resolvedValue = countJavaLogicalStructure.getLogicalStructure(value);
      resolvedString = resolvedValue.getValueString();
    } catch (DebugException e) {
      Activator.getDefault().log(e);
    } catch (CoreException e) {
      Activator.getDefault().log(e);
    }
View Full Code Here

    String[] resolvedArrayToKeys = new String[0];
    IJavaClassType classType;
    try {
      classType = this.getIJavaClassType(this.getParentValue());
      JavaLogicalStructure attributeKeysJavaLogicalStructure = new JavaLogicalStructure(classType.getName(), true, method, "bla", new String[0][0]);
      IValue attributeKeysResolvedValue = attributeKeysJavaLogicalStructure.getLogicalStructure(this.getParentValue());
      NSArrayLogicalStructureType arrayLogicalStructureType = new NSArrayLogicalStructureType(attributeKeysResolvedValue);
      resolvedArrayToKeys = arrayLogicalStructureType.resolveObjects();
    } catch (DebugException e) {
      Activator.getDefault().log(e);
    } catch (CoreException e) {
View Full Code Here

    String[][] variablesAndMethods = new String[length][2];
    int offset = 0;
    this.appendMethodsToVariablesAndMethodsArray(offset, coolMethods, null, variablesAndMethods);
    offset = offset + coolMethods.length;
    JavaLogicalStructure javaLogicalStructure = new JavaLogicalStructure(classType.getName(), true, null, "bla", variablesAndMethods);
    IValue resolvedValue = javaLogicalStructure.getLogicalStructure(value);
    return resolvedValue;
  }
View Full Code Here

        // if a working memory has been explicitly selected as variable, use this
        if (context instanceof IVariable) {
            IVariable variable = (IVariable) context;
            try {
                IValue value = ((IVariable) context).getValue();
                if (value != null && value instanceof IJavaObject) {
                    if ("org.drools.core.reteoo.ReteooStatefulSession".equals(variable.getValue().getReferenceTypeName()) ||
                        // for backwards compatibility
                        "org.drools.reteoo.ReteooStatefulSession".equals(variable.getValue().getReferenceTypeName())) {
                        input = value;
View Full Code Here

TOP

Related Classes of org.eclipse.debug.core.model.IValue

Copyright © 2018 www.massapicom. 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.