Package ptolemy.kernel.util

Examples of ptolemy.kernel.util.Configurable


                // close the skipping.
                _skipElement--;
            }
        } else if (elementName.equals("configure")) {
            try {
                Configurable castCurrent = (Configurable) _current;
                String previousSource = castCurrent.getConfigureSource();
                String previousText = castCurrent.getConfigureText();
                castCurrent.configure(_base, _configureSource, _currentCharData
                        .toString());

                // Propagate to derived classes and instances.
                try {
                    // This has the side effect of marking the value
                    // overridden.
                    _current.propagateValue();
                } catch (IllegalActionException ex) {
                    // Propagation failed. Restore previous value.
                    castCurrent.configure(_base, previousSource, previousText);
                    throw ex;
                }
            } catch (NoClassDefFoundError e) {
                // If we are running without a display and diva.jar
                // is not in the classpath, then we may get"
View Full Code Here


        String portName = port.getName(_toplevel);
        String labelName = portName.replace('.', '_');
        Attribute label = _toplevel.getAttribute(labelName);

        if (label != null) {
            Configurable config = (Configurable) label
                    .getAttribute("_iconDescription");

            if (config != null) {
                String moml = "<property name=" + "\"_iconDescription\" "
                        + "class=\"ptolemy.kernel.util"
View Full Code Here

TOP

Related Classes of ptolemy.kernel.util.Configurable

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.