Package ptolemy.actor.gui

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


                            .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

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

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

                    + 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

                    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.