Examples of requestChange()


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

            // Note: The source is NOT the graph mode.
            MoMLChangeRequest request = new MoMLChangeRequest(this, container,
                    moml);
            request.setUndoable(true);
            container.requestChange(request);
        }
    }
}
View Full Code Here

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

                    request.setUndoable(true);

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

                    // If updating requires further updates to the model
                    // i.e. the above change request, then return false.
                    // this is so that rerendering doesn't happen until the
                    // graph model has reached a stable point.
View Full Code Here

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

            // Note: The source is NOT the graph model.
            MoMLChangeRequest request = new MoMLChangeRequest(this, container,
                    moml.toString());
            request.setUndoable(true);
            container.requestChange(request);
        }
    }

    /** The model for an icon that contains ports.
     */
 
View Full Code Here

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

        String moml = getDeleteNodeMoML(node);

        // Note: The source is NOT the graph model.
        ChangeRequest request = new MoMLChangeRequest(this, container, moml);
        container.requestChange(request);
    }
}
View Full Code Here

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

                String moml = "<deleteProperty name=\""
                        + ((DocAttribute) docAttributeList.get(0)).getName()
                        + "\"/>";
                MoMLChangeRequest request = new MoMLChangeRequest(this, target,
                        moml);
                target.requestChange(request);
            }
        }
    }
}
View Full Code Here

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

                            finalIcon.setContainer(object);
                        }
                    };

                    request.setPersistent(false);
                    object.requestChange(request);
                }
            } catch (KernelException ex) {
                throw new InternalErrorException("could not create icon "
                        + "in " + object + " even "
                        + "though one did not exist");
View Full Code Here

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

                                //_editDocAttribute(getFrame(), docAttribute, target);
                                docApplicationSpecializer.editDocumentation(
                                        getFrame(), docAttribute, target);
                            }
                        };
                        target.requestChange(request);
                    }
                } catch (Exception ee) {
                    System.out
                            .println("Failed to call doc application specializer "
                                    + "class \""
View Full Code Here

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

                            DocAttribute attribute = (DocAttribute) docAttributes
                                    .get(docAttributes.size() - 1);
                            _editDocAttribute(getFrame(), attribute, target);
                        }
                    };
                    target.requestChange(request);
                } else {

                    // In case there is more than one such attribute,
                    // get the last one.
View Full Code Here

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

                            attribute.refreshParametersAndPorts();
                            _editDocAttribute(getFrame(), attribute, target);
                        }
                    };
                    target.requestChange(request);
                }
            }
        }
    }
View Full Code Here

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

            // Finally create and request the change
            NamedObj container = graphModel.getPtolemyModel();
            MoMLChangeRequest change = new MoMLChangeRequest(this, container,
                    moml.toString());
            change.setUndoable(true);
            container.requestChange(change);
        } catch (Exception ex) {
            MessageHandler
                    .error("Delete failed, changeRequest was:" + moml, ex);
        }
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.