Examples of attributeList()


Examples of ptolemy.kernel.util.NamedObj.attributeList()

            NamedList scope = new NamedList();
            NamedObj container = object.getContainer();

            while (container != null) {
                Iterator level1 = container.attributeList().iterator();
                Attribute var = null;

                while (level1.hasNext()) {
                    // add the variables in the same NamedObj to scope,
                    // excluding this
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.attributeList()

                            // variables which are Nameable.
                        }
                    }
                }

                level1 = container.attributeList(ScopeExtender.class)
                        .iterator();

                while (level1.hasNext()) {
                    ScopeExtender extender = (ScopeExtender) level1.next();
                    Iterator level2 = extender.attributeList().iterator();
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.attributeList()

            NamedObj topLevel = object.toplevel();
            NamedObj container = object;

            while (container != null) {
                List attrList = container
                        .attributeList(UndoStackAttribute.class);

                if (attrList.size() > 0) {
                    return (UndoStackAttribute) attrList.get(0);
                }
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.attributeList()

        Iterator elements = namedObjSet.iterator();

        while (elements.hasNext()) {
            NamedObj element = (NamedObj) elements.next();
            List locationList = element.attributeList(Locatable.class);

            if (locationList.isEmpty()) {
                // Nothing to do as there was no previous location
                // attribute (applies to "unseen" relations)
                continue;
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.attributeList()

            // Determine which entity was selected for the look inside action.
            super.actionPerformed(event);
            NamedObj target = getTarget();
            Frame frame = getFrame();
            if (target instanceof GTEntity) {
                List<?> attributeList = target
                        .attributeList(EditorFactory.class);
                if (attributeList.size() > 0) {
                    EditorFactory factory = (EditorFactory) attributeList
                            .get(0);
                    factory.createEditor(target, frame);
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.attributeList()

                    factory.createEditor(target, frame);
                } else {
                    new EditParametersDialog(frame, target);
                }
            } else {
                List<?> ingredientsAttributes = target
                        .attributeList(GTIngredientsAttribute.class);
                try {
                    if (ingredientsAttributes.isEmpty()) {
                        Attribute attribute = new GTIngredientsAttribute(
                                target, target.uniqueName("operations"));
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.attributeList()

            // NOTE: this code is similar to that in PtolemyTreeCellRenderer
            Figure result = null;

            try {
                List iconList = object.attributeList(EditorIcon.class);

                // Check to see whether there is an icon that has been created,
                // but not inserted.
                if (iconList.size() == 0) {
                    XMLIcon alreadyCreated = (XMLIcon) _iconsPendingContainer
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.attributeList()

     *   instance of TableauFrame.
     */
    public void createEditor(NamedObj object, Frame parent) {
        NamedObj container = object.getContainer();
        if (container != null) {
            List docAttributes = container.attributeList(DocAttribute.class);
            // DocAttribute is singleton, so there should be at most one.
            if (docAttributes.size() < 1) {
                MessageHandler
                        .message("To create documentation, right click on the background "
                                + "and select 'Documentation->Customize Documentation'");
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.attributeList()

            if ((showOverriddenParameters && !_isPropertySet(container,
                    "_hideAllParameters"))
                    || showAllParameters) {
                StringBuffer parameters = new StringBuffer();
                Iterator settables = container.attributeList(Settable.class)
                        .iterator();

                while (settables.hasNext()) {
                    Settable settable = (Settable) settables.next();
View Full Code Here

Examples of ptolemy.kernel.util.NamedObj.attributeList()

                    }
                }
            }
        }

        parameters = container.attributeList(Settable.class).iterator();
        while (parameters.hasNext()) {
            NamedObj attribute = (NamedObj) parameters.next();
            if (((Settable) attribute).getVisibility() == Settable.FULL) {
                String modifier = " (parameter)";
                if (attribute instanceof PortParameter) {
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.