Search in sources :

Example 1 with CActionGraphScripting

use of com.google.security.zynamics.binnavi.Gui.GraphWindows.Actions.CActionGraphScripting in project binnavi by google.

the class CPluginsMenu method fillPluginsMenu.

/**
   * Creates the menu items of the Plugins menu.
   */
private void fillPluginsMenu() {
    final List<IGraphMenuPlugin> plugins = new ArrayList<IGraphMenuPlugin>();
    for (@SuppressWarnings("rawtypes") final IPlugin plugin : PluginInterface.instance().getPluginRegistry()) {
        if (plugin instanceof IGraphMenuPlugin) {
            plugins.add((IGraphMenuPlugin) plugin);
        }
    }
    add(CActionProxy.proxy(new CActionGraphScripting(m_model.getGraphPanel())));
    add(CActionProxy.proxy(new CActionOpenLogConsole()));
    addSeparator();
    for (final IGraphMenuPlugin plugin : plugins) {
        extendPluginMenu(plugin);
    }
}
Also used : CActionOpenLogConsole(com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Actions.CActionOpenLogConsole) ArrayList(java.util.ArrayList) CActionGraphScripting(com.google.security.zynamics.binnavi.Gui.GraphWindows.Actions.CActionGraphScripting) IGraphMenuPlugin(com.google.security.zynamics.binnavi.API.plugins.IGraphMenuPlugin) IPlugin(com.google.security.zynamics.binnavi.api2.plugins.IPlugin)

Aggregations

IGraphMenuPlugin (com.google.security.zynamics.binnavi.API.plugins.IGraphMenuPlugin)1 CActionGraphScripting (com.google.security.zynamics.binnavi.Gui.GraphWindows.Actions.CActionGraphScripting)1 CActionOpenLogConsole (com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Actions.CActionOpenLogConsole)1 IPlugin (com.google.security.zynamics.binnavi.api2.plugins.IPlugin)1 ArrayList (java.util.ArrayList)1