public static IMotionCapture CreateMotionCapture( VimBufferData vimBufferData, IIncrementalSearch incrementalSearch = null) { incrementalSearch = incrementalSearch ?? new IncrementalSearch( vimBufferData, EditorUtil.FactoryService.CommonOperationsFactory.GetCommonOperations(vimBufferData)); return(new MotionCapture(vimBufferData, incrementalSearch)); }
public static CommandUtil CreateCommandUtil( VimBufferData vimBufferData, IMotionUtil motionUtil = null, ICommonOperations operations = null, IFoldManager foldManager = null, InsertUtil insertUtil = null) { motionUtil = motionUtil ?? new MotionUtil(vimBufferData); operations = operations ?? EditorUtil.FactoryService.CommonOperationsFactory.GetCommonOperations(vimBufferData); foldManager = foldManager ?? CreateFoldManager(vimBufferData.TextView, vimBufferData.StatusUtil); insertUtil = insertUtil ?? new InsertUtil(vimBufferData, operations); return(new CommandUtil( vimBufferData, motionUtil, operations, foldManager, insertUtil)); }