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();
}
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;
}
}
}
}
Aggregations