Examples of IValue


Examples of org.apache.directory.studio.ldapbrowser.core.model.IValue

     *
     * @return the value
     */
    private static IValue getValue( Object element )
    {
        IValue value = null;
        if ( element instanceof IAdaptable )
        {
            value = ( IValue ) ( ( IAdaptable ) element ).getAdapter( IValue.class );
        }
        return value;
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.IValue

                && attributeHierarchy.getAttributeDescription().equalsIgnoreCase(
                    attributeHierarchy.getAttribute().getValues()[0].getAttribute().getDescription() )
                && !attributeHierarchy.getAttribute().getValues()[0].isRdnPart() )
            {
                // validate non-modifiable attributes
                IValue value = attributeHierarchy.getAttribute().getValues()[0];
                if ( !value.isEmpty() && !SchemaUtils.isModifiable( value.getAttribute().getAttributeTypeDescription() ) )
                {
                    message
                        .append( NLS
                            .bind(
                                Messages.getString( "OpenBestEditorAction.EditValueNotModifiable" ), value.getAttribute().getDescription() ) ); //$NON-NLS-1$
                    message.append( BrowserCoreConstants.LINE_SEPARATOR );
                    message.append( BrowserCoreConstants.LINE_SEPARATOR );
                }
            }
View Full Code Here

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

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

    }

    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

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

            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

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

            } 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

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

    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

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

                    }

                    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

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

            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

Examples of org.eclipse.imp.pdb.facts.IValue

      int nrOfArgs = args.length();
      Type[] types = new Type[nrOfArgs];
      IValue[] actuals = new IValue[nrOfArgs];
     
      for(int i = nrOfArgs - 1; i >= 0; --i){
        IValue arg = args.get(i);
        types[i] = RascalTypeFactory.getInstance().nonTerminalType((IConstructor) arg);
        actuals[i] = arg;
      }
     
      return function.call(types, actuals, null);
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.