Search in sources :

Example 1 with TagComparator

use of com.google.security.zynamics.binnavi.Tagging.TagComparator in project binnavi by google.

the class CTagContainerNode method createChildren.

@Override
protected void createChildren() {
    if (m_database.isLoaded()) {
        final List<? extends ITreeNode<CTag>> children = m_rootTag.getChildren();
        Collections.sort(children, new TagComparator());
        for (final ITreeNode<CTag> tag : children) {
            add(new CTagNode(getProjectTree(), m_database, (TreeNode<CTag>) tag));
        }
    }
}
Also used : CProjectTreeNode(com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.CProjectTreeNode) TreeNode(com.google.security.zynamics.zylib.types.trees.TreeNode) ITreeNode(com.google.security.zynamics.zylib.types.trees.ITreeNode) CTag(com.google.security.zynamics.binnavi.Tagging.CTag) CTagNode(com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.Tag.CTagNode) TagComparator(com.google.security.zynamics.binnavi.Tagging.TagComparator)

Example 2 with TagComparator

use of com.google.security.zynamics.binnavi.Tagging.TagComparator in project binnavi by google.

the class CTagNode method createChildren.

@Override
protected void createChildren() {
    if (m_database.isLoaded()) {
        final List<ITreeNode<CTag>> children = m_tag.getChildren();
        Collections.sort(children, new TagComparator());
        for (final ITreeNode<CTag> tag : children) {
            add(new CTagNode(getProjectTree(), m_database, (TreeNode<CTag>) tag));
        }
    }
}
Also used : ITreeNode(com.google.security.zynamics.zylib.types.trees.ITreeNode) CProjectTreeNode(com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.CProjectTreeNode) TreeNode(com.google.security.zynamics.zylib.types.trees.TreeNode) ITreeNode(com.google.security.zynamics.zylib.types.trees.ITreeNode) CTag(com.google.security.zynamics.binnavi.Tagging.CTag) TagComparator(com.google.security.zynamics.binnavi.Tagging.TagComparator)

Aggregations

CProjectTreeNode (com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.CProjectTreeNode)2 CTag (com.google.security.zynamics.binnavi.Tagging.CTag)2 TagComparator (com.google.security.zynamics.binnavi.Tagging.TagComparator)2 ITreeNode (com.google.security.zynamics.zylib.types.trees.ITreeNode)2 TreeNode (com.google.security.zynamics.zylib.types.trees.TreeNode)2 CTagNode (com.google.security.zynamics.binnavi.Gui.MainWindow.ProjectTree.Nodes.Tag.CTagNode)1