Search in sources :

Example 1 with CProjectViewsContainerNode

use of com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.Views.Project.CProjectViewsContainerNode in project binnavi by google.

the class CProjectNode method createChildren.

/**
   * Creates the child nodes of project nodes. One child node is added for each address space found
   * in the project.
   */
@Override
protected void createChildren() {
    if (m_project.isLoaded()) {
        for (final INaviAddressSpace addressSpace : m_project.getContent().getAddressSpaces()) {
            add(new CAddressSpaceNode(getProjectTree(), this, m_database, m_project, addressSpace, m_container));
        }
        add(new CProjectViewsContainerNode(getProjectTree(), m_project, m_container));
        add(new CTracesNode(getProjectTree(), m_container));
    }
}
Also used : CAddressSpaceNode(com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.AddressSpace.CAddressSpaceNode) CTracesNode(com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.Traces.CTracesNode) CProjectViewsContainerNode(com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.Views.Project.CProjectViewsContainerNode) INaviAddressSpace(com.google.security.zynamics.binnavi.disassembly.INaviAddressSpace)

Example 2 with CProjectViewsContainerNode

use of com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.Views.Project.CProjectViewsContainerNode in project binnavi by google.

the class CViewsToProjectHandler method drop.

@SuppressWarnings("unchecked")
@Override
public void drop(final DefaultMutableTreeNode parentNode, final Object data) {
    final CProjectViewsContainerNode projectNode = (CProjectViewsContainerNode) parentNode;
    final INaviProject project = projectNode.getObject();
    final List<INaviView> views = (List<INaviView>) data;
    for (final INaviView view : views) {
        CProjectFunctions.copyView(m_parent, project, view);
    }
}
Also used : INaviProject(com.google.security.zynamics.binnavi.disassembly.INaviProject) INaviView(com.google.security.zynamics.binnavi.disassembly.views.INaviView) CProjectViewsContainerNode(com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.Views.Project.CProjectViewsContainerNode) List(java.util.List)

Aggregations

CProjectViewsContainerNode (com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.Views.Project.CProjectViewsContainerNode)2 CAddressSpaceNode (com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.AddressSpace.CAddressSpaceNode)1 CTracesNode (com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.Traces.CTracesNode)1 INaviAddressSpace (com.google.security.zynamics.binnavi.disassembly.INaviAddressSpace)1 INaviProject (com.google.security.zynamics.binnavi.disassembly.INaviProject)1 INaviView (com.google.security.zynamics.binnavi.disassembly.views.INaviView)1 List (java.util.List)1