Package ptolemy.kernel.util

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


                            icon.setContainer(object);
                        }
                    };

                    request.setPersistent(false);
                    object.requestChange(request);
                } else if (iconList.size() >= 1) {
                    // Use only the last icon in the list.
                    EditorIcon icon = (EditorIcon) iconList
                            .get(iconList.size() - 1);
                    result = icon.createFigure();
View Full Code Here


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

    /** The model for vertexes that are contained within the relations of the
     *  ptolemy model.
View Full Code Here

            // 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

                    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

            // 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

        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

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

                            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

                                //_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

                            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

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.