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