Search in sources :

Example 1 with CDeleteDatabaseAction

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

the class CDatabaseNodeMenuBuilder method createMenu.

@Override
protected void createMenu(final JComponent menu) {
    menu.add(new JMenuItem(openAction));
    menu.add(new JMenuItem(closeAction));
    menu.add(new JSeparator());
    menu.add(new JMenuItem(CActionProxy.proxy(new CImportModuleAction(getParent(), database))));
    menu.add(new JSeparator());
    menu.add(new JMenuItem(CActionProxy.proxy(new CDeleteDatabaseAction(getParent(), database, new CParentSelectionUpdater(getProjectTree(), parentNode)))));
    addPluginMenus(menu);
}
Also used : CParentSelectionUpdater(com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Updaters.CParentSelectionUpdater) CDeleteDatabaseAction(com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Actions.CDeleteDatabaseAction) CImportModuleAction(com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Actions.CImportModuleAction) JMenuItem(javax.swing.JMenuItem) JSeparator(javax.swing.JSeparator)

Aggregations

CDeleteDatabaseAction (com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Actions.CDeleteDatabaseAction)1 CImportModuleAction (com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Actions.CImportModuleAction)1 CParentSelectionUpdater (com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Updaters.CParentSelectionUpdater)1 JMenuItem (javax.swing.JMenuItem)1 JSeparator (javax.swing.JSeparator)1