Package org.antlr.works.menu

Examples of org.antlr.works.menu.ContextualMenuFactory


    public Component getTabComponent() {
        return getContainer();
    }

    public JPopupMenu treeGetContextualMenu() {
        ContextualMenuFactory factory = delegate.createContextualMenuFactory();
        factory.addItem(GrammarWindowMenu.MI_EXPORT_AS_EPS);
        factory.addItem(GrammarWindowMenu.MI_EXPORT_AS_IMAGE);
        return factory.menu;
    }
View Full Code Here


        public CustomGView(GPanel panel, GContext context) {
            super(panel, context);
        }

        public JPopupMenu getContextualMenu() {
            ContextualMenuFactory factory = editor.createContextualMenuFactory();
            factory.addItem(GrammarWindowMenu.MI_EXPORT_AS_EPS);
            factory.addItem(GrammarWindowMenu.MI_EXPORT_AS_IMAGE);
            return factory.menu;
        }
View Full Code Here

    }

    protected class CustomGView extends GView {

        public JPopupMenu getContextualMenu(GElement element) {
            ContextualMenuFactory factory = window.createContextualMenuFactory();
            factory.addItem(GrammarWindowMenu.MI_EXPORT_AS_EPS);
            factory.addItem(GrammarWindowMenu.MI_EXPORT_AS_IMAGE);
            factory.addItem(GrammarWindowMenu.MI_EXPORT_AS_DOT);
            return factory.menu;
        }
View Full Code Here

    public void awTreeDidSelectTreeNode(TreeNode node, boolean shiftKey) {
        // not implemented
    }

    public JPopupMenu awTreeGetContextualMenu() {
        ContextualMenuFactory factory = window.createContextualMenuFactory();
        factory.addItem(GrammarWindowMenu.MI_EXPORT_AS_EPS);
        factory.addItem(GrammarWindowMenu.MI_EXPORT_AS_IMAGE);
        return factory.menu;
    }
View Full Code Here

TOP

Related Classes of org.antlr.works.menu.ContextualMenuFactory

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.