Package ptolemy.kernel.util

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


            if (!(icon instanceof XMLIcon)) {
                String moml = "<deleteProperty name=\"" + icon.getName()
                        + "\"/>";
                MoMLChangeRequest request = new MoMLChangeRequest(this, object,
                        moml);
                object.requestChange(request);
            }
        }
    }

    /** Specify the configuration.
View Full Code Here


            }

            String moml = "<class name=\"" + object.getName() + "\"/>";
            MoMLChangeRequest request = new MoMLChangeRequest(this, container,
                    moml);
            container.requestChange(request);
        }
    }
}
View Full Code Here

                // Need to merge the undo for this request in with one that
                // triggered it
                request.setMergeWithPreviousUndo(true);
                request.setUndoable(true);
                container.requestChange(request);
                return false;
            }
        }

        // Now create Links for links that may be new
View Full Code Here

                public void changeExecuted(ChangeRequest change) {
                    _linkSet.remove(edge);
                }
            });
            request.setUndoable(true);
            container.requestChange(request);
        }

        /** Connect the given edge to the given head node. If the specified
         *  head is null, then any pre-existing relation associated with
         *  this edge will be deleted.
View Full Code Here

                    // called request or we get a compile error.
                    MoMLChangeRequest requestChange = new MoMLChangeRequest(
                            FSMGraphModel.this, container, failmoml.toString());

                    // Fail moml execution not undoable
                    container.requestChange(requestChange);
                }

                public void changeExecuted(ChangeRequest change) {
                    if (GraphUtilities.isPartiallyContainedEdge(edge,
                            getRoot(), FSMGraphModel.this)) {
View Full Code Here

                        _linkSet.remove(edge);
                    }
                }
            });
            request.setUndoable(true);
            container.requestChange(request);
        }

        /** Connect the given edge to the given tail node. If the specified
         *  tail is null, then any pre-existing relation associated with
         *  this edge will be deleted.
View Full Code Here

                    // called request or we get a compile error.
                    MoMLChangeRequest requestChange = new MoMLChangeRequest(
                            FSMGraphModel.this, container, failmoml.toString());

                    // fail moml execution not undaoble
                    container.requestChange(requestChange);
                }

                public void changeExecuted(ChangeRequest change) {
                    if (GraphUtilities.isPartiallyContainedEdge(edge,
                            getRoot(), FSMGraphModel.this)) {
View Full Code Here

                        _linkSet.remove(edge);
                    }
                }
            });
            request.setUndoable(true);
            container.requestChange(request);
        }

        ///////////////////////////////////////////////////////////////////
        ////                         private methods                   ////
View Full Code Here

                    moml.toString(), // MoML code
                    null); // base

            request.addChangeListener(this);
            request.setUndoable(true);
            parent.requestChange(request);
        }
    }

    /** React to the fact that the change has been successfully executed
     *  by doing nothing.
View Full Code Here

                    dispatchGraphEvent(new GraphEvent(eventSource,
                            GraphEvent.STRUCTURE_CHANGED, getRoot()));
                }
            });
            request.setUndoable(true);
            container.requestChange(request);
        }
    }

    /** The model for an icon that represent states.
     */
 
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.