コード例 #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));
 }