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); }
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); }
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; }
public void FilterItemList(IEnumerable <ICopyPasteItem> items, DropEffects effect) { PasteHandler.FilterItemList(items, effect); }
public bool CanHandleItem(Type itemType) { return(PasteHandler.CanHandleItem(itemType)); }
public Task <IEnumerable <string> > ValidateItemListAsync(IEnumerable <ICopyPasteItem> items, DropEffects effect) { return(PasteHandler.ValidateItemListAsync(items, effect)); }
public bool PromptForAnyOverwrites(IEnumerable <ICopyPasteItem> items, ref DropEffects effect) { return(PasteHandler.PromptForAnyOverwrites(items, ref effect)); }