use of org.freeplane.features.map.mindmapmode.SummaryGroupEdgeListAdder in project freeplane by freeplane.
the class MClipboardController method cut.
Transferable cut(final List<NodeModel> collection) {
Controller.getCurrentModeController().getMapController().sortNodesByDepth(collection);
final MindMapNodesSelection transferable = copy(new SummaryGroupEdgeListAdder(collection).addSummaryEdgeNodes(), true);
((MMapController) Controller.getCurrentModeController().getMapController()).deleteNodes(collection);
setClipboardContents(transferable);
return transferable;
}
use of org.freeplane.features.map.mindmapmode.SummaryGroupEdgeListAdder in project freeplane by freeplane.
the class MClipboardController method copy.
@Override
public Transferable copy(IMapSelection selection) {
final List<NodeModel> collection = selection.getSortedSelection(true);
final MindMapNodesSelection transferable = copy(new SummaryGroupEdgeListAdder(collection).addSummaryEdgeNodes(), false);
transferable.setNodeObjects(collection, false);
return transferable;
}
Aggregations