Search in sources :

Example 1 with CUnstarModulesAction

use of com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Actions.CUnstarModulesAction in project binnavi by google.

the class CModuleNodeMenuBuilder method createMenu.

@Override
protected void createMenu(final JComponent menu) {
    menu.add(new JMenuItem(m_loadModulesAction));
    menu.add(new JMenuItem(m_initializeModuleAction));
    menu.add(new JSeparator());
    if (CStaredItemFunctions.allStared(m_modules)) {
        menu.add(new JMenuItem(CActionProxy.proxy(new CUnstarModulesAction(getParent(), m_modules))));
    } else if (CStaredItemFunctions.allNotStared(m_modules)) {
        menu.add(new JMenuItem(CActionProxy.proxy(new CStarModulesAction(getParent(), m_modules))));
    } else {
        menu.add(new JMenuItem(CActionProxy.proxy(new CToggleStarsModulesAction(getParent(), m_modules))));
    }
    if (m_modules.length == 1) {
        menu.add(new JSeparator());
        menu.add(new JMenuItem(m_searchAction));
        menu.add(new JMenuItem(m_resolveAction));
        menu.add(new JMenuItem(m_resolveAllAction));
    }
    menu.add(new JSeparator());
    if (m_addressSpace == null) {
        menu.add(new JMenuItem(CActionProxy.proxy(new CDeleteModuleAction(getParent(), m_database, m_modules, getParentUpdater()))));
    } else {
        menu.add(new JMenuItem(CActionProxy.proxy(new CRemoveModuleAction(getParent(), m_addressSpace, m_modules))));
    }
    if (m_table != null) {
        menu.add(new JSeparator());
        menu.add(new JMenuItem(CActionProxy.proxy(new CSearchTableAction(getParent(), m_table))));
        menu.add(new JMenuItem(CActionProxy.proxy(new CopySelectionAction(m_table))));
    }
    addPluginMenus(menu);
}
Also used : CRemoveModuleAction(com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Actions.CRemoveModuleAction) CStarModulesAction(com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Actions.CStarModulesAction) CopySelectionAction(com.google.security.zynamics.zylib.gui.tables.CopySelectionAction) CUnstarModulesAction(com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Actions.CUnstarModulesAction) JMenuItem(javax.swing.JMenuItem) CSearchTableAction(com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Actions.CSearchTableAction) JSeparator(javax.swing.JSeparator) CToggleStarsModulesAction(com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Actions.CToggleStarsModulesAction) CDeleteModuleAction(com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Actions.CDeleteModuleAction)

Aggregations

CDeleteModuleAction (com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Actions.CDeleteModuleAction)1 CRemoveModuleAction (com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Actions.CRemoveModuleAction)1 CSearchTableAction (com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Actions.CSearchTableAction)1 CStarModulesAction (com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Actions.CStarModulesAction)1 CToggleStarsModulesAction (com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Actions.CToggleStarsModulesAction)1 CUnstarModulesAction (com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Actions.CUnstarModulesAction)1 CopySelectionAction (com.google.security.zynamics.zylib.gui.tables.CopySelectionAction)1 JMenuItem (javax.swing.JMenuItem)1 JSeparator (javax.swing.JSeparator)1