Examples of openModel()


Examples of ptolemy.actor.gui.Configuration.openModel()

    public Tableau createTableau(Effigy effigy) throws Exception {
        Configuration configuration = (Configuration) effigy.toplevel();
        ModalModel model = (ModalModel) ((PtolemyEffigy) effigy).getModel();
        FSMActor controller = ((FSMDirector) model.getDirector())
                .getController();
        return configuration.openModel(controller);
    }
}
View Full Code Here

Examples of ptolemy.actor.gui.Configuration.openModel()

                                try {
                                    // NOTE: Executing this in the event thread averts
                                    // a race condition... Previous close(), which was
                                    // deferred to the UI thread, will have completed.
                                    _exception = null;
                                    _tableau = configuration.openModel(_model,
                                            myEffigy);

                                    // Set this tableau to be a master so that when it
                                    // gets closed, all its subwindows get closed.
                                    _tableau.setMaster(true);
View Full Code Here

Examples of ptolemy.actor.gui.Configuration.openModel()

                    // work under WebStart.
                    URL infoURL = Thread.currentThread()
                            .getContextClassLoader().getResource(
                                    "ptolemy/codegen/README.html");

                    configuration.openModel(null, infoURL, infoURL
                            .toExternalForm());
                } catch (Exception ex) {
                    throw new InternalErrorException(codeGenerator, ex,
                            "Failed to open doc/codegen.htm: ");
                }
View Full Code Here

Examples of ptolemy.actor.gui.Configuration.openModel()

                        URL codeURL = new File(codeFileNameWritten).toURI()
                                .toURL();
                        // Use Thread.currentThread() so that this code will
                        // work under WebStart.
                        configuration.openModel(null, codeURL, codeURL
                                .toExternalForm());

                    }
                    // Don't write the file to the window
                    //exec.updateStatusBar(code.toString());
View Full Code Here

Examples of ptolemy.actor.gui.Configuration.openModel()

                    // NOTE: Used to use for the first argument the following,
                    // but it seems to not work for relative file references:
                    // new URL("file", null, _directory.getAbsolutePath()
                    Configuration configuration = getConfiguration();
                    Tableau newAutomatonTableau = configuration.openModel(url,
                            url, url.toExternalForm());

                    // compose the two interface automata and show result
                    InterfaceAutomaton model1 = (InterfaceAutomaton) getFrame()
                            .getModel();
View Full Code Here

Examples of ptolemy.actor.gui.Configuration.openModel()

                            .getFrame();
                    InterfaceAutomaton model2 = (InterfaceAutomaton) graphFrame2
                            .getModel();

                    InterfaceAutomaton composition = model1.compose(model2);
                    configuration.openModel(composition);
                } catch (Exception ex) {
                    getFrame().report("Error reading input", ex);
                }
            }
        }
View Full Code Here

Examples of ptolemy.actor.gui.Configuration.openModel()

                doc = helpAttribute.asURL();
            } else {
                doc = getClass().getClassLoader().getResource(helpFile);
            }

            configuration.openModel(null, doc, doc.toExternalForm());
        } catch (Exception ex) {
            super._help();
        }
    }
View Full Code Here

Examples of ptolemy.actor.gui.Configuration.openModel()

                    + attributeName.getExpression() + ", but it does not.");
        }

        URL url = ((FileParameter) attribute).asURL();
        Configuration configuration = (Configuration) effigy.toplevel();
        return configuration.openModel(null, url, url.toExternalForm());
    }
}
View Full Code Here

Examples of ptolemy.actor.gui.Configuration.openModel()

                    Configuration configuration = getConfiguration();

                    // FIXME: Help should bring this up as well.
                    URL infoURL = Thread.currentThread()
                            .getContextClassLoader().getResource(infoFile);
                    configuration.openModel(null, infoURL, infoURL
                            .toExternalForm());
                } catch (Exception ex) {
                    throw new InternalErrorException(docBuilder, ex,
                            "Failed to open " + infoFile);
                }
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.