Package ptolemy.actor.gui

Examples of ptolemy.actor.gui.DialogTableau


         @param e The action event, ignored by this method.
         */
        public void actionPerformed(ActionEvent e) {
            // Only makes sense if this is an ActorGraphFrame.
            if (_frame instanceof ActorGraphFrame) {
                DialogTableau dialogTableau = DialogTableau.createDialog(
                        _frame, _configuration, ((ActorGraphFrame) _frame)
                                .getEffigy(), UnitSolverDialog.class,
                        (Entity) ((ActorGraphFrame) _frame).getModel());

                if (dialogTableau != null) {
                    dialogTableau.show();
                }
            }
        }
View Full Code Here


        public void createEditor(NamedObj object, Frame parent) {
            Configuration configuration = ((TableauFrame) parent)
                    .getConfiguration();
            Effigy effigy = ((TableauFrame) parent).getEffigy();
            DialogTableau dialogTableau = DialogTableau.createDialog(parent,
                    configuration, effigy, GTIngredientsEditor.class,
                    (Entity) object);
            if (dialogTableau != null) {
                dialogTableau.show();
            }
        }
View Full Code Here

            } else if (object instanceof Entity) {
                // If this is not a CompositeEntity, need to
                // do something different here as the method above will
                // open the source code as a last resort.
                Frame parent = getFrame();
                DialogTableau dialogTableau = DialogTableau.createDialog(
                        parent, _configuration, ((TableauFrame) parent)
                                .getEffigy(), OpenInstanceDialog.class,
                        (Entity) object);

                if (dialogTableau != null) {
                    dialogTableau.show();
                }
            }
        }
View Full Code Here

                return;
            }
            // Create a dialog for configuring the object.
            // First, identify the top parent frame.
            Frame parent = getFrame();
            DialogTableau dialogTableau = DialogTableau.createDialog(parent,
                    _configuration, ((TableauFrame) parent).getEffigy(),
                    UnitConstraintsDialog.class, (Entity) target);

            if (dialogTableau != null) {
                dialogTableau.show();
            }
        } catch (Throwable throwable) {
            // Giotto code generator on giotto/demo/Hierarchy/Hierarchy.xml
            // was throwing an exception here that was not being displayed
            // in the UI.
View Full Code Here

                return;
            }
            // Create a dialog for configuring the object.
            // First, identify the top parent frame.
            Frame parent = getFrame();
            DialogTableau dialogTableau = DialogTableau.createDialog(parent,
                    _configuration, ((TableauFrame) parent).getEffigy(),
                    PortConfigurerDialog.class, (Entity) target);

            if (dialogTableau != null) {
                dialogTableau.show();
            }
        } catch (Throwable throwable) {
            // Giotto code generator on giotto/demo/Hierarchy/Hierarchy.xml
            // was throwing an exception here that was not being displayed
            // in the UI.
View Full Code Here

                while (parent.getParent() != null) {
                    parent = parent.getParent();
                }

                if (parent instanceof Frame) {
                    DialogTableau dialogTableau = DialogTableau.createDialog(
                            (Frame) parent, _configuration,
                            ((TableauFrame) parent).getEffigy(),
                            PortConfigurerDialog.class, (Entity) target);

                    if (dialogTableau != null) {
                        dialogTableau.show();
                    }
                }
            }
        };

        retv = menu.add(configPortsAction, _configPorts);

        Action configUnitsAction = new AbstractAction(_configUnits) {
            public void actionPerformed(ActionEvent e) {
                Component parent = menu.getInvoker();

                while (parent.getParent() != null) {
                    parent = parent.getParent();
                }

                if (parent instanceof Frame) {
                    DialogTableau dialogTableau = DialogTableau.createDialog(
                            (Frame) parent, _configuration,
                            ((TableauFrame) parent).getEffigy(),
                            UnitConstraintsDialog.class, (Entity) target);

                    if (dialogTableau != null) {
                        dialogTableau.show();
                    }
                }
            }
        };
View Full Code Here

TOP

Related Classes of ptolemy.actor.gui.DialogTableau

Copyright © 2018 www.massapicom. 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.