Package org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.utils

Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.utils.MenuBuilder


    }

  private void setupMenu() {
    m_menu_bar = new JMenuBar();
    setJMenuBar(m_menu_bar);
    MenuBuilder mu=new MenuBuilder(new MenuEventHandler(),m_menu_bar);
    mu.addMenu("File");
    mu.addMenuItem(sSave);
    mu.addMenuItem(sExit);
    mu.addMenu("Mapping");
    mu.addMenuItem(sReadSourceMapping);
    mu.addMenuItem(sReadTargetMapping);
    mu.addMenuSeparator();
    mu.addMenuItem(sSaveSourceMapping);
    mu.addMenuItem(sSaveTargetMapping);
    mu.addMenuSeparator();
    mu.addMenuItem(sAutoSrcMapping);
    mu.addMenuItem(sAutoTrgMapping);
    mu.addMenuSeparator();
    mu.addMenuItem(sRmSrcMapping);
    mu.addMenuItem(sRmTrgMapping);
    mu.addMenu("View");
    mu.addMenuItem(sShowAllMapping);
    mu.addMenuItem(sHideSourceMapping);
    mu.addMenuItem(sHideTargetMapping);
    mu.addMenuItem(sExpandAllTrees);
    JMenu search=mu.addMenu("Search");
    mu.addMenu("Start", search);
    m_search_nst=mu.addMenuItem("New source tree");
    m_search_ost=mu.addMenuItem("Old source tree");
    m_search_ott=mu.addMenuItem("Old target tree");
    m_search_ntt=mu.addMenuItem("New target tree");
    mu.addMenu("Next", search);
    m_next_nst=mu.addMenuItem("New source tree",false);
    m_next_ost=mu.addMenuItem("Old source tree",false);
    m_next_ott=mu.addMenuItem("Old target tree",false);
    m_next_ntt=mu.addMenuItem("New target tree",false);
  }
View Full Code Here


    }
   
    @Override
    protected void processRightClickOnNode(Node node) {
        JPopupMenu popup = new JPopupMenu();
        MenuBuilder myPopupMenu = new MenuBuilder(actionListener, popup);
        m_rightClickNode = node;
        if (this==m_TreeMapperMigration.m_newTargetTree || this==m_TreeMapperMigration.m_oldTargetTree) {
            myPopupMenu.addMenuItem(cmd_delete_target_translate);
            myPopupMenu.show(this, node.m_p.x + 5 + m_scroll.getHorizontalScrollBar().getValue(), node.m_p.y
                    + Node.m_textHeight);
        }
        else if (this==m_TreeMapperMigration.m_newSourceTree || this==m_TreeMapperMigration.m_oldSourceTree) {
            myPopupMenu.addMenuItem(cmd_delete_source_translate);
            myPopupMenu.show(this, node.m_p.x + 5 + m_scroll.getHorizontalScrollBar().getValue(), node.m_p.y
                    + Node.m_textHeight);
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.utils.MenuBuilder

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.