Search in sources :

Example 6 with IGraphPanel

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

the class CGraphCloser method generateMessage.

/**
 * Generates the save message for a list of graphs.
 *
 * @param modifiedGraphs The modified graphs that require saving.
 *
 * @return The message string to show to the user.
 */
private static String generateMessage(final List<IGraphPanel> modifiedGraphs) {
    final StringBuilder stringBuilder = new StringBuilder();
    stringBuilder.append("Save changes to the following graphs?");
    stringBuilder.append('\n');
    for (final IGraphPanel panel : modifiedGraphs) {
        stringBuilder.append("- " + CNameShortener.shorten(panel.getModel().getGraph().getRawView()) + "\n");
    }
    return stringBuilder.toString();
}
Also used : IGraphPanel(com.google.security.zynamics.binnavi.Gui.GraphWindows.IGraphPanel)

Example 7 with IGraphPanel

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

the class CWindowManager method bringViewToFront.

/**
 * Brings the given {@link INaviView view} to front
 *
 * @param view The {@link INaviView view} to bring to front.
 */
public void bringViewToFront(final INaviView view) {
    for (final CGraphWindow graphContainer : getOpenWindows()) {
        for (final IGraphPanel window : graphContainer) {
            if (window.getModel().getGraph().getRawView() == view) {
                graphContainer.activate(window);
                graphContainer.toFront();
                return;
            }
        }
    }
}
Also used : CGraphWindow(com.google.security.zynamics.binnavi.Gui.GraphWindows.CGraphWindow) IGraphPanel(com.google.security.zynamics.binnavi.Gui.GraphWindows.IGraphPanel)

Aggregations

IGraphPanel (com.google.security.zynamics.binnavi.Gui.GraphWindows.IGraphPanel)7 CGraphWindow (com.google.security.zynamics.binnavi.Gui.GraphWindows.CGraphWindow)5 FutureCallback (com.google.common.util.concurrent.FutureCallback)1 CGraphModel (com.google.security.zynamics.binnavi.Gui.GraphWindows.CGraphModel)1 IGraphContainerWindow (com.google.security.zynamics.binnavi.Gui.GraphWindows.IGraphContainerWindow)1 BackEndDebuggerProvider (com.google.security.zynamics.binnavi.debug.debugger.BackEndDebuggerProvider)1 IDebugger (com.google.security.zynamics.binnavi.debug.debugger.interfaces.IDebugger)1 INaviCodeNode (com.google.security.zynamics.binnavi.disassembly.INaviCodeNode)1 INaviInstruction (com.google.security.zynamics.binnavi.disassembly.INaviInstruction)1 NaviNode (com.google.security.zynamics.binnavi.yfileswrap.zygraph.NaviNode)1 ZyGraph (com.google.security.zynamics.binnavi.yfileswrap.zygraph.ZyGraph)1 IAddress (com.google.security.zynamics.zylib.disassembly.IAddress)1 ArrayList (java.util.ArrayList)1