use of com.google.security.zynamics.zylib.gui.tables.CopySelectionAction 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);
}
use of com.google.security.zynamics.zylib.gui.tables.CopySelectionAction in project binnavi by google.
the class CDebuggerNodeMenuBuilder method createMenu.
@Override
protected void createMenu(final JComponent menu) {
menu.add(new JMenuItem(CActionProxy.proxy(new CDeleteDebuggerDescriptionAction(getParent(), m_database, m_debuggers, getParentUpdater()))));
if (m_table != null) {
menu.add(new JSeparator());
menu.add(new JMenuItem(CActionProxy.proxy(new CopySelectionAction(m_table))));
}
}
use of com.google.security.zynamics.zylib.gui.tables.CopySelectionAction in project binnavi by google.
the class CProjectNodeMenuBuilder method createMenu.
@Override
protected void createMenu(final JComponent menu) {
if ((m_projects.length == 1) && (m_addAddressSpaceAction == null)) {
// We delay the creation of the m_addAddressSpaceAction object because we need to have
// getSelectionUpdater working.
final INaviProject singleProject = m_projects[0];
m_addAddressSpaceAction = CActionProxy.proxy(new CAddAddressSpaceAction(getProjectTree(), singleProject, getSelectionUpdater()));
updateActions(singleProject);
}
final boolean isSingleSelection = m_projects.length == 1;
if (canOpen()) {
menu.add(new JMenuItem(m_loadProjectAction));
menu.add(new JSeparator());
}
if (isSingleSelection) {
// We can not search in more than one project at a time, and only if the project
// is already loaded.
menu.add(new JMenuItem(m_searchViewAction));
menu.add(new JSeparator());
// We do not allow the user to add address spaces to more than one
// project at a time. And the project must be loaded too.
menu.add(new JMenuItem(m_addAddressSpaceAction));
menu.add(new JSeparator());
menu.add(new JMenuItem(m_forwardAction));
menu.add(new JSeparator());
}
menu.add(new JMenuItem(CActionProxy.proxy(new CDeleteProjectAction(getParent(), m_database, m_projects, getParentUpdater()))));
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);
}
use of com.google.security.zynamics.zylib.gui.tables.CopySelectionAction in project binnavi by google.
the class CAddressSpaceNodeMenuBuilder method createMenu.
@Override
protected void createMenu(final JComponent menu) {
menu.add(new JMenuItem(m_loadAddressSpaceAction));
menu.add(new JSeparator());
menu.add(new JMenuItem(CActionProxy.proxy(new CDeleteAddressSpaceAction(getParent(), m_project, m_addressSpaces, getParentUpdater()))));
if (m_addressSpaces.length == 1) {
menu.add(new JSeparator());
menu.add(new JMenuItem(CActionProxy.proxy(new CCreateCombinedCallgraphAction(getParent(), m_container, m_project, m_addressSpaces[0]))));
menu.add(new JSeparator());
menu.add(new JMenuItem(CActionProxy.proxy(new CResolveAllFunctionsSingleAddressSpaceAction(menu, m_database, m_addressSpaces[0]))));
}
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);
}
Aggregations