Package org.tod.meta.variables

Examples of org.tod.meta.variables.VariablesWatcher


        boolean running = TODSessionFactory.getDefault().isActive();
        if (!running) {
            return new Object[]{};
        }
       
        VariablesWatcher vars = TODSessionFactory.getDefault().getVarialesWatcher();
        ArrayList<Object> kids = new ArrayList<Object>();
        if(parent instanceof String) {
            String s = (String) parent;
            if(s.compareTo(this.TOD_ROOT)==0) {
                MirroredObjectInstance moi = vars.getThis();
                if(moi != null) {
                    TODDataStorage.ThisObject th = new TODDataStorage.ThisObject();
                    th.myThis = moi;
                    kids.add(th);
                }
               
                // Add variables in scope.
                Iterator<Variable> locals = vars.getVariablesInScope();
                while (locals.hasNext()) {
                    Variable var = locals.next();
                    ChildNode n = new ChildNode();
                    n.data = var;
                    n.parent = moi;
View Full Code Here


        boolean running = TODSessionFactory.getDefault().isActive();
        if (!running) {
            return 0;
        }
       
        VariablesWatcher vars = TODSessionFactory.getDefault().getVarialesWatcher();

        if(parent instanceof String) {
            String s = (String) parent;
            if(s.compareTo(this.TOD_ROOT)==0) {
                MirroredObjectInstance moi = vars.getThis();
                if (moi != null) {
                    return moi.getNumberOfFields() + 1;
                }
            }
        } else if (parent instanceof ThisObject) {
View Full Code Here

        return "";
    }

    @Override
    public String getIconBase(Object o) throws UnknownTypeException {
        VariablesWatcher vars = TODSessionFactory.getDefault().getVarialesWatcher();

        if(o instanceof String) {
            String s = (String) o;
            if(s.compareTo(this.TOD_ROOT)==0) {
                MirroredObjectInstance moi = vars.getThis();
                if (moi != null) {
                    return TODDataStorage.FIELD_IMAGE;
                }
            }
        } else if (o instanceof ThisObject) {
View Full Code Here

TOP

Related Classes of org.tod.meta.variables.VariablesWatcher

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.