Search in sources :

Example 1 with DragAndDropSupportWrapper

use of com.google.security.zynamics.binnavi.yfileswrap.Gui.GraphWindows.types.DragAndDropSupportWrapper in project binnavi by google.

the class CGraphBuilder method buildDnDGraph.

/**
   * Builds a graph that supports drag and drop operations from the type editor onto operand tree
   * nodes in order to assign type substitutions.
   *
   * @param view The view to build the graph from.
   * @param typeManager THe type manager for the module that contains the given view.
   * @return Returns a new instance of the created graph.
   * @throws LoadCancelledException
   */
public static ZyGraph buildDnDGraph(final INaviView view, final TypeManager typeManager) throws LoadCancelledException {
    final ZyGraph graph = buildGraph(view);
    final ZyGraphDragAndDropSupport dndSupport = new ZyGraphDragAndDropSupport(graph, new BaseTypeTransferHandler(typeManager, new DragAndDropSupportWrapper(graph)));
    dndSupport.enableDndSupport();
    return graph;
}
Also used : BaseTypeTransferHandler(com.google.security.zynamics.binnavi.Gui.GraphWindows.types.BaseTypeTransferHandler) ZyGraph(com.google.security.zynamics.binnavi.yfileswrap.zygraph.ZyGraph) DragAndDropSupportWrapper(com.google.security.zynamics.binnavi.yfileswrap.Gui.GraphWindows.types.DragAndDropSupportWrapper) ZyGraphDragAndDropSupport(com.google.security.zynamics.binnavi.yfileswrap.zygraph.ZyGraphDragAndDropSupport)

Aggregations

BaseTypeTransferHandler (com.google.security.zynamics.binnavi.Gui.GraphWindows.types.BaseTypeTransferHandler)1 DragAndDropSupportWrapper (com.google.security.zynamics.binnavi.yfileswrap.Gui.GraphWindows.types.DragAndDropSupportWrapper)1 ZyGraph (com.google.security.zynamics.binnavi.yfileswrap.zygraph.ZyGraph)1 ZyGraphDragAndDropSupport (com.google.security.zynamics.binnavi.yfileswrap.zygraph.ZyGraphDragAndDropSupport)1