Package org.eclipse.debug.core.model

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


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


    }

    public boolean hasChildren(Object element) {
        try {
            if (element instanceof IVariable) {
                IValue v = ((IVariable)element).getValue();
                return v != null && v.hasVariables();
            }
            if (element instanceof IValue) {
                return ((IValue)element).hasVariables();
            }
            if (element instanceof IStackFrame) {
View Full Code Here

            return new Object[0];
        }
    }
   
    private IVariable[] getWorkingMemoryElements(IJavaObject stackObj) throws DebugException {
        IValue objects = DebugUtil.getValueByExpression("return getObjects().toArray();", stackObj);
        if (objects instanceof IJavaArray) {
            IJavaArray array = (IJavaArray) objects;
            List result = new ArrayList();
           
            IJavaValue[] vals = array.getValues();
View Full Code Here

            } catch (Throwable t) {
                DroolsIDEPlugin.log(t);
            }
        } else if (variable != null) {
            try {
                IValue value = variable.getValue();
                if (value != null && value instanceof IJavaObject
                        && "org.drools.reteoo.WorkingMemoryImpl".equals(
                            variable.getValue().getReferenceTypeName())) {
                    input = (IJavaObject) value;
                }
View Full Code Here

    protected void populateDetailPaneFromSelection(
            IStructuredSelection selection) {
        try {
            getDetailDocument().set("");
            if (!selection.isEmpty()) {
                IValue val = null;
                Object obj = selection.getFirstElement();
                if (obj instanceof IVariable) {
                    val = ((IVariable) obj).getValue();
                } else if (obj instanceof IExpression) {
                    val = ((IExpression) obj).getValue();
                }
                if (val == null) {
                    return;
                }
                if (fValueSelection != null && fValueSelection.equals(selection)) {
                    return;
                }

                setDebugModel(val.getModelIdentifier());
                fValueSelection = selection;
                fSelectionIterator = selection.iterator();
                fSelectionIterator.next();
                fLastValueDetail = val;
                getModelPresentation().computeDetail(val, this);
View Full Code Here

                    }

                    if (fSelectionIterator != null
                            && fSelectionIterator.hasNext()) {
                        Object obj = fSelectionIterator.next();
                        IValue val = null;
                        try {
                            if (obj instanceof IVariable) {
                                val = ((IVariable) obj).getValue();
                            } else if (obj instanceof IExpression) {
                                val = ((IExpression) obj).getValue();
View Full Code Here

            return new Object[0];
        }
    }
   
    private Object[] getAgendaElements(IJavaObject workingMemoryImpl) throws DebugException {
        IValue objects = DebugUtil.getValueByExpression("return getAgenda().getActivations().toArray();", workingMemoryImpl);
        if (objects instanceof IJavaArray) {
            IJavaArray array = (IJavaArray) objects;
            List result = new ArrayList();

            IJavaValue[] vals = array.getValues();
View Full Code Here

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

        }
    }
   
    private Object[] getAgendaElements(IJavaObject workingMemoryImpl) throws DebugException {
        List result = new ArrayList();
        IValue agendaGroupObjects = DebugUtil.getValueByExpression("return getAgenda().getAgendaGroups();", workingMemoryImpl);
        IValue focus = null;
        try {
            // Drools 4 code
          focus = DebugUtil.getValueByExpression("return getAgenda().getFocus();", workingMemoryImpl);
        } catch (RuntimeException e) {
          // Drools 5 code
View Full Code Here

                            activationId = activationVar.getValue().getValueString();
                            break;
                        }
                    }
                    if (activationId != null) {
                        IValue objects = DebugUtil.getValueByExpression("return getActivationParameters(" + activationId + ");", workingMemoryImpl);
                        if (objects instanceof IJavaArray) {
                            IJavaArray array = (IJavaArray) objects;
                            IJavaValue[] javaVals = array.getValues();
                            for ( int k = 0; k < javaVals.length; k++ ) {
                                IJavaValue mapEntry = javaVals[k];
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.