Examples of MenuActionFactory


Examples of ptolemy.vergil.toolbox.MenuActionFactory

        public DependencyController(GraphController controller) {
            super(controller);

            HighlightDependents highlight = new HighlightDependents(
                    "Highlight dependents", true, false);
            _menuFactory.addMenuItemFactory(new MenuActionFactory(highlight));

            HighlightDependents clear1 = new HighlightDependents(
                    "Clear dependents", true, true);
            _menuFactory.addMenuItemFactory(new MenuActionFactory(clear1));

            HighlightDependents prerequisites = new HighlightDependents(
                    "Highlight prerequisites", false, false);
            _menuFactory
                    .addMenuItemFactory(new MenuActionFactory(prerequisites));

            HighlightDependents clear2 = new HighlightDependents(
                    "Clear prerequisites", false, true);
            _menuFactory.addMenuItemFactory(new MenuActionFactory(clear2));
        }
View Full Code Here

Examples of ptolemy.vergil.toolbox.MenuActionFactory

        if (access == FULL) {
            // Use a submenu.
            Action[] actions = { _createInstanceAction, _createSubclassAction,
                    _convertToInstanceAction };
            _menuFactory.addMenuItemFactory(new MenuActionFactory(actions,
                    "Class Actions"));
        }

        // Set up a listener to lay out the ports when graph changes.
        // NOTE: Because of this listener, it is imperative that there
View Full Code Here

Examples of ptolemy.vergil.toolbox.MenuActionFactory

        }

        protected void initializeInteraction() {
            super.initializeInteraction();

            MenuActionFactory newFactory = new GTMenuActionFactory(
                    _configureMenuFactory, _configureAction);
            _replaceFactory(_menuFactory, _configureMenuFactory, newFactory);
            _configureMenuFactory = newFactory;
        }
View Full Code Here

Examples of ptolemy.vergil.toolbox.MenuActionFactory

        private class EntityController extends ActorInstanceController {
            EntityController() {
                super(GTActorGraphController.this);

                MenuActionFactory newFactory = new GTMenuActionFactory(
                        _configureMenuFactory, _configureAction);
                _replaceFactory(_menuFactory, _configureMenuFactory, newFactory);
                _configureMenuFactory = newFactory;

                FigureAction operationsAction = new ConfigureOperationsAction(
View Full Code Here

Examples of ptolemy.vergil.toolbox.MenuActionFactory

        private class PortController extends ExternalIOPortController {

            public PortController() {
                super(GTActorGraphController.this, AttributeController.FULL);

                MenuActionFactory newFactory = new GTMenuActionFactory(
                        _configureMenuFactory, _configureAction);
                _replaceFactory(_menuFactory, _configureMenuFactory, newFactory);
                _configureMenuFactory = newFactory;
            }
View Full Code Here

Examples of ptolemy.vergil.toolbox.MenuActionFactory

        _getDocumentationAction.setConfiguration(configuration);

        if ((_configuration != null) && (_menuFactory != null)) {
            // NOTE: The following requires that the configuration be
            // non-null, or it will report an error.
            _menuFactory.addMenuItemFactory(new MenuActionFactory(
                    _openBaseClassAction));
        }
    }
View Full Code Here

Examples of ptolemy.vergil.toolbox.MenuActionFactory

        pane.getBackgroundEventLayer().setConsuming(false);

        Action[] actions = { _getDocumentationAction,
                new CustomizeDocumentationAction(),
                new RemoveCustomDocumentationAction() };
        _menuFactory.addMenuItemFactory(new MenuActionFactory(actions,
                "Documentation"));

        if (_configuration != null) {
            // NOTE: The following requires that the configuration be
            // non-null, or it will report an error.
            _menuFactory.addMenuItemFactory(new MenuActionFactory(
                    _openBaseClassAction));
            _menuFactory.addMenuItemFactory(new MenuActionFactory(
                    _unitSolverDialogAction));
        }
    }
View Full Code Here

Examples of ptolemy.vergil.toolbox.MenuActionFactory

         *  specified controller.
         *  @param controller The controller.
         */
        public SchematicContextMenuFactory(GraphController controller) {
            super(controller);
            _configureMenuFactory = new MenuActionFactory(_configureAction);
            addMenuItemFactory(_configureMenuFactory);
        }
View Full Code Here

Examples of ptolemy.vergil.toolbox.MenuActionFactory

            _menuFactory = new PtolemyMenuFactory(controller);
        }

        // In this base class, there is only one configure command, so
        // there won't be a submenu. Subclasses convert this to a submenu.
        _configureMenuFactory = new MenuActionFactory(_configureAction);
        _menuFactory.addMenuItemFactory(_configureMenuFactory);
        _menuCreator.setMenuFactory(_menuFactory);

        // Add a double click interactor.
        ActionInteractor doubleClickInteractor = new ActionInteractor(
View Full Code Here

Examples of ptolemy.vergil.toolbox.MenuActionFactory

        }

        if (_configuration != null) {
            // NOTE: The following requires that the configuration be
            // non-null, or it will report an error.
            _menuFactory.addMenuItemFactory(new MenuActionFactory(
                    _lookInsideAction));
            _menuFactory.addMenuItemFactory(new MenuActionFactory(
                    _openInstanceAction));

            if (access == FULL) {
                // Create an Appearance submenu.
                _createAppearanceSubmenu();
            }
        }

        /* The following proves not so useful since atomic actors
         * do not typically have suitable constructors (that take
         * only a Workspace argument) to be usable at the top level.
         _menuFactory.addMenuItemFactory(
         new MenuActionFactory(new SaveInFileAction()));
         */
        //if (((BasicGraphController) getController()).getFrame() != null) {
        // If we are in an applet, then we have no frame, so no need
        // for a "Listen to Actor" or "Save in Library" menu choices.
        // FIXME: this is not perfect, it would be better if we
        // could just test if we are in an applet or else fix this
        // so we have a frame.
        // NOTE: This requires that the configuration be non null, or it
        // will report an error.
        _menuFactory.addMenuItemFactory(new MenuActionFactory(
                new SaveInLibraryAction()));

        _listenToActorAction = new ListenToActorAction(
                (BasicGraphController) getController());
        _menuFactory.addMenuItemFactory(new MenuActionFactory(
                _listenToActorAction));
        _listenToActorAction.setConfiguration(_configuration);

        //}
        // "Set Breakpoints"
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.