Esempio n. 1
0
        public async Task <PasteItemsResult> PasteItemsAsync(IEnumerable <ICopyPasteItem> items, DropEffects effect)
        {
            Assumes.NotNull(_dropTarget);

            ImmutableHashSet <string> previousIncludes = await OrderingHelper.GetAllEvaluatedIncludes(_configuredProject, _accessor);

            PasteItemsResult result = await PasteHandler.PasteItemsAsync(items, effect);

            await OrderingHelper.Move(_configuredProject, _accessor, previousIncludes, _dropTarget !, OrderingMoveAction.MoveToTop);

            return(result);
        }
Esempio n. 2
0
        public async Task <PasteItemsResult> PasteItemsAsync(IEnumerable <ICopyPasteItem> items, DropEffects effect)
        {
            Assumes.NotNull(_dropTarget);

            // ConfigureAwait is true because we need to come back for PasteItemsAsync to work. If not, PasteItemsAsync will throw.
            ImmutableHashSet <string> previousIncludes = await OrderingHelper.GetAllEvaluatedIncludes(_configuredProject, _accessor).ConfigureAwait(true);

            PasteItemsResult result = await PasteHandler.PasteItemsAsync(items, effect).ConfigureAwait(false);

            await OrderingHelper.Move(_configuredProject, _accessor, previousIncludes, _dropTarget, OrderingMoveAction.MoveToTop).ConfigureAwait(false);

            return(result);
        }
Esempio n. 3
0
 static new public void ClearStatic()
 {
     if (_caret != null)
     {
         _caret.Dispose();
     }
     if (_selectionShape != null)
     {
         _selectionShape.Dispose();
     }
     _caret          = null;
     _selectionShape = null;
     _nextBlink      = 0;
     onCopy          = null;
     onPaste         = null;
 }
Esempio n. 4
0
 public void FilterItemList(IEnumerable <ICopyPasteItem> items, DropEffects effect)
 {
     PasteHandler.FilterItemList(items, effect);
 }
Esempio n. 5
0
 public bool CanHandleItem(Type itemType)
 {
     return(PasteHandler.CanHandleItem(itemType));
 }
Esempio n. 6
0
 public Task <IEnumerable <string> > ValidateItemListAsync(IEnumerable <ICopyPasteItem> items, DropEffects effect)
 {
     return(PasteHandler.ValidateItemListAsync(items, effect));
 }
Esempio n. 7
0
 public bool PromptForAnyOverwrites(IEnumerable <ICopyPasteItem> items, ref DropEffects effect)
 {
     return(PasteHandler.PromptForAnyOverwrites(items, ref effect));
 }