예제 #1
0
파일: VimUtil.cs 프로젝트: sh54/VsVim
 public static IMotionCapture CreateMotionCapture(
     VimBufferData vimBufferData,
     IIncrementalSearch incrementalSearch = null)
 {
     incrementalSearch = incrementalSearch ?? new IncrementalSearch(
         vimBufferData,
         EditorUtil.FactoryService.CommonOperationsFactory.GetCommonOperations(vimBufferData));
     return(new MotionCapture(vimBufferData, incrementalSearch));
 }
예제 #2
0
파일: VimUtil.cs 프로젝트: sh54/VsVim
 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));
 }