Package ptolemy.actor.gt

Examples of ptolemy.actor.gt.DefaultModelAttribute


    private class SingleMatchAction extends MatchAction {

        public SingleMatchAction() {
            super("Match Model");

            _attribute = new DefaultModelAttribute((Workspace) null);
            ((FileParameter) _attribute.parameter)
                    .setBaseDirectory(URIAttribute.getModelURI(getModel()));

            GUIUtilities.addIcons(this, new String[][] {
                    { "/ptolemy/vergil/gt/img/match.gif",
View Full Code Here


            File modelFile = null;
            try {
                TransformationRule rule =
                    getFrameController().getTransformationRule();
                Pattern pattern = rule.getPattern();
                DefaultModelAttribute attribute = (DefaultModelAttribute) pattern
                        .getAttribute("DefaultModel");
                if (attribute != null) {
                    FileParameter parameter = (FileParameter) attribute.parameter;
                    if (parameter.getExpression() != null) {
                        modelFile = parameter.asFile();
View Full Code Here

TOP

Related Classes of ptolemy.actor.gt.DefaultModelAttribute

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.