Package ptolemy.moml

Examples of ptolemy.moml.MoMLChangeRequest


            }
            moml = "<property name=\"_flipPortsHorizontal\" class=\"ptolemy.data.expr.Parameter\" value=\""
                    + flipOn + "\"/>";
        }

        MoMLChangeRequest request = new MoMLChangeRequest(this, object, moml);
        request.setUndoable(true);
        object.requestChange(request);
    }
View Full Code Here


                String moml = "<entity name=\""
                        + StringUtilities.escapeForXML(pattern) + "\" class=\""
                        + _case.refinementClassName() + "\"/>";

                // The following is, regrettably, copied from ModalTransitionController.
                MoMLChangeRequest change = new MoMLChangeRequest(this, _case,
                        moml) {
                    protected void _execute() throws Exception {
                        super._execute();

                        // Mirror the ports of the container in the refinement.
View Full Code Here

                    command.append("\"/>");
                }

                command.append("</group>");

                MoMLChangeRequest request = new MoMLChangeRequest(this,
                        _container, command.toString());
                _container.requestChange(request);
            }
        } else {
            throw new InternalErrorException(
View Full Code Here

                    final String name = query.getStringValue("case");
                    String moml = "<deleteEntity name=\""
                            + StringUtilities.escapeForXML(name) + "\"/>";

                    // The following is, regrettably, copied from ModalTransitionController.
                    MoMLChangeRequest change = new MoMLChangeRequest(this,
                            _case, moml) {
                        protected void _execute() throws Exception {
                            super._execute();
                            // Find the tabbed pane that matches the name and remove it.
                            int count = _tabbedPane.getTabCount();
View Full Code Here

        } else if (object instanceof Relation) {
            moml = "<deleteRelation name=\"" + object.getName() + "\"/>";
        } else {
            return null;
        }
        return new MoMLChangeRequest(originator, object.getContainer(), moml);
    }
View Full Code Here

                + "style=\"font-size:"
                + _fontProperties.getStringValue("fontSize") + "; font-family:"
                + _fontProperties.getStringValue("fontFamily") + "; fill:"
                + _fontProperties.getStringValue("fontColor") + "\">" + newText
                + "</text></svg></configure>";
        _iconDescription.requestChange(new MoMLChangeRequest(this,
                _iconDescription, moml));
    }
View Full Code Here

                // If the director does not already have a
                // DebugController, create one.
                String moml = "<property name=\""
                        + _DEBUGCONTROLLER
                        + "\" class=\"ptolemy.vergil.debugger.DebugController\"/>";
                ChangeRequest request = new MoMLChangeRequest(this, // originator
                        director, // context
                        moml);
                request.addChangeListener(this);
                director.requestChange(request);
            }
        } else {
            // If BreakpointConfigurerDialog()._handlClosing()
            // calls this in appropriately, then debugController might be
View Full Code Here

    protected void _setIconDescription(String iconDescription) {
        String moml = "<property name=\"_iconDescription\" class="
                + "\"ptolemy.kernel.util.SingletonConfigurableAttribute\">"
                + "  <configure>" + iconDescription + "</configure>"
                + "</property>";
        MoMLChangeRequest request = new MoMLChangeRequest(this, this, moml);
        request.execute();
    }
View Full Code Here

        request.execute();
    }

    private void _deleteThis() {
        String moml = "<deleteProperty name=\"" + getName() + "\"/>";
        requestChange(new MoMLChangeRequest(this, getContainer(), moml));
    }
View Full Code Here

            newList.remove(_criterion);
            String moml = "<property name=\"" + attribute.getName()
                    + "\" value=\""
                    + StringUtilities.escapeForXML(newList.toString())
                    + "\"/>";
            MoMLChangeRequest request =
                new MoMLChangeRequest(this, getContainer(), moml);
            request.setUndoable(true);
            attribute.requestChange(request);
            _criterion = null;
        } else {
            super.setContainer(container);
        }
View Full Code Here

TOP

Related Classes of ptolemy.moml.MoMLChangeRequest

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.